User Profile & Activity

Paul Fletcher Member
Page
of 2
Posted: February 16, 2011 4:41 AM

Hi Martin,

Yup I've got it solved now.  I didn't actually mean to have ClientIDMode="static" in the version I sent to you; I tried that to solve my issue.  To actually fix the problem I had to specifically set ClientIDMode="AutoID".  I thought this was the default since I haven't specifically set the ClientIDMode anywhere within my control hierarchy.  Which is the reason I didn't try it.

Thanks for your help on this issue, I've got another one now though which I'll post in another topic 

Paul

Posted: February 14, 2011 9:26 AM

Hi Martin,


I've included a sample of what I can't get working.


Thanks for your time


Paul


<ISWebGrid:WebGrid ID="WebGrid1" runat="server" UseDefaultStyle="True"
                    Width="100%" Height="100%" DefaultStyleMode="Win7" 
                    DataSourceID="odsEmployees">
                    <LayoutSettings AllowColumnMove="Yes" AllowEdit="Yes" AllowExport="Yes" AllowFilter="Yes"
                        AllowGrouping="Yes" AllowSelectColumns="Yes" AllowSorting="Yes" GroupByBoxVisible="True"
                        AllowBatchUpdate="True" ColumnFooters="Yes" RowHeightDefault="30px" AllowAddNew="Yes"
                        AutoHeight="True" RowChangedAction="OnTheFlyPostback" ContextMenuAnimation="true" AllowColumnFreezing="Yes">
                        <BatchUpdateSettings AllowReviewChanges="True" NotifyOnLostFocus="True"></BatchUpdateSettings>
                    </LayoutSettings>
                    <RootTable DataKeyField="Id" HeaderClickAction="SortMulti" GroupTotalVisible="True">
                        <Columns>
                            <ISWebGrid:WebGridColumn Caption="No." DataMember="Id" DataType="System.Int32" Name="Id"
                                Width="50px" IsAutoIncrement="True">
                            </ISWebGrid:WebGridColumn>
                            <ISWebGrid:WebGridColumn Caption="Payroll Id" DataMember="PayrollId" Name="PayrollId"
                                Width="110px">
                            </ISWebGrid:WebGridColumn>
                            <ISWebGrid:WebGridColumn Caption="Actual Site Code" DataMember="DefaultSiteCode"
                                Name="DefaultSiteCode" Width="175px" EditType="WebComboNET" UseValueListForSorting="Yes"
                                WebComboID="wcDefaultSites" FilterEditType="TextBox">
                                <ValueList DataMember="DefaultView" DataSourceID="odsSites" DataTextField="Code"
                                    DataValueField="Code">
                                </ValueList>
                            </ISWebGrid:WebGridColumn>
                        </Columns>
                    </RootTable>
                </ISWebGrid:WebGrid>
                <asp:ObjectDataSource ID="odsEmployees" runat="server" SelectMethod="GetByRole" TypeName="MyNameSpace.Employee"
                    DataObjectTypeName="MyNameSpace.Employee" UpdateMethod="Update" InsertMethod="Insert">
                </asp:ObjectDataSource>
                <asp:ObjectDataSource ID="odsSites" runat="server" SelectMethod="GetAll" TypeName="MyNameSpace.Site">
                </asp:ObjectDataSource>
                <ISWebCombo:WebCombo ID="wcDefaultSites" ClientIDMode="Static" runat="server" DataSourceID="odsSites"
                    DataTextField="Code" DataValueField="Code" Height="20px" Width="200px" 
                    UseDefaultStyle="True" DataMember="">
                </ISWebCombo:WebCombo>

 

All times are GMT -5. The time now is 2:13 AM.
Previous Next