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

BatchEdit: Insert Item Display at bottom does not have same row order in mastertableview client

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jawwad
Top achievements
Rank 1
Jawwad asked on 28 Dec 2014, 10:59 AM
Hello,
     Its a simple question with some misunderstanding i-e if I set the property of InsertItemDisplay to bottom and iterate through the rows newly inserted they always show at top. This is normal scenario if InsertItemDisplay is at top but weird when New Item is inserted at bottom. It looks like this:

Display Order                      RowIndex (Client JS)
4 (new row)                                     1
3 (new row)                                     2
1 (old row)                                       3
2 (old row)                                       4

Please provide a solution.
Appreciate your help.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 01 Jan 2015, 08:19 AM
Hello Jawwad,

Thank you for your feedback on this matter.

As you have correctly noticed, the new items are following the same pattern in the context of the dataItems collection of the MasterTableView as when the InsertItemDisplay is set to Top. I completely agree with you that this is not intuitive and although that you can use the TR element's rowIndex property for determining the index of the item, it would be much better if the same order is followed in the dataItems collection.

I will forward this to our developers team, so they could research if such behavior could be implemented.

For the time being, the only thing that I could suggest is that you use the rowIndex property of the dataItem element for getting the index.


Best Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Jawwad
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or