jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • Goran
    Participant

    Dear Sir,

    thank you for your reply.
    I will take your suggestion,and use it,but still I’m not able to get my columns.
    For me it does not work this code:

    ———-

    var cols = $(‘#table’).jqxDataTable(‘getColumnProperty’, ‘columns’). //can’t get my columns ,just tried on my machine

    ———

    For other properties your suggestion works just fine.

    So please can you show me an example how to get this columns, or can you give me some api link where i can
    study this further.(other then provided in your previous post).
    I also tried to play on http://jsfiddle.net/BX4Mc/4/ but no luck.

    Thank you.

    Wish you all the best.

    Best regards

    Goran


    Goran
    Participant

    Dear Sir,

    Thank you for your quick response.
    After a little bit of researching,i finally figure it out.
    Records was the key.
    So with your help I was able to get what i was looking for.

    Wish you all the best.

    Best regards

    Goran

    ————–
    Proposed solution to my own question

    To get property ‘columns’ of jqxDataTable we need this:

    var col = $(‘#table’).jqxDataTable(‘columns’);
    //get records
    var records=col.records;
    //in the example above we have two columns
    //alert(records[0].text) –this prints ‘Ime’
    ////alert(records[0].width) –this prints 100

    With records we can easily see all the properties of ‘column’s (text,dataField,width etc) //we need to have some intelligent code completion

Viewing 2 posts - 1 through 2 (of 2 total)