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

Creating grid with dynamic columns and SignalR

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Maciej
Top achievements
Rank 1
Maciej asked on 28 Jul 2014, 08:36 AM
Hello everybody,

I'm new to Telerik and SignalR. Right now we are working on a project for a customer who wants to rewrite his app that was using old Telerik. There is one element that I really need help with. They want to have universal grid that will accept all kind of data, so every user can define their own grid for example for ShopItems, so they will choose for example: which columns to display, in what kind of order etc. How grid should look like is supposed to be defined in xml profile file, so we will have section, which columns to display, from which table. On top of that they want to have SignalR or WebSockets, so the user knows about updates. My question is how can I accomplished all of that? How should I get the data, so it will be optimal ? Is there a way to use Linq with that? I studied examples and got to the moment when I can use dynamic columns, and bind it by ajax, but I still don’t know how to get only data that I need based on list of tables and columns. I will be glad for any help. If you have any questions, please ask

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 30 Jul 2014, 08:22 AM
Hi Maciej,

Basically the desired behavior is possible to achieve however currently we have no such example of auto-generating the columns and SignalR binding which we can provide. Also there are several ways to do that and which one you would choose depends entirely on you and the exact setup that you have.
For example when the user selects table (type) you can load the corresponding Grid (for this type) from PartialView using jQuery "ajax" method (as additional data you can pass the selected columns) and append it to the current document. 

Regards,
Vladimir Iliev
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
Maciej
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or