Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
column template and paging or scrolling problem
posted

Hello,

I set dropdown template for a column cell and all is good until I go to next page or scroll down then templates disappear from the column.

How to fix that?  thanks

 $("#grid1").igGrid({

                width: '100%',
                columns: DefaultColumns,
                dataSource: northwindCustomers,
                rendered: function (evt, ui) {

                    tmpl = "<div id=grdlist_${CustomerID}></div>";
                    $('#grid1').igGrid('setColumnTemplate', 'CompanyName', tmpl);
                },

                 features: [
                    {
                            name: 'Paging',
                            recordCountKey: 'TotalRecordsCount',
                            pageIndexUrlKey: 'page',
                            pageSizeUrlKey: 'pageSize',
                            pageSize: 5,
                            type: 'remote',
                            pageIndexChanging: function (evt, ui) {
                                var ds = $("#grid1").data('igGrid').dataSource;
                                ds.settings.urlParamsEncoded = function (item, params) {
                                    params.extraParams = {
                                        input: "text here"
                                    };
                                };
                            }
                    }],

Parents Reply Children