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

Init grid from table.

3 Answers 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 15 Apr 2020, 11:26 PM

as you can see here:

https://dojo.telerik.com/OrOqOHaV

If I create a grid from a table the pager doesn't work correctly ("No items to display")

Is i init the grid from div element the pager works perfectly.

some hint, please?

many many thanks

 

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 17 Apr 2020, 01:37 PM

Hello Roberto,

The idea upon setting a grid from a table is using the table as the data source for the grid. In the provided Dojo I can see that the Grid is initialized from the table and later another data source is specified which must be avoided.

I would advise here to wrap the template in a div specifying id and a data binding. Here is the Dojo modified and applying this:

Let me know if you have any questions.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Roberto
Top achievements
Rank 1
answered on 17 Apr 2020, 02:56 PM

ok. I understand.
I have to wrap the table with a div.

 

many thanks. :-)

0
Nikolay
Telerik team
answered on 21 Apr 2020, 01:39 PM

Hello Roberto,

You are most welcome and I am glad to hear my suggestion is helping you move forward.

Please contact us back if anything further arises.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Roberto
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Roberto
Top achievements
Rank 1
Share this question
or