Changing the Div Properties

2 posts, 0 answers
  1. Antonio
    Antonio avatar
    1 posts
    Member since:
    Mar 2015

    Posted 01 Dec 2016 Link to this post

    Hi, above all im a rookie on this and im paying the price...

    The thing is, i have a RadGrid and a Div that contains another controls (text boxes and combos), the div has the property runat = "server" and visible = "false"

    The point is, with the item command i need to pass the values of the row to the controls of the div and of course change the visible property to "true"

    I dont care if the solution is using another control instead the div, i need to show and hide sections of the page with the imer command of the grid, but to this moment is impossible to me


    thank you

  2. Eyup
    Eyup avatar
    3740 posts

    Posted 06 Dec 2016 Link to this post

    Hi Antonio,

    First of all, I want to thank you for choosing to evaluate Telerik as your default .NET development tools provider. I understand that it may be quite difficult and cumbersome at first, but believe me, after some time when you get used to Telerik UI Controls, they will become your favorite and irreplaceable software and web development assistants. We, the Telerik support team, will be here to assist you when necessary.

    You can achieve this requirement either on client or server-side. Let's go with the server-side approach:
    protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
        if (e.CommandName == "CommandNameGoesHere")
            div1.Visible = true;
            Panel1.Visible = true;

    That should do the trick. You can either use a HTML div or asp:Panel as the container for other controls.

    Telerik by Progress
    Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Back to Top