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

Changing the Div Properties

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Antonio
Top achievements
Rank 1
Antonio asked on 01 Dec 2016, 11:36 PM

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

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 06 Dec 2016, 02:59 PM
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.

Regards,
Eyup
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Tags
Grid
Asked by
Antonio
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or