WebGrid Community Server

Welcome to WebGrid Community Server Sign in | Join | Help
in Search

<WG:ColumnTemplate> : Control becomes empty during OnRecordUpdateClick

Last post 08-09-2008, 6:39 by seangkuan. 0 replies.
Sort Posts: Previous Next
  •  08-09-2008, 6:39 723

    <WG:ColumnTemplate> : Control becomes empty during OnRecordUpdateClick

     I am stucked with <WG:ColumnTemplate > where i was trying to use Custom Control:

    CheckboxList, Combobox, ListBox, BulletBox...

     

    These ColumnTemplate's Controls will be loaded Visible="Edit". I use event "OnRowClick" to insert some data into custom ComboBox to allow user to do some selection.

    After that..

    I clicked on update button, where it trigers event "OnRecordUpdateClick", I am suppose to get the ComboBox Value as one of the Input parameter for my Update SQL.. However, I get Null value.. I don't know where it refreshed to set those lists empty...

    I tried to add TextBox, it didn't get refreshed..

    meaning... all the List controls will be reset to null but TextBox keeps the value...

     

    Pleaseeeeeeeeeeeee pleasee pleaseeee help.. i have spent lots of time reviewing my code and learning this component and probably this is only small setting issue...

     

    ********************

     <WG:ColumnTemplate ColumnId="comboSubProductCat" allowEdit="False" AllowEditInGrid="True" visibility="Edit"  Priority="5" Title="SubProductCategory">
                                <Controls>
                                    <asp:DropDownList ID="comboSubProductCat" runat="server"></asp:DropDownList>    
                                    <asp:ListBox ID="listBoxProductCat" runat="server"></asp:ListBox>    
                                    <asp:TextBox ID="text_ProductCat" runat="server"></asp:TextBox> 
                                    <asp:BulletedList ID="Bulletedlistss" runat="server"></asp:BulletedList>  
                                    <asp:CheckBoxList ID="CheckboxLists" runat="server"></asp:CheckBoxList>
                                </Controls>
                            </WG:ColumnTemplate>        

    ********************

    I can get text_ProductCat.text but i get null/empty value when i tried comboSubProductCat.selectedValue....

    Please help..

    SK.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems