I'm trying to insert a row into my rad grid using the Array.insert method. I am trying to insert the row at the top of my grid
However, the result is that the new row is appended to the bottom of the table.
Can anybody help? Does Array.insert work?
9 Answers, 1 is accepted
I've managed to fix my problem. For those that wish to know, I modified this line
My new row is now inserted at the top of the table.
My initial thoughts would be to modify your datasource and then rebind the grid. For example...
I hope this helps. If not then please give me more information and I'll try again.
I think the easiest way to do it would be to do it clientside. Use a web method to get the extra data items and then update the grid manually. Take a look at my update method
I hope this helps
1 grid with an asp:timer. Everytime the timer ticks I am calling a sproc. That sproc will return me 4 new records. I need to add those 4 records without hitting the database to pull the regular 2000.
Seems silly that they have not implemented a way to insert a row into a grid. I am able to insert new columns to the grid on tick but can't figure out how to add rows. Here is my timer tick method without the sproc call, just trying to add static data right now.
First of all you need to retrieve your four rows by calling a webmethod. For example,
Here is my webmethod
Here is look at part of my PData object
Finally we can add the new rows to the grid
I hope this helps...
I was put on a different project. I will save this and try it when I get back to it. Thanks for the help
I want to use this approach for master-detail both. How can I do that?