Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Hello -

I would like to hide the "Edit" column in the DetailTableView for those records which do not have a child record.  However, I would still like the "Add New Record" button to show in the DetailTable.  I would like to check the DataValueKey, and then hide the column if it is null.
I have tried a number of things and none of them seem to work.  

Thanks for your ongoing help.

K
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2012
2 answers
124 views
I have a grid with a template column that has a checkbox in it. I have it as autopostback and am calling onCheckedChanged. In that routine I need to right out to the database that the select/deselect has changed. I can get the value of the checkbox easy. But how can I get a unique ID for the record. I am already storing the record ID in an invisible field - I just can't figure out how to access the field in the onCheckedChanged.

TIA - Jeff.
Jeff Bradshaw
Top achievements
Rank 1
 answered on 27 Jan 2012
3 answers
75 views
I want to have a grid that has a couple of fields and one will be a checkbox that the user can check to say they want to include the record. Because of the way our customers work, I need to do this without a save button. So I want to have an autopostback when the box is checked and update that record in the database.

How can I do this?

TIA - Jeff.
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2012
3 answers
263 views
Hello,

recently i have been working with telerik controls , and while loading page we have an image which i have attached below(loader.gif),it will be displayed,but i want to display a loaderbar like radprogressbar in blue color how to do this ,please reply if u have any idea about this .

Regards,
Madhukar.
Princy
Top achievements
Rank 2
 answered on 27 Jan 2012
1 answer
97 views
I have a grid with a Master/Detail table, the detail table's formatting looks perfect when I'm in DEV (ie Visual Studio) but when I push it to our dev server the formatting of the detail isn't right (it's OK but not the best).

Any suggestion on how to fix this would be of great help.

Here's how it looks running directly from VS:

Here's how it looks running from the server
Tsvetina
Telerik team
 answered on 27 Jan 2012
1 answer
96 views
Hi,

I tried this in the DetailTableDataBind event handler

GridBoundColumn b = new GridBoundColumn();
e.DetailTableView.Columns.Add(b);
b.HeaderText = "test";

the column is successfully added, but as soon as a postback occurs, the new column disappears. But adding a column the exact same way to the MasterTableView works as intended.

I have also tried this:

protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
    {
        if (item.Expanded)
        {
           dynamic data = new[] {
            new { ID = "1", Name ="Name11",ParentID = "0"},
            new { ID = "2", Name ="Name11",ParentID = "1"},
            new { ID = "3", Name ="Name11",ParentID = "2"},
            new { ID = "4", Name ="Name11",ParentID = "3"}
              };
  
       
  
            GridBoundColumn b = new GridBoundColumn();
            b.HeaderText = "test";
            b.DataField = "Name";
            item.ChildItem.NestedTableViews[0].Columns.Add(b);
            item.ChildItem.NestedTableViews[0].DataSource = data;
            item.ChildItem.NestedTableViews[0].DataBind();
        }
  
    }
}

Doing this works if I need to programmatically add columns to the first level of the hierarchy (you loop over each item in the MasterTableView and check whether or not each item is expanded or not), but how could you add columns to a detail grid at any level of the hierarchy?


I am having the same issue as an unanswered question in the second half of this thread (by Bruno):
http://www.telerik.com/community/forums/aspnet-ajax/grid/dynamically-add-columns-to-existing-radgrid.aspx

Thanks,
Donald
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2012
2 answers
114 views
Hi,
I am using a RadGrid that contains 5 columns. The first 3 columns in the grid are a GridBoundColumn, the fourth column is a GridDropDownColumn, and the fifth column is a GridEditCommandColumn. At runtime, when the grid is populated, the fourth column (the GridDropDownColumn) displays   instead of the expected data. If I change the fourth column from a GridDropDownColumn to a GridBoundColumn, the grid displays the proper data. This problem only occurs when I use the GridDropDownColumn. Is there something magical about the Grid*Bound*Column? IOWs, am I having this problem b/c the GridDropDownColumn is not a *bound* column?

I have found and reviewed the "forum log" GridDropdownColumn in RadGrid not working, which indicates that the solution to this problem is to install the latest version of the Telerick Ajax controls, but the version that I have installed (2011.2.712.40) is already higher than what is indicated in the "forum log".

I want to use the GridDropDownColumn so that when a user clicks the grid's edit button (GridEditCommandColumn), I can control which values they are allowed to enter via a dropdown list.

So the grid displays   in the GridDropDownColumn when it is populated. But when I click the edit button on the grid, the GridDropDownColumn then displays valid values, instead of  

Actually, to state what I just said more accurately, valid values only display in the GridDropDownColumn for that row on which I clicked the edit button and for every row that appears below the row that I am editing. But for the rows that appear above the one that I am editing, they still display   in the GridDropDownColumn.

How do I resolve this problem?
Antonio Stoilkov
Telerik team
 answered on 27 Jan 2012
1 answer
80 views
I'm in the process of switching over all references to the AJAX Control Toolkit to using your controls.  On one of my pages I use their TabContainer.  In my work I discovered that the RadTab control does not have an "ID" property.  Why was this excluded?

In my existing code I have one event handler method to do assorted things when the user switches tabs.  It needs to differentiate between each tab.  Oh sure, what I'll just do is look for the Text property of the tab but if that text ever changes then the code will break unless I go through and search & replace all references to the tab's text value.

Which brings us full circle: Why does each RadTab not have an ID property?
Kate
Telerik team
 answered on 27 Jan 2012
1 answer
56 views
I have a grid that displays employees, showing their names, id numbers, dept., etc. 

When entering a new employee there is a significant amount of data that need to be inserted into the record, some of which needs editing.  Is it possible to use the AddNewRecordButton in the command Item display to send the user to a new page where editing could be done?
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Jan 2012
1 answer
59 views
In Scheduler, via css, how to make this:
when the user click outside of the raDatePickerCalendar, the calendar to dissapear, just the same way it's happening with RadCalendarMonthView_Default?
Peter
Telerik team
 answered on 27 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?