[CLOSED] [1.0] GridPanel DirectEvent ExtraParams

  1. #1

    [CLOSED] [1.0] GridPanel DirectEvent ExtraParams

    I have a gridpanel that i'm using a grid command on to process a directevent.
    This was working with 1.0 until i updated to the latest version today.
    Now it throws a script error that says 'data.TaskID' is null or not an object


    if i remove the parameter "TaskID" it will get to the direct event, but the value of the parameter "command" is "command" and not the command name of the GridCommand.


    (i am generating my store in the code behind, but it does contain the data in the extraparams)


    <ext:GridPanel ID="DbGridPanel_Messages" runat="server" Region="Center">
    	<ColumnModel>
    		<Columns>
    			<ext:CommandColumn Width="40">
    				<Commands>
    					<ext:GridCommand Icon="NoteAdd" CommandName="Reply">
    						<ToolTip Text="Reply" />
    					</ext:GridCommand>
    				</Commands>
    			</ext:CommandColumn>
    			<ext:Column Header="User" DataIndex="UserName" Sortable="false" />
    			<ext:Column ColumnID="Subject" Header="Subject" DataIndex="Subject" />
    			<ext:Column ColumnID="Project" Header="Project" DataIndex="ProjectLink" />
    			<ext:Column ColumnID="Task" Header="Task" DataIndex="TaskLink" />
    			<ext:Column Header="Action Date" DataIndex="ActionDate" />
    		</Columns>
    	</ColumnModel>
    	<View>
    		<ext:GridView ID="GridView1" ForceFit="true" EnableRowBody="true" runat="server">
    			<GetRowClass Handler="rowParams.body = '<div style=\'border-bottom: 2px solid black; font-size: 10pt;padding: 10px 10px 10px 10px; margin: 0px 0px 0px 0px\'>' + record.data.Message + '
    '; return 'x-grid3-row-expanded';" />
    		</ext:GridView>
    	</View>
    	<DirectEvents>
    		<Command OnEvent="ProcessGridCommand" Failure="Ext.MessageBox.alert('Load failed', 'Error during ajax event!');">
    			<ExtraParams>
    				<ext:Parameter Name="TaskID" Value="record.data.TaskID" Mode="Raw" />
    				<ext:Parameter Name="command" Value="command" Mode="Raw" />
    			</ExtraParams>
    		</Command>
    	</DirectEvents>
    </ext:GridPanel>

    thanks in advance



  2. #2

    RE: [CLOSED] [1.0] GridPanel DirectEvent ExtraParams

    Hi,

    Fixed. Please update from SVN. Sorry for inconvenience
    Vladimir Shcheglov
    Sr. Developer
  3. #3

    RE: [CLOSED] [1.0] GridPanel DirectEvent ExtraParams

    worked great! Thanks.

Similar Threads

  1. Replies: 0
    Last Post: Jul 27, 2012, 8:54 PM
  2. Replies: 6
    Last Post: Aug 01, 2011, 5:53 PM
  3. Replies: 1
    Last Post: Jun 09, 2011, 8:04 PM
  4. more than one extraparams from a gridpanel
    By unaltro2 in forum 1.x Help
    Replies: 1
    Last Post: Jun 07, 2011, 5:35 PM
  5. Replies: 5
    Last Post: May 06, 2010, 7:35 PM

Posting Permissions