Hi
yes, I'm lost.
Now I'm in the phase that I can not explain the problem
and I feel it is so simple but I'm total newbie in web stuff.
OK here is what I try to do:
I have treegrid and some data inside.
Now I have button - change record - and when I press I need to change selected record.
here is Javascript which I use to change record:
function changeMember()
{
current = $('#members_tree').treegrid('getSelected').id;
if (current){
$.post("/json/member.json",
{
change_member_id:current,
});
$('#dlg').dialog('open').dialog('setTitle','Edit Member');
$('#form_member').form('load', '/json/member.json');
}
}
using this : change_member_id:current,
I know where I am (on which record) in my software and I prepare JSON file (member.json) and send it back to opened dialog, using "Body" ...
OK that part works great.
Now, on opened dialog, I have few comboGrid's.
I meant, I can fill them easy using JSON file, but it does not work, because whole dialog is stored on same page as previous described grid and dialog and everything... dialog is closed, so when I call it .dialog('open') i need somehow to select right value on all combogrid's - but I can not because they are loaded already..
With other words, I need to dynamically select values on combogrid when user click on some row, but I need to get value in JSON because I do that in my software which fill the JSON file (I can not do that using JavaScript because I don't know hot to access database etc.
is it possible to fill combogrid with only one record (for example, if member belongs to "Consultants" group I can fill combogrid only with "Consultants" word and ID, and when user click on combogrid, I can catch "onShowPanel" event and fill other values?
Or any other idea?
Your answer regarding cookie and GET/POST I can not even try, because I have no idea how to use the cookie and GET/POST so maybe for few months but not now