Is there a way to wire up a DataGrid rendered on the server to client-side script?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngdatagridrepeaterdatalist' list.


Bill Bassler
Any examples?
If I'm able to generate, from a server-side control, a DataGrid or DataList
(not sure yet which one) that represents a master/detail structure how would
I go about wiring up a client-side script that will expand and collapse the
rows?

Reply to this message...
 
    
Bill Bassler
Another important question would be can I do this without re-implementing
the DataGrid/DataList functionality?

"Bill Bassler" <Click here to reveal e-mail address> wrote in message
news:683920@aspngdatagridrepeaterdatalist...
[Original message clipped]

Reply to this message...
 
    
Bill Bassler
This is exactly what I'm talking about. I "should" be able to inherit from
System.Web.UI.WebControls via the hierarchy. I see that I can override the
PreRender and Render methods. I also know that there methods that are used
to insert client scripting in various points of the rendered page. I main
issue is "can I access the, for example, a particular row element of the
DataGrid to insert some custom scripting?

If I can't, in cases like this, the DataGrid object worthless to me. I have
to build this functionality from the ground up. I'm back old ASP.

"Bill Bassler" <Click here to reveal e-mail address> wrote in message
news:683925@aspngdatagridrepeaterdatalist...
[Original message clipped]

Reply to this message...
 
    
Bill Bassler
Is the answer a templated control?
"Bill Bassler" <Click here to reveal e-mail address> wrote in message
news:684897@aspngdatagridrepeaterdatalist...
[Original message clipped]

Reply to this message...
 
    
Bill Bassler
I can't find a reference to an OnDataBinding event. There's an
ItemDataBound event that only seems to fire when binding a DataView to the
DataGrid.

"Boozer, Lee" <Click here to reveal e-mail address> wrote in message
news:685382@aspngdatagridrepeaterdatalist...
[Original message clipped]

Reply to this message...
 
    
Bill Bassler
Lee,
Please, How do I render/inject my additional client-script from the
eventhandler?

"Boozer, Lee" <Click here to reveal e-mail address> wrote in message
news:686926@aspngdatagridrepeaterdatalist...
[Original message clipped]

Reply to this message...
 
 
System.Data.DataView
System.Web.UI.WebControls.DataGrid
System.Web.UI.WebControls.DataList
System.Windows.Forms.DataGrid




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com