Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
91 views
I have a question regarding to RadExportFooter:

How can I override the Export-function of the RadExportFooter wirh my own export-function?

thanks

Christian
Princy
Top achievements
Rank 2
 answered on 25 Aug 2009
3 answers
123 views
I am using dynamic programmatic addition of a SqlDataSource in the page_init handler using Me.Controls.Add(sds) where sds is the SqlDataSource.

Then I set the trgrid.DataSourceID = sds.ID and trgrid.MasterTableView.DataSourceID = sds.ID and do a trgrid.Rebind().

And everything works fine on initial page access, postbacks, etc, as long as I do NOT put the code in a If Not Page.IsPostBack block.

If I do put it in a If Not Page.IsPostBack block then the initial page access works fine, but any postback bombs with the following error:

The DataSourceID of 'trgrid' must be the ID of a control of type IDataSource.  A control with ID 'sds' could not be found.

So how to fix this error? Should the If Not Page.IsPostBack block of code for programmatic addition of the SqlDataSource be put in a different event handler other than the Init event handler?
Veli
Telerik team
 answered on 25 Aug 2009
3 answers
270 views
Hi,

I am trying to create some docks dynamically in my application. Not only the docks, the raddockzone and raddockLayout is also created dynamically. I dont have any issues in creating this dynamically. But if I drag a dock to any other zone, all the dynamically created docks are lost during postback. Here i am using two layouts, one which is created dynamically and other one which ia already there and holds some static zones in them. The problem occurs when I try to drag and drop on dock in either way.

Can you give me a solution for this immediately. I am working on this for a long time now. I cannot wate anymore time. Any help is appreciated.

Thanks,

Ajish.
Pero
Telerik team
 answered on 25 Aug 2009
1 answer
114 views
I tried to use the approaches on your document at http://www.telerik.com/help/aspnet-ajax/upload_howtoclientfilesize.html but couldn't make the code work!

I want to check the file size on the client (I want to limit the upload to 5 MB) but the javascript function cannot even be called (I place an alert code and nothing happens)

Could you please advise me what to do?

Here are excerpts from my code:

<table cellpadding="0" cellspacing="0"
                                    <tr> 
                                        <td align="left" valign="top"
                                            <telerik:RadUpload ID="ruAttachment" runat="server" OverwriteExistingFiles="True" 
                                                AllowedFileExtensions=".doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.pdf,.mov,.wmv,.mpg,.avi,.wma,.mp3,.jpg,.gif,.png,.bmp" 
                                                Width="300px" MaxFileInputsCount="1" ReadOnlyFileInputs="True" ControlObjectsVisibility="None" 
                                                EnableEmbeddedSkins="False" Skin="Vinsume" MaxFileSize="2147483647" /> 
                                            <telerik:RadProgressArea runat="server" ID="rpaAttachment" OnClientProgressUpdating="checkUploadedFilesSize" 
                                                Language=""
                                                <Localization Uploaded="Uploaded"></Localization> 
                                            </telerik:RadProgressArea> 
                                            <telerik:RadProgressManager runat="server" ID="rpmAttachment" /> 
                                        </td> 
                                    </tr> 
                                </table> 


<script language="javascript" type="text/javascript"
 
         
        function checkUploadedFilesSize(progressArea, args) { 
            alert("fgdfgdf"); 
            //progressArea.confirmed is a custom variable, 
            // you can use another if you want to 
            if (!progressArea.confirmed && 
                args.get_progressData().RadUpload.RequestSize > 1000000) { 
                if (confirm("The total size of the selected files" + 
                 " is more than the limit." + 
                 " Do you want to cancel the upload?")) { 
                    progressArea.cancelRequest(); 
                } 
                else { 
                    progressArea.confirmed = "confirmed"
                } 
            } 
        } 
 
    </script> 
 
Mehmet Ali Ozenci
Top achievements
Rank 1
 answered on 25 Aug 2009
1 answer
130 views
Hi,

I'm writing tests for our product using Selenium. My issue is that I'm having trouble detecting when the Scheduler has finished loading (like after the view is change from Month to Day). My current solution is

        public static void WaitForTelerikSchedulerToLoad(this Selenium.ISelenium selenium, Action function, string timeout)
        {
            selenium.RunScript("var wasShown = false;");
            function();
            selenium.WaitForCondition("window.wasShown = window.wasShown || selenium.isElementPresent('LoadingPanelScheduler'); window.wasShown && !selenium.isElementPresent('LoadingPanelScheduler')", timeout);
        }

The issue with this is that it is unreliable. Is there a better way to detect that the Scheduler has finished loading?
Helen
Telerik team
 answered on 25 Aug 2009
2 answers
107 views
We are using the RadControls for ASP.NET AJAX controls on a new website, and the client loves the look and feel of the "Default" skin in the 2008 version of the controls.

Now, however, we have been forced into upgrading to the latest version (2009), and so the whole "Default" skin is completely different.

No big deal, some may say, just follow the directions given on this page http://www.telerik.com/help/aspnet-ajax/radcontrols-changes-backwards-compatibility.html and from this page http://www.telerik.com/help/aspnet-ajax/skinregistration.html.

That is easier said than done though.

It is pretty easy to change the style of the RadCalendar and the RadComboBox, but it is not so easy when it comes to the regular html input controls or the asp.net controls (i.e. textboxes and buttons).

How do I get the FormDecorator to use a skin that is not embedded?

Isn't it supposed to be enough to add a FormDecorator like this to the page?

<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" EnableEmbeddedSkins="false" /> 

I have the following in my <head> section :

  <link href="Skin/Calendar.Default.css" rel="stylesheet" type="text/css" /> 
  <link href="Skin/FormDecorator.Default.css" rel="stylesheet" type="text/css" /> 
  <link href="Skin/ComboBox.Default.css" rel="stylesheet" type="text/css" /> 
 

And the folders and .css files are also in place. The RadCalendar and RadComboBox do get their skins, just as they are supposed to, and they are placed on the very same page. Only the FormDecorator is giving me a headache.

Please help!
Martin
Telerik team
 answered on 25 Aug 2009
4 answers
157 views
How might I skin the FormDecorator with the Q3 2008 Skins Compatible with Q1 2009?
Martin
Telerik team
 answered on 25 Aug 2009
3 answers
294 views
In this thread:

http://www.telerik.com/community/forums/aspnet-ajax/grid/accessing-the-column-collection-for-autogenerated-columns.aspx

I mentioned how I handled reordering columns (often to restore a stored order) in the PreRender when using RadGrid in RadControls for ASP.Net and more recently in RadControls for ASP.Net AJAX.  At the time of that thread, I hadn't quite gotten it working in the AJAX version, but subsequently seemed to get it to work.

However, i am now hitting a problem that I haven't quite put my finger on.  My code in PreRender keeps track of whether or not it actually needed to change the column order (as it loops through the columns in RenderColumns if any needs to be reordered it sets a flag that it did so.)  If the flag gets set, then it does a Rebind of the grid (since otherwise the new order doesn't match the data).

Now I am finding that when I do so, on a subsequent refresh of the page, I get the dreaded:

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.

error.  This ONLY occurs if I reordered and did a Rebind in PreRend.  I'm surmising that there is something in the viewstate loading for RadGrid that expects the column order (and therefore types of the columns) or something related (filter row maybe?) not to have changed as late as the preRender (maybe some other structure in the RadGrid that has viewstate saved as well that could be out of sync if i reorder and rebind in PreRender?)

Anyway, I am still debugging on this, but any sugestions appreciated.  The previously suggested approach of turning off viewstate for this grid is, however, not an acceptable soluytion, so suggesting that doesn't help.  There are many aspects of the grid state that viewstate retains that we cannot sacrifice in terms of end user functionality, nor do we want to reimplement all the viewstate stuff for the grid without viewstate. The core problem i need guidance on is how, with viewstate enabled, I can reorder and rebind my grid safely.

Thanks,

-Ed

Monika
Top achievements
Rank 1
 answered on 25 Aug 2009
4 answers
84 views
I am trying to open a calender present in a rad date picker control. When the drop down index of a dropdown is changed, I want to open the calendar pop up. I am exploring both the server side and client side events and methods to see which would suit my application the best. Can anyone tell me what are the methods/properties present in the raddate picker so as to open the pop up

Thanks 
Nirmal
nirmal
Top achievements
Rank 1
 answered on 25 Aug 2009
1 answer
86 views
Hello,

I'm using an ItemTemplate within my RadGrid with HTML because I need a very strict format for what our client wants.  In IE 7 and 8, after sorting the grid or refeshing the page, occasionally, the elements in the datagrid do not appear in the proper position.  Sometimes the elements are whacked horizontally and sometimes vertically.  Here is a link to a Screenshot of issue.

Any suggestions?

Josh
Dimo
Telerik team
 answered on 25 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?