Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Hermano Toscano on May 07, 2007 18:52
open dhtmlx forum
Javascript List with dhtlmxGrid?

Hi There...

I'm just reading about dhmtlxGrid and I cant find a way, and I dont know if it is possible, to use dhtmlxGrid with a javascript List...

In my web page, I make a select and I wanna paginate(in a non editable way and with not all columns) this results with dhtmlxGrid...
What is the easy way to do this? Where I can find an example?

Thanks In Advance...
Answer posted on May 07, 2007 19:16
PRO version supports the built in pagination support - so you can just set the page size, and next call js commands such as
    grid.setPage(num);
the pro package contains related samples.
    samples/pro_paging.html
    samples/pro_paging_dynload.html
    samples/pro_paging_wt.html

In case of pro version, there is no built in support, but you still organize it by custom code
Something similar to next will work

<select onchange="nextPage(this.value)">....

<script>
    function nextPAge(val){
        grid.clearAll(); //clear existing data
        grid.loadXML("some_url.php?page="+val);
    }
</script>

where some_url.php any kind of server side script which will return XML in grid format for necessary page

Answer posted by Stanislav (Support) on Dec 03, 2014 16:46

I hope this information will be enough for you. But you also can have a look at date picker js and datagrid filter.