Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
217 views
Hi I have a problem! I use RadGrid and RadAjaxPanel and I want to enable ajax because in Grid I have a button and it is downloading something.
I have a code like this
void Download_Click(object sender, EventArgs e)
{
  if (flag)
   {
    Download();
   }
else
  {
   Don'tDownload();
  }

And I have script like this
<script type="text/javascript"
    function onRequestStart(ajaxManager, eventArgs) 
    { 
        if (eventArgs.get_eventTarget().indexOf("DownloadButton") != -1) 
            eventArgs.set_enableAjax(false); 
    } 
</script> 
 But this script enabled ajax alway! but i want that it enabledAjax only if it download... How I can do this? Thanks)))
Iana Tsolova
Telerik team
 answered on 29 Nov 2011
4 answers
272 views
Using a GridDateTimeColumn for a timestamp field and I want the users to be able to search the dates IE "10-25-2009" but because its a timestamp field "2009-10-25 12:12:01"  it never seems to find any results even though there are records for the dates.  How do I resolve this?
Mihai Dinculescu
Top achievements
Rank 1
 answered on 29 Nov 2011
5 answers
198 views
Hi

 How do i translate footer values such as "Sum", "Avg" in resource file? Is it possible? What are the key names of these items.
Zÿm
Top achievements
Rank 1
 answered on 29 Nov 2011
1 answer
130 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
748 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
651 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
76 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
74 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
131 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
153 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?