or
in each line, and also when i click on any control on gui it auto this " " in every line of the page, pls send me the solution,
thanking
Hi,
I am trying to put a slidder within my Grid, it shows up correctly, but it is not editable as I would like it to be. Here is my code:
| <web:RadGrid ID="gvPlacementAtClientsCriteria" runat="server" Width="100%" AllowPaging="false" AllowSorting="false" GridLines="None"> |
| <ClientSettings ApplyStylesOnClient="True"> |
| <Selecting AllowRowSelect="True"></Selecting> |
| </ClientSettings> |
| <MasterTableView CssClass="MasterTable" DataKeyNames="Id" AllowMultiColumnSorting="True" Width="100%"> |
| <Columns> |
| <rad:GridBoundColumn DataField="Id" UniqueName="Id" ReadOnly="True"> |
| <headerstyle width="10px" /> |
| <itemstyle horizontalalign="Center" /> |
| </rad:GridBoundColumn> |
| <rad:GridTemplateColumn HeaderText="Client Name"> |
| <headerstyle width="300px" /> |
| <ItemTemplate> |
| <asp:DropDownList ID="ddlClient" runat="server" /> |
| </ItemTemplate> |
| </rad:GridTemplateColumn> |
| <rad:GridBoundColumn DataField="Percentage" HeaderText="%" ReadOnly="True"> |
| <headerstyle width="20px" /> |
| <itemstyle horizontalalign="Center" /> |
| </rad:GridBoundColumn> |
| <rad:GridTemplateColumn HeaderText="Distribution"> |
| <headerstyle width="200px" /> |
| <ItemTemplate> |
| <tk:RadSlider ID="radSlider1" runat="server" MinimumValue="0" MaximumValue="100" Orientation="Horizontal"></tk:RadSlider> |
| </ItemTemplate> |
| </rad:GridTemplateColumn> |
| <rad:GridTemplateColumn HeaderImageUrl="~/Images/lock.gif" UniqueName="Locked"> |
| <itemtemplate> |
| <asp:CheckBox ID="ckbLocked" runat="server"></asp:CheckBox> |
| </itemtemplate> |
| <headerstyle width="10px" /> |
| <itemstyle horizontalalign="Center" /> |
| </rad:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| </web:RadGrid> |
Thanks for your help,
Jonahtan
namespace MP.Core.ControlsIt compiles just fine, but I cannot get the derived grid, MPViewGrid, to show up in the developer's toolbox. What should I do to make this happen?
{
public class MPViewGrid : Telerik.Web.UI.RadGrid
{
MPViewGrid()
{
FormatControls();
}
private void FormatControls()
{
this.AllowPaging = true;
this.AllowSorting = true;
this.GridLines = GridLines.Horizontal;
this.ShowGroupPanel = true;
}
}
}
<asp:ScriptManagerProxy ID="ListScriptManagerProxy" runat="server"></asp:ScriptManagerProxy> <telerik:RadAjaxManagerProxy ID="ListAjaxManager" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="UpdateButton" > <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="ListEditorPanel" LoadingPanelID="ListAjaxLoadingPanel" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy> <telerik:RadToolTipManager ID="EditItemToolTipManager" runat="server" ShowEvent="OnClick" Skin="Vista" Position="MiddleRight" RelativeTo="Element" ManualClose="true" onajaxupdate="EditItemToolTipManager_OnAjaxUpdate" > </telerik:RadToolTipManager> <div style="width:200px"> <telerik:RadAjaxLoadingPanel ID="ListAjaxLoadingPanel" runat="server" > <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/RadControls/Ajax/Skins/Default/Loading.gif" /> </telerik:RadAjaxLoadingPanel> <asp:LinkButton runat="server" ID="NewItemButton">Add New </asp:LinkButton> <asp:Panel runat="server" ID="ListEditorPanel"> Some content will be here </asp:Panel> </div> <asp:Panel runat="server" Visible="false" ID="EditItemPanel"> <br /> <asp:Panel runat="server" ID="EditControlPanel"> </asp:Panel> <asp:Button runat="server" ID="UpdateButton" Text="Update" OnClick="UpdateButton_Click" /> <asp:Button runat="server" ID="DeleteButton" Text="Delete" OnClick="DeleteButton_Click" /> <asp:Button runat="server" ID="CancelButton" Text="Cancel" /> </asp:Panel>
Page Back End
public partial class ListManager : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { HookupScripts(); EditItemToolTipManager.TargetControls.Add(NewItemButton.ClientID, true); } private void HookupScripts() { // Get a ClientScriptManager reference from the Page class. ClientScriptManager cs = Page.ClientScript; // Check to see if the include script exists already. if (!cs.IsClientScriptIncludeRegistered(csname)) { cs.RegisterClientScriptInclude(cstype, csname, ResolveClientUrl(csurl)); } UpdateButton.OnClientClick = "HideTooltip(\"" + EditItemToolTipManager.ClientID + "\")"; CancelButton.OnClientClick = "HideTooltip(\"" + EditItemToolTipManager.ClientID + "\")"; } }
I have registered js file
function HideTooltip(tooltipClientId) { var tooltip = $find(tooltipClientId); alert(tooltip.isVisible()); tooltip.hide(); }
When I click at NewItemButton page displays me tooltip, but when i click CancelButton alert window returns me "false" and tooltip does not hide.
How this problem can be resolved?
