Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Hi,
I want to hide the dropdown option of page size. How can this be done? Can it be done only from code behind?

Thanks,
Joslyn.
Princy
Top achievements
Rank 2
 answered on 17 Oct 2013
6 answers
445 views
Hi,

I have not found a method for capturing when a selected node changes as the OnSelectedNodeChanged provided by asp:TreeView.
Do you know how to capture this event?
Thank you,
Sonia.
Shinu
Top achievements
Rank 2
 answered on 17 Oct 2013
1 answer
110 views
Hi,

I  have an autogenerated grid with edit mode as InPlace. I want to set the width of the textbox in editmode. How to do this as i don't have any unique name since its autogenerated

Thanks,
Alyssa.
Princy
Top achievements
Rank 2
 answered on 17 Oct 2013
4 answers
117 views
I've been trying to figure out how to delete a radgrid, but it seems the best solution is to set its visibility to false and work off of that.

So i tried that, and now lets say i have 4 grids:

Grid1
Grid2
Grid3
Grid4

And i delete Grid3, and now i am left with:

Grid1
Grid2
Grid4

And i have a button that you can click on, that shows all the grids and the data in the grid, if i don't delete any grids it works fine, but if i delete one of the grids, i get the following error when i click to PreviewAll grids.

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

Below is the code i am using to "Delete the grid" which is just setting the visibility to false:

public void DeleteGrid(object sender, EventArgs e, PlaceHolder ph)
   {
       LinkButton gridLink = (LinkButton)sender;
       String gridNum = gridLink.ID.ToString().Split('-').Last();
 
       System.Web.UI.Page currentPage;
       currentPage = (System.Web.UI.Page)System.Web.HttpContext.Current.Handler;
 
       RadGrid grid = (RadGrid)currentPage.FindControl("RadGrid" + gridNum);
       Label lbl = (Label)currentPage.FindControl("Break-" + gridNum);
       LinkButton lbd = (LinkButton)currentPage.FindControl("Delete-Grid-" + gridNum);
       LinkButton lb = (LinkButton)currentPage.FindControl("Show-Grid-" + gridNum);
 
       grid.Visible = false;
       lbl.Visible = false;
       lbd.Visible = false;
       lb.Visible = false;
 
       HttpContext.Current.Session.Add(gridNum, null);
 
   }


PreviewAll grids method, which runs and shows all the grids

public void PreviewAll(PlaceHolder ph)
{
 
    ph.Controls.Clear();
 
 
    for (int i = 1; i <= Convert.ToInt32(GetSession()); i++)
    {
        if (HttpContext.Current.Session[i.ToString()] == null)
        {
 
            HttpContext.Current.Response.Write("Session " + i.ToString() + " is null");
        }
        else
        {
            LinkButton btn = new LinkButton();
            btn.ID = "Modal-" + i.ToString();
            btn.Text = "Show Room " + i.ToString();
            btn.Click += (sender, e) => ShowPopUp(sender, e, i, ph);
 
            DataTable table = (DataTable)HttpContext.Current.Session[i]; // Get the data table.
            Label lbl = new Label();
            lbl.ID = "Room-" + i.ToString();
            lbl.Text = "Room " + i.ToString();
 
            Label lblBreak = new Label();
            lblBreak.ID = "Label-Break" + i.ToString();
            lblBreak.Text = "<br/>";
 
 
 
            ph.Controls.Add(lbl);
            ph.Controls.Add(lblBreak);
            ph.Controls.Add(btn);
            ph.Controls.Add(lblBreak);
 
            foreach (DataRow row in table.Rows) // Loop over the rows.
            {
                foreach (var item in row.ItemArray) // Loop over the items.
                {
                    Label lblValue = new Label();
                    lblValue.ID = "Label-Value-" + item.ToString();
                    lblValue.Text = item.ToString();
 
                    Label lblBreak2 = new Label();
                    lblBreak2.ID = "Label-Break" + i.ToString();
                    lblBreak2.Text = "<br/>";
 
                    ph.Controls.Add(lblValue);
                    ph.Controls.Add(lblBreak2);
                }
            }
            
        }
    }
}

Any help is very much appreciated.
Angel Petrov
Telerik team
 answered on 17 Oct 2013
3 answers
109 views
Hi,

I am using two RadGrids on a page, I am able to toggle the arrows when I am working on one grid, but my problem is I want to collapse one grid row when I Expand a row in another Grid.
Please help me.

Thanks,
K. R.Murthii
Top achievements
Rank 1
 answered on 17 Oct 2013
9 answers
203 views
Hi,

I have added a RadScheduler to my page, which loads several calendars from exchange. To realize that I used your Live Demo/Exchange example. Until now, this works fine.

As the calendars I'm reading from are meeting rooms, I would like to view them as resources. In another thread I have read the following: The mailboxes can be mapped to RadScheduler resources in the CreateAppointmentsFromCalendarItem method. You should inspect the mailbox of the calendar item and assign a corresponding resource.

I had a look in the code, but I don't seem to get this working. Does someone have a working example for this? I can't imagine that I'm the only one who wants to realize something like this.

Many thanks in advance!
Boyan Dimitrov
Telerik team
 answered on 17 Oct 2013
2 answers
145 views
Hi,

How can i select an item in javascript?

Thank you,
Sonia.

Sonia
Top achievements
Rank 1
 answered on 17 Oct 2013
1 answer
203 views

Hi,

How to change the forecolor of a row depending on a column value?

Thanks,
Ryann.
Princy
Top achievements
Rank 2
 answered on 17 Oct 2013
1 answer
126 views

Hi,
How to  make Radgrid borders to be rounded?

Thanks,
Dawson.
Princy
Top achievements
Rank 2
 answered on 17 Oct 2013
1 answer
185 views
Hi

I need to hide the progress bars which appear for each images after saving the image to the TemporaryFolder folder. Im hoping do it in the OnClientFilesUploaded event. Can anyone have solution for how to hide the progress bars?

Thanks
Ashan

Shinu
Top achievements
Rank 2
 answered on 17 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?