I have an UltraWebGrid (below) that is dynamically bound by Dataset server-side. I need it to have a row edit template with textbox, dropdownlist, and datepicker. I have several problems: 1) I cannot initialize the controls, like prefilling the dropdownlist, 2) I cannot set the initial values to the controls or get the changed values from them, 3) I have to do everything server-side in the code-behind, I cannot manipulate the data client-side, so no javascript. I've tried the various grid methods like updaterow, updategrid, etc., but cannot capture the right event(s). I am using vb.net 2008 with ig controls v10.3.20103.2134. I also cannot use the newer WebDataGrid, this has to be UltraWebGrid for now. I need to have something working correctly soon, so any help or simple example would be hugely appreciated. Thanks so much.
<igtbl:UltraWebGrid ID="igGrid" runat="server" DisplayLayout-AutoGenerateColumns="true"EnableAppStyling="True" StyleSetName="Office2007Blue" StyleSetPath="~/ig_res/"DisplayLayout-CellPaddingDefault="5" DisplayLayout-AllowSortingDefault="No"><Bands><igtbl:UltraGridBand><AddNewRow View="NotSet" Visible="NotSet"></AddNewRow></igtbl:UltraGridBand></Bands><DisplayLayout BorderCollapseDefault="Separate" CellPaddingDefault="5" Name="igStop" RowHeightDefault="20px" Version="4.00" CellClickActionDefault="Edit" AllowUpdateDefault="Yes"><FrameStyle></FrameStyle><ActivationObject BorderColor="" BorderWidth=""></ActivationObject></DisplayLayout></igtbl:UltraWebGrid>
Hello dbishop9 ,
Have you registered the events for the grid? You’ll need to have set the following:
<ClientSideEvents AfterRowInsertHandler="UltraWebGrid1_AfterRowInsertHandler" BeforeRowTemplateCloseHandler="UltraWebGrid1_BeforeRowTemplateCloseHandler"
AfterRowTemplateOpenHandler="UltraWebGrid1_AfterRowTemplateOpenHandler" />
For the grid in the DisplayLayout. Otherwise that js will definitely not fire.
If that’s not the case try running the sample I’ve attached. I made sure to use your version. Let me know if it runs as expected on your environment.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Hi, Maya. Just a followup on this. I still can't get it to work, but I don't think my javascript is firing. I can't debug it, even though I have IE8 set to allow debugging javascript and I have VS2008 confi mgr set to debug. I still can't even get an alert or debugger call to fire. I'm not sure how to overcome this. Any ideas on getting my javascript to at least debug?
Sorry, Maya. The example doesn't work. I can't create a new project for it, because you are using IG 4 v11.1, I am using IG 3.5 v10.3.20103.2134. I am also using this in a master page. Even copying the javascript into my existing project and setting the grid/datechooser the same doesn't work. The only thing I have been able to get to work is the WebDateEditor, but it is displaying the full long date format like Mon Jan 25 00:00:00 CDT. If I could get this format to be mm/dd/yyyy, I can use that.
I'm attaching the sample as requested. Let me know if you have any further need of assistance.
Thanks, Maya. could you provide an example of the second method please?