Hi telerik team,
I am sivakanth. we are using ur telerik rad controls in our latest WPF project.
I want to create following table structure inside rad gridview.
Enter Name |
Text Box |
Department |
Combo box |
Gender |
Radio button |
Save |
Button |
Is it possible to create inside radgrid view ?
if possible mean give me some coding guidlines.
if not posible mean than which control i used to create these structure.
thank you.
10 Answers, 1 is accepted
Such functionality is not internally supported by RadGridView . We are at the early stages of development a property gird control to cover scenarios like yours. However still I can not state a certain release date.
Meanwhile this behavior can be achieved with RadGridView but would require some additional coding.
The approach would be :
1. Create an user control which would conditionally display different editors ( textbox, combo etc) based on the data.
2. By using the CellTemplate/CellEditTemplate property of the column in RadGridViewplace this user control inside the cell.
All the best,
Pavel Pavlov
the Telerik team

Thanks for ur quick reply.
can u tell me some codings regards ur idea?

thanks for reading my thread again.
can u send me some coding examples relevant this question?
You may find the sample project attached.
Regards,
Maya
the Telerik team

thanks for ur sample code.working properly thanks.
here u added two rows.
can i set unvisible to first row programatically?
(if i click button then it will unvisible)
is it possible mean give some ideas or code?
thanks
sivakanth.
If you want to hide a particular row, it is better to remove the corresponding item from the Items collection of the grid. For example:
private void RadButton_Click(object sender, RoutedEventArgs e)
{
this.dataGrid1.Items.Remove(this.dataGrid1.Items[0]);
}
In this way you will remove the first item.
All the best,
Maya
the Telerik team

It was working fine.but here i want to set visible false only.
don't remove row.bcoz its may set true in future.
so its possible mean give some ideas?
It is not recommended to work with the visibility of the rows and hide them as it may result in undesired behavior. A possible approach may be to keep the items you remove in a separate collection and restore them when necessary. However, in order to provide you with more specific and straightforward solution, I would need a bit more information about your settings and the scenario you want to accomplish.
Maya
the Telerik team

I will tell detailed of my project.In this product we want to create layout design inside gridview(the table structure added below).
we also having enable/disable options in every field.if customer no need any particular field they can disable.
same time another fileld enabled.
is it possible mean give me codes.
previous post telerik give one sample project about how to add controls inside grid view.it was very complicated.so give me any other sample
relevant my post.
Enter Name(Label) |
Text Box |
Standard |
Combo box |
Gender |
Radio button |
Save |
Button |
thanks
by sivakanth.

I will tell detailed of my project.In this product we want to create layout design inside gridview(the table structure added below).
we also having enable/disable options in every field.if customer no need any particular field they can disable.
same time another fileld enabled.
is it possible mean give me codes.
previous post telerik give one sample project about how to add controls inside grid view.it was very complicated.so give me any other sample
relevant my post.
Enter Name(Label) |
Text Box |
Standard |
Combo box |
Gender |
Radio button |
Save |
Button |
thanks
by sivakanth.