This question is locked. New answers and comments are not allowed.
I am trying to create a proof of concept to show that MVC is the way to go for our company. One of the biggest stumbling blocks I'm having is replacing the Telerik RadControls specifically the RadGrid because of the way our database is.
Now the RadGrid itself has a wealth of functionality and of course the newer MVC Grid is playing catchup. But there are a few specific scenarios that the MVC Grid needs to support for me to pull this off and I'd like to see what I can do about making this work out.
Databinding to DataTable through Ajax:
This is kind of a solid requirement. Everyone loves how a grid can ajax the data in without a post, and because my proof of concept is based on performance of MVC versus Webforms I kind of need that to be a functional piece, but because of restrictions on the database and the way it returns variable amounts of columns and large amounts of rows, I need it to be quite dynamic.
I've read about how the Datatable cannot be used to perform Ajax binding because the JavascriptSerializer doesn't have a clue how to work with a Datatable. As well as you can't return the Datatable as a GridModel because it doesn't inherit from IEnumerable (DataTableReader has an extension method to convert it into an IEnumerable, could we use that?). I would really like to beat this problem, even if I have to create code to serialize it myself and circumvent the JavascriptSerializer. Is there any plans to support this scenario? Or any suggestions on how to approach it?
Drag and Drop:
One of the things that we use from the RadGrid is the drag and drop for reordering. This seems like just one of those features you have in a grid, and I was wondering if it was on the plan or not and for when.
Column Generation:
The columns are hidden based on the name, and row buttons are shown based on that columns value. For example the datatable may contain a boolean column for "CanDelete" and based on the name of the row it won't show the column and based on value of that the row it'll decide whether or not to hide/show the row's delete button. Is this something that's possible?
If I can tackle these I'll be well on my way to replacing webforms :D
Thanks in advance for any help.
Now the RadGrid itself has a wealth of functionality and of course the newer MVC Grid is playing catchup. But there are a few specific scenarios that the MVC Grid needs to support for me to pull this off and I'd like to see what I can do about making this work out.
Databinding to DataTable through Ajax:
This is kind of a solid requirement. Everyone loves how a grid can ajax the data in without a post, and because my proof of concept is based on performance of MVC versus Webforms I kind of need that to be a functional piece, but because of restrictions on the database and the way it returns variable amounts of columns and large amounts of rows, I need it to be quite dynamic.
I've read about how the Datatable cannot be used to perform Ajax binding because the JavascriptSerializer doesn't have a clue how to work with a Datatable. As well as you can't return the Datatable as a GridModel because it doesn't inherit from IEnumerable (DataTableReader has an extension method to convert it into an IEnumerable, could we use that?). I would really like to beat this problem, even if I have to create code to serialize it myself and circumvent the JavascriptSerializer. Is there any plans to support this scenario? Or any suggestions on how to approach it?
Drag and Drop:
One of the things that we use from the RadGrid is the drag and drop for reordering. This seems like just one of those features you have in a grid, and I was wondering if it was on the plan or not and for when.
Column Generation:
The columns are hidden based on the name, and row buttons are shown based on that columns value. For example the datatable may contain a boolean column for "CanDelete" and based on the name of the row it won't show the column and based on value of that the row it'll decide whether or not to hide/show the row's delete button. Is this something that's possible?
If I can tackle these I'll be well on my way to replacing webforms :D
Thanks in advance for any help.