Categories | Question details Back To List | ||||||||
filter using dhtmlXGridFromTable Hi I am using filter as separate textbox with the button click to filter the data entered by the user and I load my data in table from database using dhtmlXGridFromTable, but I am gettin the error in the Fireofox 'this.dma is not a function'. Here is the way I am trying to implement the filter function, <input type='text' name='searchOrg' value='' id='searchOrg' size=30 maxlength='140' class='textBox'> <input type='button' name='btnSearch' value='Go' id='btnSearch' onclick='filter();'> then I use the following script to filter the table; myGrid= new dhtmlXGridFromTable('tblToGrid'); myGrid.setImagePath("imgs/"); myGrid.setSkin('xp'); myGrid.enableLightMouseNavigation(true); myGrid.setColTypes('ro,ro,ro,link'); myGrid.setColSorting('str,str,str,na'); myGrid.enableResizing('false,false,false,false'); function filter() { myGrid.filterBy(1,document.getElementById("searchOrg").value); } Now when I enter any value in the text field, i get the error in the firefox "this.dma is not a function'". Is there any clear answer to that. would really appreciare. thanks, Answer posted by Support on Sep 04, 2008 02:03 >> myGrid.setColTypes('ro,ro,ro,link'); will not have any effect, column types need to be defined through type attributes of first row in the source table. >>Is there any clear answer to that. Be sure that you are using dhtmlxgrid.js and dhtmlxgrid_filter.js from the same version of the grid. The similar error may occur if you are using latest version of dhtmlxgrid_filter.js with older version of dhtmlxgrid. Please check attached sample. Attachments (1)
|