This is a migrated thread and some comments may be shown as answers.

Rad Grid edit item template ":" problem

4 Answers 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
prasad
Top achievements
Rank 2
prasad asked on 18 Feb 2010, 11:42 AM
Hi,
i am using rad-grid with hierarchy and in that for the details table i am having the edit button and when i am clicking on edit below the row will appear and including that ":" is appearing in front of the label

below is the sample code i used and the image is also attached

please give me the solution ASAP

 
<Telerik:GridTemplateColumn UniqueName="editit">  
                                    <HeaderTemplate>  
                                        <asp:Label ID="lblParameterValue" runat="server" Text="Parameter Value"></asp:Label></HeaderTemplate>  
                                    <ItemTemplate>  
                                        <asp:Label ID="lblParameterValue" runat="server" Text='<%#Eval("ParaValue") %>'></asp:Label>  
                                    </ItemTemplate>  
                                    <EditItemTemplate>  
                                        <asp:Label ID="lblParameterDesc" runat="server" Text='<%#Eval("ParameterDesc") %>'></asp:Label>  
                                        <asp:TextBox ID="txtParameterValue" runat="server" Text='<%#Eval("ParaValue") %>' />  
                                        <asp:Label ID="lblParameterName" runat="server" Text='<%#Eval("ParameterName") %>'  
                                            Visible="false"></asp:Label>  
                                        <%--<ajaxToolkit:FilteredTextBoxExtender ID="filterAccountNumber" runat="server" TargetControlID="txtParameterValue"  
                                    FilterType="Numbers" />--%>  
                                        <asp:Label ID="lblParameterKey1" runat="server" Text='<%#Eval("ParameterKey") %>'  
                                            Visible="false"></asp:Label>  
                                        <asp:Label ID="lblMinLength" Visible="false" runat="server" Text='<%#Eval("MinLength") %>'></asp:Label>  
                                        <asp:Label ID="lblMaxLength" Visible="false" runat="server" Text='<%#Eval("MaxLength") %>'></asp:Label>  
                                        <asp:Label ID="lblAllowedSplChars" Visible="false" runat="server" Text='<%#Eval("AllowedSplChars") %>'></asp:Label>  
                                        <asp:Label ID="lblisSpaceAllowed" Visible="false" runat="server" Text='<%#Eval("isSpaceAllowed") %>'></asp:Label>  
                                        <asp:Label ID="lblRegularExp" Visible="false" runat="server" Text='<%#Eval("RegularExp") %>'></asp:Label>  
                                        <asp:Label ID="lblDataType" Visible="false" runat="server" Text='<%#Eval("DataType") %>'></asp:Label>  
                                    </EditItemTemplate> 
 
 
 
 

Thanks in advance
Vara Prasad.M

4 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 23 Feb 2010, 09:30 AM
Hi prasad,

If you set the HeaderText property of the GridTemplateColumn, you will notice the header text is what appears before the ":". So, in edit forms, you have the column name to the left of your actual column editor.

Kind regards,
Veli
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sadi
Top achievements
Rank 1
answered on 18 Jul 2012, 10:02 PM
So how do I remove this....? This is a huge problem for me...here is my screen shot. Can you please me any work around..?

My code:........
   <telerik:GridTemplateColumn  DataField="Client2.ContainsContingent"  HeaderText="Inc. Cont. Fee" UniqueName="ContainsContingent" ColumnGroupName="MasterClientList"> 
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                        <ItemTemplate > 
                            <asp:CheckBox ID="ContainsContingentCheckBox" runat="server" Enabled="true" /> 
                        </ItemTemplate>
                </telerik:GridTemplateColumn> 


                <telerik:GridTemplateColumn HeaderText="">
                    <EditItemTemplate>
                    <div style="" >
                    <table>
                        <tr valign="top" >
                            <td width="15%"><uc3:OtherContributorsView ID="OtherContributorsView1" CurrentClientId='<%# Eval("ClientId") %>'  runat="server" /></td>
                            <td width="40%"><uc2:ClientProfitabilityView ID="ClientProfitabilityView1" CurrentClientId='<%# Eval("ClientId") %>'  runat="server" /></td>
                            <td width="45%"><uc1:MasterClientHistoryView ID="MasterClientHistoryView1" CurrentClientId='<%# Eval("ClientId") %>'  runat="server" /></td>
                        </tr>
                    </table>
                    <table width="100%"><tr><td><b>Contribution:</b><asp:TextBox runat="server"  ID="txtContent"  TextMode="MultiLine" Height="150px" Width="100%" Text='<%#Eval("TextData.Content") %>'></asp:TextBox></td></tr>
                    </table>
                    </div>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
            <EditFormSettings >
                <EditColumn  UniqueName="EditCommandColumn"  ButtonType="PushButton"  UpdateText="Submit">
                </EditColumn>
            </EditFormSettings>
            </MasterTableView>
     </telerik:radgrid>
0
Shinu
Top achievements
Rank 2
answered on 19 Jul 2012, 05:50 AM
Hi Sadi,

Try setting the EditFormHeaderTextFormat property of the GridTemplateColumn.Please take a look into the following code snippet.

ASPX:
<telerik:GridTemplateColumn HeaderText="" EditFormHeaderTextFormat="">
    <EditItemTemplate>
         <div style="" >
         . . .

Thanks,
Shinu.
0
Sadi
Top achievements
Rank 1
answered on 19 Jul 2012, 01:06 PM
Thanks Shinu.Nice and clean, Just like I wanted.
Tags
Grid
Asked by
prasad
Top achievements
Rank 2
Answers by
Veli
Telerik team
Sadi
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or