Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
830
How to use Editor behaviors for displaying a cell as a multiline textbox during edition
posted

Hi,

do u pls have a sample code I can use for this purpose:

When I click a specific cell in my grid, I want the cell to change into a Texbox multiline mode (initially it's regular label)

The reason is that I want to add some client side event so the user won t be ablle to type more than 256 caracters.

I use this code but not working, it does not switch the Description cell into a textbox :

 

 <%--<ig:Selection RowSelectType="Single" Enabled="true" CellClickAction="Cell"></ig:Selection>--%>

<Behaviors>

<ig:EditingCore>
                <Behaviors>
                    <ig:CellEditing>
                        <ColumnSettings>
                            <ig:EditingColumnSetting ColumnKey="Description"    />
                            <ig:EditingColumnSetting ColumnKey="projection"  ReadOnly="true" />
                            <ig:EditingColumnSetting ColumnKey="pointe"  ReadOnly="true" />
                            <ig:EditingColumnSetting ColumnKey="id"  ReadOnly="true" />
                            <ig:EditingColumnSetting ColumnKey="scheduled"  ReadOnly="true" />                           
                            <ig:EditingColumnSetting ColumnKey="offsetThreshold"  ReadOnly="true" />
                            <ig:EditingColumnSetting ColumnKey="usageThreshold"  ReadOnly="true" />
                        </ColumnSettings>
                        <%--<CellEditingClientEvents EnteredEditMode="enteredEditMode" /> --%>  
                    </ig:CellEditing>
                   
                    <ig:RowDeleting Enabled="true" />
                    
                   
                   
                </Behaviors>
            </ig:EditingCore>          
           
           
            <ig:Activation>           
            </ig:Activation>
           
            <%--<ig:Selection RowSelectType="Single" Enabled="true" CellClickAction="Cell"></ig:Selection>--%>
          <%--  <ig:RowSelectors></ig:RowSelectors>--%>

        </Behaviors>
        <EditorProviders>
            <ig:TextEditorProvider  ID="PerfIndicatorContent_MultilineEditor">
            <EditorControl runat="server" ID="editorm" TextMode="MultiLine">
                    <MultiLine Overflow="Scroll" Rows="3" />
                   
                   
                   
                </EditorControl>
              </ig:TextEditorProvider>             
        </EditorProviders>

 

I appreciate ur help :)