如何在编辑模式下将工具提示添加到telerik GridCheckBoxColumn

时间:2018-07-09 21:17:31

标签: c# asp.net telerik radgrid

当我的GridCheckBoxColumn中的两个处于编辑模式时,我试图为其添加工具提示。 GridCheckBoxColumn具有工具提示和标头工具顶部两个属性, HeaderTooltip仅在标题上起作用,而在编辑窗口中不起作用,并且该工具提示现在不显示任何内容,以确保其作用和工作原理。

关于如何实现这一目标的任何提示都将有所帮助,因为我已经花了5个小时试图弄清楚这一点。enter image description here

            <telerik:RadGrid ID="RadGridMPSettings" runat="server" DataSourceID="DSGetSettingsData" GroupPanelPosition="Top" Skin="Vista" AlternatingItemStyle-BackColor="#d3ece9" OnUpdateCommand="RadGridMPSettings_UpdateCommand" OnEditCommand="RadGridMPSettings_EditCommand" Width="1000px">
                <%--AllowMultiRowEdit="true"--%>
                <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID,Account,SKU">
                    <%--EditMode="Batch"--%> <%--CommandItemDisplay="Top"--%> <%--DataSourceID="DSGetSettingsData"--%>
                    <%--<BatchEditingSettings EditType="Cell" /> --%>
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="FontIconButton" />
                        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True" SortExpression="ID" UniqueName="ID" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Account" FilterControlAltText="Filter Account column" HeaderText="Account" ReadOnly="True" SortExpression="Account" UniqueName="Account">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SKU" FilterControlAltText="Filter SKU column" HeaderText="SKU" ReadOnly="True" SortExpression="SKU" UniqueName="SKU" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="MPProductID" FilterControlAltText="Filter MPProductID column" HeaderText="MPProductID" ReadOnly="True" SortExpression="MPProductID" UniqueName="MPProductID">
                        </telerik:GridBoundColumn>
                        <telerik:GridCheckBoxColumn DataField="AutoPrice" DataType="System.Boolean" FilterControlAltText="Filter AutoPrice column" HeaderText="AP" SortExpression="AutoPrice" UniqueName="AutoPrice">
                        </telerik:GridCheckBoxColumn>

                        <telerik:GridTemplateColumn HeaderText="Night Mode" FilterControlAltText="Filter Code column" SortExpression="Code" UniqueName="Code" DataField="Code">
                            <%--ItemStyle-Width="240px"--%>
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "Code")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadDropDownList RenderMode="Lightweight" runat="server" ID="RadddlNightModes" DataTextField="Code"
                                    DataValueField="ID" DataSourceID="NightModesDS" SelectedValue='<%#Bind("NightModeID")%>'>
                                </telerik:RadDropDownList>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>



                        <telerik:GridBoundColumn DataField="RpByMin" DataType="System.Double" FilterControlAltText="Filter RpByMin column" HeaderText="RpByMin" ReadOnly="True" SortExpression="RpByMin" UniqueName="RpByMin">
                        </telerik:GridBoundColumn>
                        <telerik:GridCheckBoxColumn DataField="AllowBelowCost" DataType="System.Boolean" FilterControlAltText="Filter AllowBelowCost column" HeaderText="Allow Below Cost" SortExpression="AllowBelowCost" UniqueName="AllowBelowCost">
                        </telerik:GridCheckBoxColumn>
                        <telerik:GridCheckBoxColumn DataField="AllowBelowRpByMin" DataType="System.Boolean" FilterControlAltText="Filter AllowBelowRpByMin column" HeaderText="Allow Below RpByMin" SortExpression="AllowBelowRpByMin" UniqueName="AllowBelowRpByMin" >
                        </telerik:GridCheckBoxColumn>
                        <telerik:GridCheckBoxColumn DataField="BlockQtyUpdates" DataType="System.Boolean" FilterControlAltText="Filter BlockQtyUpdates column" HeaderText="Block Qty Updates"
                            SortExpression="BlockQtyUpdates" UniqueName="BlockQtyUpdates">
                        </telerik:GridCheckBoxColumn>

                        <telerik:GridBoundColumn DataField="CeilingPriceFixed" DataType="System.Double" FilterControlAltText="Filter CeilingPriceFixed column" HeaderText="Ceiling Price" SortExpression="CeilingPriceFixed" UniqueName="CeilingPriceFixed">
                        </telerik:GridBoundColumn>



                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

0 个答案:

没有答案