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

Radgrid controls inside itemtemplate loose value after sort or filter

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hugues Ferland
Top achievements
Rank 1
Hugues Ferland asked on 01 May 2013, 01:16 PM
Hi,

I reproduce the example from http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx and added a new field which contains dateinput.

All my elements are created from server side. The only client code is the javascript. I have implemented IBindableTemplate for each kind of column so i would be able to extract the content on server event.

Right now everything works fine except in one case. When i do a sort on any column (the grid need to have no filter first) and then i apply the changes after updating the first row, all the textbox value are set to null. But if I try again after that postback there's no problem at all. Its only on the first sort/filter command.

The version we're using is the 2012.3.1308.35.

Thx for you help

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 06 May 2013, 06:54 AM
Hi Hugues,

During sorting and filtering the grid rebind itself, and the items are recreated. You can handle the grid's ItemCommand, and to loop over the items, saving their values if required before the rebinding.

All the best,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Hugues Ferland
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or