Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
104 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
65 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
49 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
46 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
1 answer
46 views
Hi All,
        I am using Rad upload control and uploading the document in SharePoint Document Library.After uploading the document I want to change it's extension to .txt file can any one help me how can I change the extension after  the uploading document
Cat Cheshire
Top achievements
Rank 1
 answered on 27 Jan 2012
1 answer
55 views
Hi,
Let me know if this is possible, in day view I want to show full day i.e. 24 hours. But when the view loads I want to scroll to a particular time say 8 AM. Let me know if this is feasible.

Peter
Telerik team
 answered on 27 Jan 2012
1 answer
43 views

Good morning,
I need to dynamically change which elements in a RadComboBox drop down list are visible.
In the code below, the value selected in the first combo box (sender) is used to constrain the value in the second combo box (rcbAsgn) using some information stored in the tooltip for the item.
I tried the following:

function RCBProjects_OnClientSelectedIndexChanged(sender, eventArgs) {
     var selPrjTUID = sender.get_value();
     var rcbAsgn = $find("<%= RCBAssigned.ClientID %>");
     var itms = rcbAsgn.get_items();
     var i; var itm; var ttt;
     rcbAsgn.trackChanges();
     for (i = 0; i < itms.get_count(); i++) {
         itm = itms.getItem(i);
         ttt = itm._properties._owner._element.attributes[0].value;
         var pos = ttt.lastIndexOf("-");
         var tttid = ttt.substr(pos + 2, ttt.length - pos - 1);
         if (tttid.valueOf() == selPrjTUID.valueOf()) itm.show();
         else itm.hide();
     }
     rcbAsgn.commitChanges();
 }

Everything seems to work fine except that, when complete, the second combo box no longer drops down. It is stuck on whatever value it had with no drop down capability at all - even though I have verified that, for example, two of four items have been shown with the other two hidden.

Any ideas?
Thanks.
Chris

Kalina
Telerik team
 answered on 27 Jan 2012
1 answer
78 views
Hi,

I'm initializing the grid with a blank row using GridTemplateColumn and an empty datatable.
My scenario is that the user can fill this empty row and another empty row will be automatically added upon the user fill the 1st row.

However, when another empty row is added, the previous data in the 1st row became empty.
I want to add another row and keep the data in the previous row.

Nothing is saved in database until the user hits on "Process" button.

Please do let me know how I can achieve this scenario.

Thanks,
Bilal
Marin
Telerik team
 answered on 27 Jan 2012
11 answers
262 views
Recently I have been researching ways to speed up our web application loading time.  One of the things that I noticed was that we use the RadScriptManager in several different pages throughout the site.  What is the real performance gain when using the RadScriptManager with combining scripts enabled.  I realize that this reduces the number of http requests needed by the browser, but does that really translate into real world performance?  One of the major flaws I have discovered is that if each page does not contain the exact same controls, that particular page will have to load its own version of javascript in the form "/Telerik.Web.UI.WebResource.axd?"  Consider the following senario assuming all pages have the RadScriptManager attached with script combining enabled.  I load the initial page of the website which has some telerik controls.  The page loads its telerik web resource and caches the page.  I then open a child page, this page has an extra telerik control on it and therefore the page must also download its own telerik webresource.  This webresouce for the child page contains all the microsoft ajax javascript along with all the telerik javascript that was downloaded in the previous page plus a little extra for the new control.  In my eyes this is actually hurting my performance.  I have already downloaded the microsoft ajax libraries and most of the telerik code needed for the child page so why do I need to download the entire 300 to 500 KB of javascript information over again (in my experience)?  Assuming that this can go on for several pages without getting an actuall solid cache, what kind of performance gain does this control actually offer?
Andrew
Top achievements
Rank 1
 answered on 27 Jan 2012
1 answer
102 views
I've just upgraded to the latest version of telerik to take advantage of the new drag and drop functionality, however I'm having trouble using this feature on my Motorola Droid X. The examples I've found online haven't been too helpful.  I have the following client settings on both the grid and the scheduler.
        <ClientSettings AllowRowsDragDrop="True">
            <Selecting AllowRowSelect="True" />
            <ClientEvents OnRowDropping="rowDropping" />
        </ClientSettings>
 
 
 
function rowDropping(sender, eventArgs) {
    // Fired when the user drops a grid row
    var htmlElement = eventArgs.get_destinationHtmlElement();
 
    var scheduler = $find('<%= RadScheduler1.ClientID %>');
    scheduler.get_element().style.width = k.SchedulerPreferences.SchedulerWidth + "px";
    scheduler.repaint();
    if (isPartOfSchedulerAppointmentArea(htmlElement)) {
        // The row was dropped over the scheduler appointment area
        // Find the exact time slot and save its unique index in the hidden field
        var timeSlot = scheduler._activeModel.getTimeSlotFromDomElement(htmlElement);
        $get("TargetSlotHiddenField").value = timeSlot.get_index();
        // The HTML needs to be set in order for the postback to execute normally
        eventArgs.set_destinationHtmlElement("TargetSlotHiddenField");
    }
    else {
        // The node was dropped elsewhere on the document
        eventArgs.set_cancel(true);
    }
    refreshPage()
}


What am I Missing? Any help would be much appreciated!
Peter
Telerik team
 answered on 27 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?