Hello,
I am having an extreme issue with the WebUltraGrid.
I am replacing the asp:GridView with the Ultra because I need edit in place.
I have this in an asp.GridView
<asp:GridView ID="grdAttachments" SkinID="GridViewNormal" runat="server" DataKeyNames="Id" AutoGenerateColumns="false" OnRowDataBound="grdAttachment_RowDataBound" >
Real easy and then I have a RowCreated event to create my picture link( Image wrapped in an anchor)
My injected code was:
protected void grdAttachment_RowDataBound(object sender, GridViewRowEventArgs e) {
InspectionAttachmentReportAssociation assoc =e.Row.DataItem as InspectionAttachmentReportAssociation;
anchor.HRef =
anchor.Attributes.Add("
imgDownload.SkinID =
anchor.Controls.Add(imgDownload);
placeHolderDownloadAttachment.Controls.Add(anchor);
}
else
{
placeHolderDownloadAttachment.Visible =
false;
Easy stuff so I tried to duplicate this in a webultragrid. The images shows, downloads..all if great until.
I test it! I have a multiview. View one as an asp user control displays data. View 2 had the ultragrid in it.
when click a hyperlink in view 1, it modifies the data, then sow2s view 2 that contains the webultragrid.
1st pass is fine. I hit my button that flips the view back and hides the grid. I click the label again. I get a failed to load viewstate error from the ultra grid. This works fine with the asp:gridview
I need viewstate. I gave up.
The I tried this:
>
="String">
="Always"
And the cell creates a button, but I need to execute javascript and inject the id from the aSPX.
Can anyone solve either one of these demos? Its urgent.
Sorry for the horrible pasting but your editor hates me and keeps double and triple spacing my lines.
Thanks,
Nick