I am Using Ignite UI Control I am facing a sorting issue Let me explain the scenario
I am opening an igDialog
and in that dialog box I am opening a Grid view using igGrid
which looked like below
For the first time it working fine now when I click on each column is grid sorting is executed once but when I clicked on the add button the I replace the the dialog contents with the add content now this dialog box will be look like that.
When click on the cancel button Above it again load the content of listing view and show Fig (1).
The problem I faced is actually when I clicked on any column it called the sorting function twice and it hit my controller action twice.
No of times I go to add view and then back to list view it called sorting multiple times.
Now I don’t know what's happening here ?
Note : I am using $(gridId).igDialog("content", html);
to loaded content dynamically
答案 0 :(得分:0)
如果您可以在对话框中包含处理视图更改的代码,那会更好。你所描述的声音就像网格事件一样多次附加在相同的元素上。如果您没有处理网格,或者每次显示时附加自定义事件,那么这就是结果。
一旦在问题中包含代码,我将更新答案更具体。