PDA

View Full Version : [CLOSED] problem with old Namespace Example



pkellner
Nov 14, 2008, 2:03 PM
I'm going back to a sample you made for me that's in the svn tree.

Coolite.Sandbox\Temp\UpdatePanel\PeterNamespace

it doesn't compile anymore I think because of a name change you made. Could you update that code please. Also, now that I'm looking at it again, I'm having trouble seeing you it uses namespaces. It seems like Store1 is in the global namespace. Is that true? If I want to build the grid in the PeterKellnerSpace so I don't have to worry about name conflicts, how would I do that?

That is, if I wanted My Grid to be PeterNamespace.MyGrid...

Thanks,

error below:


<H2>Compilation Error </H2>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'Coolite.Ext.Web.AjaxEventArgs' does not contain a definition for 'ExtraParams' and no extension method 'ExtraParams' accepting a first argument of type 'Coolite.Ext.Web.AjaxEventArgs' could be found (are you missing a using directive or an assembly reference?)

Source Error:


<TABLE width="100%" bgColor=#ffffcc>
<TBODY>
<TR>
<TD></TD></TR>
<TR>
<TD><CODE>Line 21: protected void GridPanel1_RowSelect(object sender, AjaxEventArgs e)
Line 22: {
Line 23: string record = e.ExtraParams["Record"];
Line 24: }
Line 25: </script></PRE></CODE></TD></TR></TBODY></TABLE>

geoffrey.mcgill
Nov 14, 2008, 3:45 PM
Hi Peter,

I just ran that sample and everything appears to be working correctly.


Can you do an SVN update and re-test.

pkellner
Nov 14, 2008, 4:04 PM
Did a svn refresh. Almost all seems to be working now.

My PeterSpace example as well as the ..GridPanel/DataSources work with the exception of ObjectDataSource.aspx and LinqDataSource. In both of these, if I comment out the line below (shown commented out), they work.





<ext:GridView runat="server" EnableRowBody="true">


<%--<GetRowClass Handler="p.body = '<p>' + record.data.Notes+'</p>'; return 'x-grid3-row-expanded';" />--%>


</ext:GridView>

Vladimir
Nov 14, 2008, 4:19 PM
Hi Peter,

Examples in SandBox have not been updated long time. I recomending use examples from Examples Explorer. With regard to error, just replace 'p.body' by 'rowParams.body'

pkellner
Nov 14, 2008, 5:37 PM
thanks. I'll look in examples. BTW, I have no expectations about examples in the Sandbox. It's just very nice to have them there to look at code.