Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
I am experiencing a weird issue.

I have replaced the default ACT Editor with radEditor and things were working fine until just now when  it decided, suddenly, to go ballistic. The control does not load JS at all with the input box locked and editor's button doing postback to the "#" link.

Firebug shows the following JS error:

Sys.ArgumentNullException: Value cannot be null.
Parameter name: elements
http://localhost:61497/NAU.online/ScriptResource.axd?d=vnZ-iy7K7A5wERMiTIp57FKurzzxH-5AhrKXElkH5JYtIgPH6EvtjFiORes8uLSfY7kK1Xw2aPJX0JEWICAumpVQZxqrPp48UfmwSsyua2DxmDrA-fh8vJCPHmQRn3TCyd1PrQ2&t=ffffffffe3663dpl.js
Line 4867


I am absolutely confused since the editor worked perfectly, I even did some minor CSS tweaking to make sure that its popups are visible (because it is nested inside an ACT ModalPopupExtender).

If I create a blank Page in the same solution it works which makes me believe that something weird is going on within the ToolkitScriptManager.
Rumen
Telerik team
 answered on 29 Nov 2011
5 answers
611 views

My webform contains a RadGrid that has EditMode set to InPlace. After the webform is rendered, a user can click the edit button on any row within the grid. When edit is clicked, I have a GridTextBoxColumnEditor box that is displayed, which allows the user to edit the cell value. After the value has been changed, the end-user can click the Update button. The code-behind executes radGrid_UpdateCommand, which successfully saves the user’s changes; that all works fine.

In addition to the Update button, however, my users want to be able to simply press the Enter key, and have their changes saved, just as if they had clicked the Update button. How do I get radGrid_UpdateCommand to execute when the Enter key is pressed within the GridTextBoxColumnEditor box?

I was hoping that I could accomplish this objective by simply setting the TextBoxMode property of the GridTextBoxColumnEditor to SingleLine, but there is obviously more to it than that. So how can I get the radGrid_UpdateCommand to execute when a user presses the Enter key in the GridTextBoxColumnEditor box?

Thanks

Elliott
Top achievements
Rank 2
 answered on 29 Nov 2011
2 answers
578 views
I'm using the rad date picker control. I want the entered date to save in the database as MM/DD/YYYY.

In html I have:
<DateInput runat="server" DateFormat="MM/dd/yyyy"  DisplayDateFormat="MM/dd/yyyy"> 

It displays in MM/DD/YYYY, but will only save as M/D/YYY.


I am using this code to get the value entered into the picker:
DatePicker.SelectedDate.Value.ToShortDateString();
Brandon
Top achievements
Rank 1
 answered on 29 Nov 2011
2 answers
37 views
Almost every post I've made since about Friday has resulted in me being presented with the "Oops, there's a problem with the server" page.

However, if I go "back" and refresh the page, my post is there.

-- 
Stuart
Asen Arizanov
Telerik team
 answered on 29 Nov 2011
1 answer
36 views
I am having an issue when placing any instance of a radsplitter into a master page.  Basically they render as basic div elements with some border.  Any ideas as to why this would happen.  I have followed the instructions for safe controls, handlers, etc in the web.config.

Please see the attached screenshot...
Dobromir
Telerik team
 answered on 29 Nov 2011
1 answer
97 views
Hi,

We have a page with radtabstrip, and we're dynamically loading user controls when clicking on tabs.

In order to get the usercontrol state persists with viewstate, we reload them in in the page's onload event.

When we click on another tab than the selected one (let say tab index 0 => 2), we don't want to reload the tab 0's user control, but it's not possible as the TabClick event occurs after the Page's OnLoad one...

Is anyone have a solution ?

Best regards,
Bozhidar
Telerik team
 answered on 29 Nov 2011
1 answer
107 views
I have the following in my web.config to stop me having to add a register directive to every page on my site:

<pages>
<controls>
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
</controls>
</pages>

When I add a Telerik control to a page, the designer adds the following to the control on the ASPX page
xmlns:telerik="telerik.web.ui".   If I remove it, it still builds, however, if I do anything with the designer it comes back.

This means that I am getting warnings about an ambiguous reference, where it is finding the telerik prefix in both the web.config and the control.

Is there any way to stop this happening?

Thanks

Richard
Plamen
Telerik team
 answered on 29 Nov 2011
8 answers
127 views
Hi,

I was working with RadUpload inside the grid as shown in
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=upload

I have 2 other dropdown controls in my form template. The dropdowns are cascading.
I need to first select something in the dropdown and then select the file to be uploaded.
For this I disable the Radupload and second dropdown on page load and enable them when something has been selected in the first dropdown.  The selection in the second dropdown does not affect the Radupload.
However I am having issue with the custom validator attached to the RadUpload. Once I select from my first dropdown i immediately get an error for selecting a file. I tried to remove the custom validator but that gives me an 'undefined' error.
If I use the function as it is my dropdown and upload control does not get enabled.

Please help.
Peter Filipov
Telerik team
 answered on 29 Nov 2011
1 answer
82 views

Our requirement is to have a grid with columns with predefined sized, have a static header, column resize enabled, row resize disabled. I tried setting the properties to achieve this requirement, to some extent i was successful. One column has long text with spaces when the user resizes the column the content is taken to next line even if i set ClipCellContentOnResize to be true. This actually increases the row size which we do not want. What we want is to have a fixed row size and the columns should start clipping as soon as the resizer crosses the text. The text should not be taken to the next row.

Following is my grid configuration : 

<telerik:RadGrid ID="grid1" OnItemDataBound="OnItemDataBound" Skin="Transparent"
    runat="server" GridLines="Vertical">
    <MasterTableView>
    </MasterTableView>
    <HeaderStyle Font-Bold="False" Font-Size="Small" />
    <ClientSettings EnableAlternatingItems="false" EnableRowHoverStyle="true">        
        <ClientEvents OnRowClick="RowClick" OnRowDataBound="RowBound" OnColumnCreated="ColumnCreated" />
        <Selecting AllowRowSelect="True" />
        <Resizing AllowColumnResize="true" EnableRealTimeResize="false" ShowRowIndicatorColumn="false"
                    ResizeGridOnColumnResize="false" ClipCellContentOnResize="true" AllowResizeToFit="false" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
</telerik:RadGrid>

Please let me know if i am missing anything.
Pavlina
Telerik team
 answered on 29 Nov 2011
1 answer
334 views
Hi,

how I can I set the z-Index of the RadWindow? It starts at 3000 and increases when moving the window.
I need to have it starting at about 300.
How can I achieve that?

In the RadWindow's OnClientShowMethod I do this:
var id = sender.get_id();
var windowDiv = $(".RadWindow[id$='" + id + "']");
windowDiv.css('z-index', 500);
But the z-index starts at 3000 anyway.

How can I set the z-index by myself?

Shinu
Top achievements
Rank 2
 answered on 29 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?