This question is locked. New answers and comments are not allowed.
BHASKAR SALADi
Top achievements
Rank 1
BHASKAR SALADi
asked on 10 Nov 2009, 12:23 PM
Hi,
I want to create a seperate child window there i want to provide options there to hide or unhide .How can i achieve this.
Thanks in Advance
BHASKAR.
I want to create a seperate child window there i want to provide options there to hide or unhide .How can i achieve this.
Thanks in Advance
BHASKAR.
5 Answers, 1 is accepted
0
Hi,
You can use similar to this example approach - check the header context menu.
All the best,
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 similar to this example approach - check the header context menu.
All the best,
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
BHASKAR SALADi
Top achievements
Rank 1
answered on 10 Nov 2009, 01:00 PM
Hi,
I have seen that sample but in that there was no code for hide unhide the items in grid..Can u provide the code ..
Regards,
Bhaskar.
I have seen that sample but in that there was no code for hide unhide the items in grid..Can u provide the code ..
Regards,
Bhaskar.
0
Hello,
According to your first post you want to hide/show columns and this can be found in the demo - can you clarify?
Greetings,
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.
According to your first post you want to hide/show columns and this can be found in the demo - can you clarify?
Greetings,
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
BHASKAR SALADi
Top achievements
Rank 1
answered on 10 Nov 2009, 01:48 PM
hi,
I didnt find code in solution in Headercontext menu method for Choose columns.Please provide code sample.It will be help ful...I want to create one usercontrol(child window) .There i want to show all columns and by selecting items should be display it in grid.
Thank you
BHASKAR.
I didnt find code in solution in Headercontext menu method for Choose columns.Please provide code sample.It will be help ful...I want to create one usercontrol(child window) .There i want to show all columns and by selecting items should be display it in grid.
Thank you
BHASKAR.
0
Hi,
Please check the source code of GridViewHeaderMenu.cs with our code viewer (InitializeMenus() method). The menu IsChecked property is simply bound to IsVisible column property:
...
// create menu items
foreach (GridViewColumn column in grid.Columns)
{
RadMenuItem subMenu = new RadMenuItem()
{
Header = column.Header,
IsCheckable = true,
IsChecked = true
};
// bind IsChecked menu item property to IsVisible column property
subMenu.SetBinding(RadMenuItem.IsCheckedProperty,
new Binding("IsVisible") { Mode = BindingMode.TwoWay, Source = column });
item.Items.Add(subMenu);
}
....
You can use the same approach to implement your own columns show/hide.
All the best,
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.
Please check the source code of GridViewHeaderMenu.cs with our code viewer (InitializeMenus() method). The menu IsChecked property is simply bound to IsVisible column property:
...
// create menu items
foreach (GridViewColumn column in grid.Columns)
{
RadMenuItem subMenu = new RadMenuItem()
{
Header = column.Header,
IsCheckable = true,
IsChecked = true
};
// bind IsChecked menu item property to IsVisible column property
subMenu.SetBinding(RadMenuItem.IsCheckedProperty,
new Binding("IsVisible") { Mode = BindingMode.TwoWay, Source = column });
item.Items.Add(subMenu);
}
....
You can use the same approach to implement your own columns show/hide.
All the best,
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.
