This is a migrated thread and some comments may be shown as answers.

Question about refresh grid after opening window close?

4 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shengpan Song
Top achievements
Rank 1
Shengpan Song asked on 07 Apr 2010, 08:56 AM
Hello,Telerik.
When I use Telerik gird,meet trouble below.
Scenerio is:
 I have a List page which provides all kinds of querying condition by textbox or combobox(dropdownlist).
After I filter some data,  I click one row I wanted  that open a radWindow which provides  function of  editing selected row.
after I close the opened window, I return the list page.
How can I keep the textbox or combobox(dropdownlist) status that I just typed or selected , and only refresh the grid.
sometimes, I met "Retry/Cancel" popup when I use "window.location.reload(true)" .now I update "window.location.reload(true)" to
"window.location.href=window.location.href", Only do this, cannot keep the previous state of textbox or combobox(dropdownlist)
How to solve it?
Thanks
Best Regards

4 Answers, 1 is accepted

Sort by
0
Shengpan Song
Top achievements
Rank 1
answered on 08 Apr 2010, 07:21 AM
Why ignore my question?
Help me if you'd like ,please.
thanks anyway.
0
Yavor
Telerik team
answered on 12 Apr 2010, 12:12 PM
Hello Shengpan,

Basically, in such a scenario, you can keep the values in ViewState/Session, and restore them later on.
Another option would be to simply refresh the grid control, without navigating away from the page. This is demonstrated in the following example:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

After editing the grid control, all valued entered in controls on the page, are preserved.
I hope this information helps.

Regards,
Yavor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Shengpan Song
Top achievements
Rank 1
answered on 12 Apr 2010, 01:30 PM
Thanks,Telerik.
A few days ago,I follow the example you provide to write a webapp

But I can not get the result as the example showes.
I have uploaded the source code in my ticket that Ticket ID: 298577

Question is that updated value cannot show immediately when I close the "editform"  window.

Anthoer question is :
In self-hierachy grid ,May I move the indicator of collapse-expand to other column except datakeys column?

Thanks for your reply
Best wishes
0
Yavor
Telerik team
answered on 15 Apr 2010, 11:12 AM
Hello Shengpan Song,

You can hide the default expand collapse column, and include another column with a button to handle the expand collapse. Additional information on the commands reference is available here:

http://www.telerik.com/help/aspnet-ajax/grdcommandreference.html

For additional questions concerning the ticket referenced, you can post them directly in the ticket, and they will be addressed accordingly.

Kind regards,
Yavor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Shengpan Song
Top achievements
Rank 1
Answers by
Shengpan Song
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or