Auto Update/Refresh data in GridView

Topics: UI Framework
Dec 3, 2010 at 9:45 AM

I want Gridview refresh every 15 sec. Please give me a advice.

Thank you.

Dec 6, 2010 at 2:07 AM

Ok I can refresh page by using javascript.But refresh all Page. I want to refresh Gridview only.

How can I do it?

Coordinator
Dec 6, 2010 at 3:58 AM

Hi Krai,

You can configure an external JS file to refresh the grid of a specific dynamic page as following cide snippet.

<Page xmlns="http://www.rapidwebdev.org/schemas/dynamicpage" ObjectId="ConcreteDataManagement" Type="RapidWebDev.Platform.Web.DynamicPage.ConcreteDataManagement, RapidWebDev.Platform">
    <Title>$ConcreteDataType$ $Resources.Membership.Management, RapidWebDev.Web$</Title>
    <PermissionValue>$ConcreteDataType$Management</PermissionValue>
    <JavaScriptUrls>
        <JavaScriptUrl>Your custom JavaScript File to Refresh the Grid of the page.</JavaScriptUrl>
    </JavaScriptUrls>
    ...
</Page>

The code snippet of JavaScript to refresh the search results as following,

window.RegisteredGridViewPanelObject.ExecuteQuery();

Dec 6, 2010 at 8:36 AM

Oh! Thank you. But I found this solution by myself before you answer me. Thank for your responds.

But I have one more question.

I have 2 tab. 

At First Tab , I click some button on button panel. I want to refresh second tab.

I hope you understand my problem.

 

====This is my solution code=======

<JavaScriptUrls >
    <JavaScriptUrl >
      <![CDATA[
/Resources/Javascript/AutoReload.js
]]>
    </JavaScriptUrl>
  </JavaScriptUrls>

  ===========

//AutoReload.js

function reload ()
{
    window.RegisteredGridViewPanelObject.ExecuteQuery();
}
var catchtime = window.setInterval ( "reload()", 5000 );