Hello,
I have searched the forum but have not found a way to get notification when:
1. a column is moved
2. a column is resized
What is the straightforward way to capture these events? I'm trying to do this from a custom control that extends RadGridView.
I'm using Q2 release.
Thanks,
Laura
I have searched the forum but have not found a way to get notification when:
1. a column is moved
2. a column is resized
What is the straightforward way to capture these events? I'm trying to do this from a custom control that extends RadGridView.
I'm using Q2 release.
Thanks,
Laura
9 Answers, 1 is accepted
0
Hi Laura,
You can easily track the changes in the columns order using RadGridView.ColumnReordered event.
In 2009.Q2 version there is a ColumnWidthChanged event, but this event supports columns layout infrastructure and should not be used directly from your code. That's why this event is obsolete with the current release (2009.Q3), which means that with the next official this event will be no longer available. Can you provide us with more detailed information about your scenario how do you intend to use this event? We need this information to reconsider adding such public API.
Thank you in advance.
Greetings,
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can easily track the changes in the columns order using RadGridView.ColumnReordered event.
In 2009.Q2 version there is a ColumnWidthChanged event, but this event supports columns layout infrastructure and should not be used directly from your code. That's why this event is obsolete with the current release (2009.Q3), which means that with the next official this event will be no longer available. Can you provide us with more detailed information about your scenario how do you intend to use this event? We need this information to reconsider adding such public API.
Thank you in advance.
Greetings,
Tsvyatko Konov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Laura
Top achievements
Rank 1
answered on 30 Nov 2009, 03:39 PM
Hello,
I'm extending the RadGridView, and I don't see the ColumnReordered and ColumnWidthChanged events you mention. I'm using version 2009.2.904.35 of the DLLs.
What I'm trying to do is have a custom control that extends the RadGridView to auto save settings; those settings include the column order and column width.
Thanks,
Laura
I'm extending the RadGridView, and I don't see the ColumnReordered and ColumnWidthChanged events you mention. I'm using version 2009.2.904.35 of the DLLs.
What I'm trying to do is have a custom control that extends the RadGridView to auto save settings; those settings include the column order and column width.
Thanks,
Laura
0
Hello Laura,
You can use the approach from our demo to achieve your goal.
Regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can use the approach from our demo to achieve your goal.
Regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Laura
Top achievements
Rank 1
answered on 09 Dec 2009, 07:57 PM
Hi,
Where is the definition of the class "RadGridViewSettings" in your demo?
Laura
Where is the definition of the class "RadGridViewSettings" in your demo?
Laura
0
Hello Laura,
Best wishes,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Looks like we have problems with code viewer in our WPF examples - you can check the same example in our Silverlight demos (the code is the same):
http://demos.telerik.com/silverlight/#GridView/SaveLoadSettings
Best wishes,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Laura
Top achievements
Rank 1
answered on 10 Dec 2009, 05:06 PM
Hi,
Thank you Vlad. I tried to use most of the code I could from the demo, and everything is working great with the exception of one type of setting. I'm saving changes as they happen on the grid, but I still don't have a way of knowing when a column has been resized. Is there any event you can suggest to capture that information when it happens?
By the way, I'm now using Q3 release.
Laura
Thank you Vlad. I tried to use most of the code I could from the demo, and everything is working great with the exception of one type of setting. I'm saving changes as they happen on the grid, but I still don't have a way of knowing when a column has been resized. Is there any event you can suggest to capture that information when it happens?
By the way, I'm now using Q3 release.
Laura
0
Hello Laura,
I assume that for the purpose of saving setting of the grid view you can read the value of the width for each column as shown in our examples.
However if you like to track changes of the columns width you can bind to the width as it is a dependency property. Please check the attached project as reference.
If you have any more questions do not hesitate to contact us.
Best wishes,
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I assume that for the purpose of saving setting of the grid view you can read the value of the width for each column as shown in our examples.
However if you like to track changes of the columns width you can bind to the width as it is a dependency property. Please check the attached project as reference.
If you have any more questions do not hesitate to contact us.
Best wishes,
Tsvyatko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Laura
Top achievements
Rank 1
answered on 16 Dec 2009, 09:42 PM
Thanks, this works.
Laura
Laura
0
parthiv
Top achievements
Rank 1
answered on 28 Nov 2017, 06:48 AM
Hi,
I am using R2 2017 Ver(2017.2.614.40) of radGridView (WPF ), i want to save and load gridview column position if user drag and drop to another position ,after restart column shoud display at the same position where user has dropped the column...plz help..