Nahro

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Author
    Replies
  • in reply to: How do I access jqGrid data via jQuery? #103638
    Nahro
    Participant

    Heyo,

    I just assume that you use datatype:local for that? Its hard to tell without your code :)

    Have you set the editUrl correctly? – Even if jqGrid does not send anything to a server in local-mode it still needs to know what to do for editing.

    editurl: “clientArray” -> tells jqGrid to write changes into the local array you give it.

    onSelectRow: function(id){
    Â if(id!=lastsel){
    jQuery('#list').jqGrid('saveRow',lastsel);
    //Set Null, select new Row
    lastsel = null;

    jQuery('#list').jqGrid('editRow',id,{keys: true, aftersavefunc : function(id){

    //Do Array Manipulation here

    myArray[id] = ........;

    }});

    ...

    (I hope its somewhat readable)

    There are plenty of examples to be found in the wiki, or on the demo page if you look through it (which I reccomend)

    in reply to: Grouping only works after triggering sorting #102446
    Nahro
    Participant

    I resolved the issue – after experimenting a bit:

    Instead of ‘xmlstring’ I now use datatype: function

    datatype: function(postdata){
                     var list = jQuery(“#list”)[0];
                     list.addXmlData(productListData);
    }

    Works well – even though I still dont know why ‘xmlstring’ didnt work.

     

    Either way, thanks for your help :)

    in reply to: Grouping only works after triggering sorting #102432
    Nahro
    Participant

    Ich checked it – and I also checked my Data.

    But there is a difference between your code and mine.

    The Code you made is uses a xml datatype- I use xmlstring.

    I tried your example with the whole chunk of Data I need to retrieve – and found an error on my side (replacements on special Characters) – fixed that and tried your code again – it worked.

    BUT

    I tried the same thing with my code now – changed the datatype to xml – and referenced the same xml file with all the data. This worked as well

    Now I changed the datatype to xmlstring, copy + pasted the xml-file into a hardcoded string, tried to run it again: I got the same exception (Cannot read property ‘length’ of null)

    The reason I use xmlstring was just convienence, I call a Webservice with a specific SOAP Message and get the Products filtered that I need – the specific xml structure that returns can be found here:

    xmldata.xml

    This is the exact structure I give jqGrid, if I use the datatype:xml – it works

    if I copy the exact same Message unedited as string hardcoded into the script and use datatype:xmlstring – it does not (but it shows everything when I configure groupind:false – and enable grouping afterwards – but only after triggering something else)

    Now my question would be does datatype:xmlstring not support grouping? – I really couldnt find anything that says it doesnt…

    in reply to: Trouble Focusing on Ipad #102430
    Nahro
    Participant

    So,

    Apperantly since IOs 7.0 Apple made it “near” impossible to set focus programmatically – you can only set Focus on a select few user initiated events, such as touchend/clickend events.

    Even if it is kind of a bummer – I guess it can’t be helped, thank you anyway for your help and replies.

     

    I have one other question regarding teh manipulation of attributes of the textboxes generated by the edit mode. But I am not sure if I should open a new Thread or just keep it in this one? (not so sure about the forum policies here…)

    in reply to: Grouping only works after triggering sorting #102429
    Nahro
    Participant

    I dug through the JqGrid Code and found what is crashing – but I am not quite sure what it does:

    (taken from jquery.jqgrid.src.js – Row 11.776)

    I assume the grdata is the Griddata, so the lenght of the Griddata is undefined – not 0.

    It seems to me I either configured something completely wrong – or my process of giving the Grid data is erronous:

     

     I dont see any mistakes – but I would assume I use Jgrid in a way it is not intended. Would anybody have any idea where my mistake is? – I really dont think it is Jqgrid that bugs out on me

    in reply to: Grouping only works after triggering sorting #102426
    Nahro
    Participant

    I am still lost with this problem…nobody has any idea?

    in reply to: Trouble Focusing on Ipad #102414
    Nahro
    Participant

    Worked like a charm on my PC so far :D thank you very much – I will edit once I could test it on my Ipad!

    thanks agains!

    in reply to: Grouping only works after triggering sorting #102413
    Nahro
    Participant

    Hey Tony,

     

    Thanks a lot unfortunately – I tried using the group: true option, but the grid then doesnt display anything and the console presents me with an exception:

    Thats the reason I started using the loadComplete, and enabling the Grouping afterwards – apparently something isnt loaded or correctly initiated hence the TypeError…or do I missinterpret something horribly?

     

    EDIT: I added the style in the head – works wonders on performance – thank you very much

    in reply to: Trouble Focusing on Ipad #102398
    Nahro
    Participant

    Hi,

     

    This is for example the way I tried to do it: (you can see I tried it via different ways)

    As I said in another Thread of mine (and most likely is shown by my lack of talent to format anything correctly ^^”)
    I am rather new to Jscript / HTML, but I start to get the hang of it.

    Anyway I really appreciate the help – even though I have vanished for the past month…

    in reply to: Grouping only works after triggering sorting #102397
    Nahro
    Participant

    Hello,

    Sorry for my very late reply – but the company gave me a more pressing issue, and then I got sick.

    Here is one oft he XML-Strings I would use:

     


               
                   1
                   1
                   2
                  
                      Dr. Liebe
                      35931
                     
                      Daylong 50+ extreme Stick 8 ml
                     
                     
                      Nein
                      Nein
                      Nein
                      999
                      999
                      1
                      2
                      3
                      4
                      5
                      6
                      7
                      8
                      9
                      10
                      11
                      12
                  
                  
                      Dr. Liebe
                      8001
                      1751116
                      Excipial Lipocreme 300 g
                     
                     
                      Nein
                      Nein
                      Nein
                      999
                      999
                      1
                      2
                      3
                      4
                      5
                      6
                      7
                      8
                      9
                      10
                      11
                      12
                  

    Ideally what I would want is the products to be Grouped under the Name Dr. Liebe (which would be the producer of the products) – again it does work – but only after Sorting via the Header or using search – or even triggering an edit.

    The Key:true would be the colum ItemCode (itmc) – is it still possible to use Grouping after that?
    I just dont know what I am doing wrong…

Viewing 10 replies - 1 through 10 (of 10 total)

Stay connected with us in your favorite flavor!