[CLOSED] GridView GetRowClass Args Property

  1. #1

    [CLOSED] GridView GetRowClass Args Property

    Hello,

    Would appear that the Args property is being ignored on the GetRowClass control:

            <ExtJS:GridView runat="server" EnableRowBody="True">
                <GetRowClass Args="record, rowIndex, p, store" Handler="p.body = 'Hello World'" />
            </ExtJS:GridView>
    Generated code from Coolite:

    ...
    getRowClass:function(record,index,rowParams,store){p.body = 'Hello World'}
    ...
    Hope this helps :)

    Cheers,
    Timothy
  2. #2

    RE: [CLOSED] GridView GetRowClass Args Property

    Hi Timothy,

    Funny you should bring this up... we discussed the serialization of the GetRowClass at length yesterday and made the decision to hard-code the Args instead of requiring the developer to manually add. The functionality is now consistent with how the Listener serialization works where if the .Handler property is set a function template will be created and the proper arguments will be passed.*


    If the <GetRowClass> .Handler property is set, a function template will be created and the four arguments (record,index,rowParams,store)*will be passed when the config script is created.


    If the .Fn property is set, the value is serialized as a raw string and no template is created.*


    Long story short... don't set the Args and expect (record, index, rowParams, store) to be passed as arguments if using the .Handler property.*


    I'm going to look into trying to hide the .Args property, although we would have to create a new class, which is why we didn't do it in the first place.


    All reference to the .Args property have been removed from samples within the project. If you happen to find any other, please point them out and I'll have them stricken from the record. *


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] GridView GetRowClass Args Property

    Good to know, I only chirped up because I was using the Args based on this example previous discussed:

    http://forums.ext.net/showthread.php...ht=getrowclass

    Thanks, I'll remove Args from my usage from here on.

    Cheers,
    Timothy
  4. #4

    RE: [CLOSED] GridView GetRowClass Args Property

    Thanks for the update. I've revised the samples to not include the .Args property and just use the default four params as noted above.

    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] GridView GetRowClass and RowExpander conflict?
    By Ben in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Dec 08, 2011, 2:39 PM
  2. [CLOSED] GridView GetRowClass: not working with RowExpander plugin
    By capecod in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 05, 2010, 1:44 PM
  3. [CLOSED] [1.0] Does GetRowClass still work the same in 1.0?
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 05, 2010, 1:14 PM
  4. rowIndex in GetRowClass - possible?
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Sep 23, 2009, 10:25 PM
  5. GridPanel GetRowClass
    By louis in forum 1.x Help
    Replies: 4
    Last Post: Mar 04, 2009, 11:15 AM

Posting Permissions