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

Rebind does not call RowLoaded.. how to refresh conditionally formatted data

4 Answers 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 30 Mar 2010, 06:45 PM
Hello,
I call Rebind to refresh my data. But I'm using the RowLoaded event to format my data conditionally.
It appears that the Rebind does not call this event.
How can I refresh my data and format it conditionally.
Thank You

4 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 31 Mar 2010, 07:23 AM
Hello,

It will be better to use the approach demonstrated here -  this will work properly with grid vertical and horizontal virtualization. With our first service pack (Q1 2010 Sp1 - middle of April) you will be able to use various DataTemplateSelectors and StyleSelectors for the grid.

More info about DataTemplateSelectors and StyleSelectors  can be found here:

http://msdn.microsoft.com/en-us/library/system.windows.controls.datatemplateselector.aspx

http://msdn.microsoft.com/en-us/library/system.windows.controls.styleselector.aspx

Greetings,
Vlad
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
Jon
Top achievements
Rank 1
answered on 31 Mar 2010, 02:06 PM
Hi..
I changed my code to use your approach for conditionally formatting....
But the grid still does not Refresh when I call Rebind.
The conditional formatting works fine... but when I change the data and rebind.
The Rebind does not call the Converter...

How can I refresh the grid and call the conditionally formatting?
Should I set the grid's item source to null and rebind that way?
thanks
0
Jon
Top achievements
Rank 1
answered on 31 Mar 2010, 02:20 PM
Here's some additional info...

I have the grid on a mainform form....
I call  another  modal form.... user changes the data etc..
The modal form returns to the mainform and I call Rebind()
thanks
0
Jon
Top achievements
Rank 1
answered on 31 Mar 2010, 02:30 PM
Nevermind.. I got it sorted out....  data being updated on 2 diff  datacontexts...
thx
Tags
GridView
Asked by
Jon
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jon
Top achievements
Rank 1
Share this question
or