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

Create label box and textbox in rad grid view?

10 Answers 186 Views
GridView
This is a migrated thread and some comments may be shown as answers.
sivakanth
Top achievements
Rank 1
sivakanth asked on 06 Dec 2010, 10:02 AM
sorry the table structure is not good.so i create one more thread.
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

Sort by
0
Pavel Pavlov
Telerik team
answered on 06 Dec 2010, 11:04 AM
Hello sivakanth,

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
Browse the videos here>> to help you get started with RadControls for WPF
0
sivakanth
Top achievements
Rank 1
answered on 06 Dec 2010, 11:24 AM
hi Pavel Pavlov ,
              Thanks for ur quick reply.
can u tell me some codings regards ur idea?
0
sivakanth
Top achievements
Rank 1
answered on 08 Dec 2010, 01:19 PM
hi,
           thanks for reading my thread again.
can u send me some coding examples relevant this question?
0
Maya
Telerik team
answered on 08 Dec 2010, 04:59 PM
Hi sivakanth,

You may find the sample project attached. 

Regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
sivakanth
Top achievements
Rank 1
answered on 10 Dec 2010, 04:59 AM
Hi maya,
               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.
0
Maya
Telerik team
answered on 10 Dec 2010, 08:52 AM
Hi 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
Browse the videos here>> to help you get started with RadControls for WPF
0
sivakanth
Top achievements
Rank 1
answered on 10 Dec 2010, 05:22 PM
Hi,
         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?
0
Maya
Telerik team
answered on 11 Dec 2010, 03:13 PM
Hello sivakanth,

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.

Kind regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
sivakanth
Top achievements
Rank 1
answered on 11 Dec 2010, 03:35 PM
Hello Maya,
                  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

if i give first three value then click button mean the value will store in database.


thanks
by sivakanth.
0
sivakanth
Top achievements
Rank 1
answered on 11 Dec 2010, 03:35 PM
Hello Maya,
                  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

if i give first three value then click button mean the value will store in database.


thanks
by sivakanth.
Tags
GridView
Asked by
sivakanth
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
sivakanth
Top achievements
Rank 1
Maya
Telerik team
Share this question
or