jQWidgets Forums
Forum Replies Created
-
Author
-
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.
August 22, 2013 at 3:46 pm in reply to: MaxLegth on columntype jqxGrid MaxLegth on columntype jqxGrid #27472Beat 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.
August 22, 2013 at 3:24 pm in reply to: MaxLegth on columntype jqxGrid MaxLegth on columntype jqxGrid #27464Dear 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
August 22, 2013 at 3:12 pm in reply to: MaxLegth on columntype jqxGrid MaxLegth on columntype jqxGrid #27462Peter, where is the doucumentation about initeditor and createeditor, pls
Thank you
Alex
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
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
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
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.
Thanks
Thumbs up, dimitar
No problem. My pleasure. Keep up the good work.
Regards Alex.
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.
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
-
AuthorPosts