Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
278 views
Hi,

I need to use a radio button just beside the rendered checkbox in a radtreeview.

I show a list of products in the treeview so that the users can select multiple products and make a set, but at the same time user needs to select a single product as the most favourite product. Using radio button in the treeview to identify the favourite product is a client requirement.

Could you please help me out of it. I dont even know whether the requirement has got a feasible solution. Help !!!!
Princy
Top achievements
Rank 2
 answered on 12 Mar 2012
1 answer
310 views

I have a RadGrid and I’m experiencing very slow searching in the filtering. If I do a query on the server itself with a “select * from table where column LIKE ‘%blah%’ it can return the query in about a second. With the filtering it can take up to 20 seconds.


Is there a way to speed that up?

Shinu
Top achievements
Rank 2
 answered on 12 Mar 2012
2 answers
89 views
I want to selectively disable checkboxes based on expression. 

I add code to grid prerender to iterate through each GridDataItem and if condition met, I want to disable checkboxes for select column.

my aspx part:
<Columns>
                <telerik:GridClientSelectColumn UniqueName="checkboxColumn">
                </telerik:GridClientSelectColumn>
my code behind
foreach (GridDataItem item in radGrid.MasterTableView.Items)
{
  if (item is GridDataItem)
        {
          for (int i = 1; i < renderedColumns; i++)
            {
                       GridColumn column = radGrid.MasterTableView.RenderColumns[i];
                       Control control = item[column.UniqueName].Controls[0];
                         if (condition==true&&column.uniqueName=="checkboxColumn")
                           {
                      (control as CheckBox).Enabled=false;
                             }

As soon as this code run, the one that had met conditions dissapear from the page, not just getting disabled. 
If I change like:   (control as CheckBox).Enabled=false;  to say: (control as CheckBox).Tooltip="test"; checkboxes also dissapear.

raskarov
Top achievements
Rank 1
 answered on 12 Mar 2012
1 answer
202 views
Hi all,
        Is there any way of importing excel data to Radgrid?.If yes help me out in this regard.(code)



Thanks
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2012
2 answers
935 views
I am dynamically creating a RadGrid and adding GridTemplateColumns to it. Those columns have textbox in them.
After binding datatable to the grid, after user makes changes to the textboxes and on clicking save button, I would like to access the textbox values. But I am stuck at getting hold of the textbox instance. I couldn't even get hold of GridItems!
To add more complexity, my RadGrid is in a UserControl, which is in a (multi)view.
Since my control is in view, it's Page_Init is called more than once for each action that involves this view.

Once the gridstructure is defined, it has no need to change, but I think I should be calling it on Page Init or Load every time..

I have column paging instead of row paging, so there is custom code to handle that.
I would like to get some advice on the best place to call NeedDataSource, DefineGridStructure and where to get Postback values.
I have read this article, but it has sparse information for my need. http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html
Heres my code.
protected void Page_Init(object sender, EventArgs e)
    {
        DefineGridStructure();
    }
      protected void Page_Load(object sender, EventArgs e)
      {
          if (RadGrid1 != null && RadGrid1.Items.Count > 0)
          {
              string strtxt = ((TextBox)RadGrid1.Items[1]["ProductGroup1"].Controls[0]).Text;//For starters, load one control and check it's state
          }
      }

    private void DefineGridStructure()
    {
        RadGrid1 = new RadGrid();
        RadGrid1.AutoGenerateColumns = false;
        RadGrid1.ShowHeader = true;
        RadGrid1.NeedDataSource += RadGrid1_NeedDataSource;
        foreach(GridColumn qtyColumn in BuildGridQtyColumns(PaxColumnCount))
        {
            RadGrid1.MasterTableView.Columns.Add(qtyColumn);
        }
        //Add grid to page
        phRadGrid.Controls.Add(RadGrid1);
    }
    private List<GridColumn> BuildGridQtyColumns(int count)
    {
        List<GridColumn> qtyColumns = new List<GridColumn>();
        for (int i = 1; i <= count; i++)
        {
            string qtyColumnName = string.Format("ProductGroup{0}", i);
            GridTemplateColumn qtyColumn = new GridTemplateColumn();
            qtyColumn.ItemTemplate = new GridNumberTemplate(qtyColumnName);//Creates a textbox control
            qtyColumn.UniqueName = qtyColumnName;
            qtyColumn.HeaderText = "Qty";
            qtyColumn.HeaderStyle.Width = Unit.Pixel(60);
            qtyColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
 
            qtyColumns.Add(qtyColumn);
        }
        return qtyColumns;
    }
Sridhar
Top achievements
Rank 1
 answered on 12 Mar 2012
5 answers
208 views
Hi

Can anyone tell me how to resize the inbuild RAD Grid popup without using the RAD window as a popup. I want to give a resize option once the RAD Grid popup opens for editing grid items.

Thank you in advance.

- Deepak
Pavlina
Telerik team
 answered on 11 Mar 2012
1 answer
149 views
Hi, How can i Disable RadMenu Cause Vaidation?
msigman
Top achievements
Rank 2
 answered on 10 Mar 2012
3 answers
300 views
Within a RadGrid that uses the NeedDataSource method and using paging, there is a select all column. When the Header checkbox is selected, the items on the first page are selected only. How can I select all of the records within the RadGrid.

This is the code I have in place for selecting all dataitems:
CheckBox headerCheckBox = (sender as CheckBox);
foreach (GridDataItem dataItem in this.radgridmailinglists.MasterTableView.Items)
{
    (dataItem.FindControl("chxselectrow") as CheckBox).Checked = headerCheckBox.Checked;
    dataItem.Selected = headerCheckBox.Checked;
}

Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Mar 2012
3 answers
234 views
hi, I'm using RadMenu in my webapplication which shows menus and sub menus
There are Two Main Root that each has some sub menues
1. Articles
2. Videos
each item has sub menu
like this
Article > Programming
Article > Web
Article > Programming > C
Article > Programming > C#
Article > Web > ASP.NET
Article > Web > PHP

Video> Programming
Video> We
Video> Programming > C
Video> Programming > C#
Video> Web > ASP.NET
Video> Web > PHP

and so on
how can i find which of the selected items belongs to Article and Which of them belong to Video?
Behnam
Top achievements
Rank 1
 answered on 10 Mar 2012
2 answers
108 views
Hi,

I am doing grid edit and update during double click. I have got the row in edit mode while double clicking but the row is not changed to normal form after updating. The row is still in edit mode.

Thanks in advance
Ajmal
Top achievements
Rank 1
 answered on 10 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?