jQWidgets Forums

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: updating dataadapter updating dataadapter #27544

    slothy
    Member

    Dear Peter,

    I still dont get how you can change the dropdownlist!!!!!! in $(‘jqxgrid’) if you are saying that i cant change the underlying records. I cant see how you can access the dropdownlist in the grid column through the Grid API in $(‘#jqGrid’) when you change a value in $(‘#jqGrid2’)

    so let us say i want to change ‘Afghanistan’ – records[0] – to ‘Afghan’, say, in ‘#jqGrid2’ and i have the callback

    $(“#jqxGrid2”).on(‘cellvaluechanged’, function (event)
    {
    var column = args.datafield;
    var row = args.rowindex;
    var value = args.newvalue;
    var oldvalue = args.oldvalue;

    //row = 0, value = “Afghan”, oldvalue = “Afghanistan”

    /// what do i call here to change the dropdownlist for column[1] in $(‘#jqxGrid’)???
    });

    When the dropdown in $(‘jqGrid’) comes up i want it to reflect that ‘Afghanistan’ has changed to ‘Afghan’…

    As far as i understand, I cannot use updaterow on the dataadapter for the dropdownlist….i dont want to change anything in the grid (so i cant call updaterow on the grid) as such i want to change the dropdownlist evoked when the user wants to edit the country in the grid.

    where do i pass row, value to ???? i dont understand this part.

    Regards Alex.

    in reply to: MaxLegth on columntype jqxGrid MaxLegth on columntype jqxGrid #27472

    slothy
    Member

    Beat you to it Peter 🙂

    To further what i said. it is ok if one is an experienced and seasoned user and knows where to look. If you are starting out and trying to find your way around the documentation for referential purposes it can potentially be quite daunting and frustrating…so, like myself, if you are on the upward slope of ones learning curve, having to scramble around the documentation manually is, to be honest, quite offputting 🙁
    As i get used to it it is becoming less of an issue.

    Many of the frameworks seem to have some sort of Search facility, including jquery’s new-fangled layout. One of the few things i found quite useful and grateful for in ExtJS is the ease of navigation around, and presentation of, the documentation.

    In this site i like the many examples 🙂 But to have some enhanced Search facility would be wonderful.

    Not saying this as a gripe. But, on behalf of people wanting to learn JQX if they felt anything like i have been doing about finding out about functions, properties etc and not necessarily knowing where they fit into the overall scheme of things this functionality would be a great help.

    Regards Alex.

    in reply to: MaxLegth on columntype jqxGrid MaxLegth on columntype jqxGrid #27464

    slothy
    Member

    Dear Peter.

    Found it 🙁

    not so easy unless you know 🙁 had to second-guess it was under columns in the Grid API 🙁 no top level listing so practically invisible if you are browsing….

    would it be possible to have some sort of API search for the API?? I am sure would be very simple to implement – if you want to make a quick reference to a particular method or property you are screwed unless you know exactly where to look 🙁

    Thanks

    Alex

    in reply to: MaxLegth on columntype jqxGrid MaxLegth on columntype jqxGrid #27462

    slothy
    Member

    Peter, where is the doucumentation about initeditor and createeditor, pls

    Thank you

    Alex

    in reply to: updating dataadapter updating dataadapter #27283

    slothy
    Member

    Dear Peter,

    Just re-read the posts and i think i got it. Will have a bash at it when i get home. Back to wrk!!

    Thanks for your time and patience Peter 🙂

    Have a nice day

    Regards

    Alex

    in reply to: updating dataadapter updating dataadapter #27278

    slothy
    Member

    OK Peter

    just to make this clear.

    I think you are saying that ‘…i should not update manually the dataadapter.records’ as you are assuming that i am using the grid itself $(‘#jqgrid2’) as the datasource to $(‘#’jqxgrid’)???

    Otherwise, how would the combobox in $(‘#’jqxgrid’) know (as one cannot share dataadapters between widgets) that its underlying data has changed?

    Maybe we are at cross-purposes and i am not making myself clear 🙁

    Alex

    in reply to: updating dataadapter updating dataadapter #27275

    slothy
    Member

    Hi Peter,

    umm, i am getting lost here, sorry.

    I will change the program when i get home and have distinct data adapters. Maybe it would make things clearer for myself then.

    But just to clarify:

    What i want to understand is how to, or even whether i HAVE to (i think i do), change the —>datasource<—- of the dropdownbox for the ? ie UPDATE the underlying dataadapter.records array of $('#jqgrid') [as i have CHANGED the underlying data elsewhere ? ]

    When i make a change in the $('#jqgrid2') ie change record[0] to Afghan from Afghanistan say obviously the dataadapter records for $('#jqgrid') has to be changed programmatically by me to reflect changes in the data? so that when i click on it again it comes up as Afghan in the dropdown?

    Hope i have made myself clearer 🙂

    thanks

    alex

    in reply to: updating dataadapter updating dataadapter #27271

    slothy
    Member

    Dear Peter,

    Thank you for the prompt reply 🙂 Very professional.

    I understand about the data source not being able to be shared amongst widgets.

    So, further to this example, must i programmatically change the underlying datasource for the first grid’s dropdownbox (the grid with the example countries) if i were to change data in the countries grid?

    Thank you again,

    Alex.

    in reply to: updating dataadapter updating dataadapter #27267

    slothy
    Member

    Thanks 🙂

    in reply to: toggleButton toggleButton #15533

    slothy
    Member

    Thumbs up, dimitar 🙂

    No problem. My pleasure. Keep up the good work.

    Regards Alex.

    in reply to: toggleButton toggleButton #15428

    slothy
    Member

    Thanks very much Dimitar 🙂

    just a few points however.

    1) It seems that there is no accompanying CSS markup to tell that user that the toggle button is now disabled (although clicking it has no effect) when the button is disabled programatically?

    Is that what was intended?

    It seems inconsistent to have a different CSS for buttons disabled at initialisation and those disabled after. i.e. from what i see, disabling a button if toggle is true keeps it toggled true…..

    (i had a work around and just added the disabled CSS to the button to emulate that of the disabled at initialisation if user disabled programatically)

    2) the disabled method/property for toggle button seems absent from the documentation (for the toggle button that is but it is for button but one can assume inherited) 🙂

    I assumed this was the case. I just, perhaps WRONGLY assumed that the toggle button would take the same CSS markup if disabled programatically as when it was disabled at initialisation.

    Regards Alex.

    in reply to: Centering Headers Centering Headers #14789

    slothy
    Member

    thanks Dimitar 🙂

    simple when you know how 🙂

    just setting the align property to center in the column 🙂

    { text: ‘Id’, datafield: ‘id’, width: 50, cellsalign: ‘center’, align: ‘center’ <—–}

    missed the align property

    thanks again

    alex

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