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

Using RadGrid Batch edit mode with different column type in each row

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kunchit
Top achievements
Rank 1
Kunchit asked on 26 May 2015, 01:08 AM

I am trying to use Batch edit mode in RadGrid. My problem is I need to display and edit different types of data in the same column of each row. I can query the data and set the Datasource of RadGrid programatically to display the data successfully. However, I don't know how to set the EditItemTemplate to let user edit the cell data depends on showing data type, eg. RadDropDownList for Status, RadTextBox for OrderNumber, RadNumericTextbox for Amount. My scenario is

Item          |     January    |  February    |    .....

---------------------------------------------------------- 

Status       |

Order#      |

Amount     |

What is the best way to implement this?

Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 28 May 2015, 11:24 AM
Hello Kunchit,

RadGrid is not designed for such data editing and each column will have predefined editors, regardless of the edit mode. Furthermore, with Batch Editing, there will be only one editor generated for each column and the same editor will be moved along the edited cell.

The only thing that I could suggest is that you change your data structure and reverse the position of your columns and the rows, where each row will be different month and for each month you will entering the corresponding values for the Status, Order# and Amount columns.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Kunchit
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or