This question is locked. New answers and comments are not allowed.
Hi ,
I have RadExpander in one of columns of RadGridview, when expander is collapsed I want to set rowheight of grid to zero such that it feels that Grid is also colapsed. Adn on expnaded event I wnat to set rowheight to be 25. But roheight=0 not working.
Below is my code:-
I have RadExpander in one of columns of RadGridview, when expander is collapsed I want to set rowheight of grid to zero such that it feels that Grid is also colapsed. Adn on expnaded event I wnat to set rowheight to be 25. But roheight=0 not working.
Below is my code:-
void radexpander_Collapsed(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
((sender
as RadExpander).Tag as RadGridView).MinHeight = 0;
((sender
as RadExpander).Tag as RadGridView).RowHeight =0;
}
void radexpander_Expanded(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
((sender
as RadExpander).Tag as RadGridView).RowHeight = 25;
}
Please let me know if i am doing naything wrong.
Thanks,
Shweta