Can we use CheckBox,Textbox and Date-time picker in the rows of Data grid? if yes,how?
Making grid Editable will give you an option like Textbox ONLY. How about other widgets?
Hi Carles, Repeater can be used for repeated values row/column wise but it's not that case in my requirement.I have something like below.
I need to Enter "Text", Select "Date" and select "CheckBox" in same grid.
Now,tell me what could be the best way to achieve it.
Why not with the repeater? you can set a row mashup which as the columns you want with the desired widgets ( Text, Date and checkbox ).
Repeater can be applied if we need to display same type of data and widgets in every row. But I want to display rows with different widgets in it.
You need a small trick You need to create a Row Mashup which it's a container for an inner custom mashup, then you just need to receive the mashup name as a parameter of the repeater and here you go.
I used Repeater to display dynamically generated widget.
I have one column which may change its datatype frequently on the basis of datatype provided from backend.
for example: I load mashup and I get String Textbox in first row. 2nd row may have checkbox and 3rd may have RadioButton..
So, I created a service which will check the datatype of column of datatable coming from backend and will make visibility true of either of three widgets on the repeater base mashup.
But I'm getting an error where,I have got textbox column but not the other 3 label columns.