Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
198 views
Hello, all!

I placed an user control inside content page inserted in a master page. There are a lot of instances of the user control inside the content page. Each user control contains RadDatePicker and I would like to use a shared calendar via SharedCalendar property.

I placed RadCalendar into root of the content page and assigned the reference to this RadCalendar to RadDatePicker.SharedCalendar inside Page_Load.

The user controls, containing RadDatePickers are placed into UpdatePanels.

After each async postback I recieve error, saying that RadDatePicker's Java Script is unable to find  RadCalendar client instance.More exactly: $find returns NULL.

Seems, refreshed RadDatePicker kills the client instance of RadCalendar.

Is there a way to overcome such behaviour?
Roy
Top achievements
Rank 1
 answered on 11 Aug 2008
1 answer
185 views
Good day.

Is there a way to sort column(s) before exporting the grid to Excel? I would like to perform sorting in the ConfigureExport() method of the demo RadGrid Export source.

Thanks in advance.

JM
Vlad
Telerik team
 answered on 11 Aug 2008
3 answers
178 views

Hello,

I can't manage to work it out, how to set or get value from popup.

After few hours I finally made it to work in EditMode="InPlace". But it doesn't work EditMode="PopUp".

Can anyone help me?

CODE

    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)  
    {  
        if (RadGrid1.MasterTableView.EditMode == GridEditMode.EditForms)  
        {  
            if (e.Item is GridEditFormInsertItem && e.Item.OwnerTableView.IsItemInserted)  
            {  
                GridEditFormInsertItem insertItem = (GridEditFormInsertItem)e.Item;  
                (insertItem["ime"].Controls[0] as TextBox).Text = "something";  
            }  
        }  
        else if (RadGrid1.MasterTableView.EditMode == GridEditMode.InPlace)  
        {  
            if (e.Item is GridDataInsertItem && e.Item.OwnerTableView.IsItemInserted)  
            {  
                GridDataInsertItem insertItem = (GridDataInsertItem)e.Item;  
                (insertItem["ime"].Controls[0] as TextBox).Text = "something";  
            }  
        }  
        else if (RadGrid1.MasterTableView.EditMode == GridEditMode.PopUp)  
        {  
            if (e.Item is GridDataInsertItem && e.Item.OwnerTableView.IsItemInserted)  
            {  
                GridDataInsertItem insertItem = (GridDataInsertItem)e.Item;  
                (insertItem["ime"].Controls[0] as TextBox).Text = "something";  
            }  
        }          
    }  

Thanks

Aleš
Top achievements
Rank 1
 answered on 11 Aug 2008
4 answers
227 views
I have two RadPanes. The one on the left has a RadGrid in it. On the SelectedIndexChanged event, the right pane should load the appropriate web page using AJAX though server-side code. I have gotten this to work with a postback, but once I try to Ajaxify it using the RadAjaxManager it stops working (I set the RagGrid as the control that initiates the AJAX request and the right RadPane as the control that is updated by the respective AJAX). I want to do it through the AJAX on the server-side because I want to show a RadAjaxLoadingPanel as its loading. Is there a way to do this?


Thanks,
Blake
Tsvetie
Telerik team
 answered on 11 Aug 2008
1 answer
117 views
Hi,

I want to show and hide the loading panel explictly in my code. so as suggested in the documentation i am using "OnRequestStart" and "OnResponeEnd" to do that. The problem I am facing is sometimes the javascripts which i have registered for these clients events are not being called.   

To give some more details I have a panel 'A' in which I am loading usercontrols dynamically and I have to refresh another panel 'B' if any action happens on this user control. So when I add an ajax setting with the ajax control id as the user control and updated control as the panel 'B' the controls behave as expected but the javascripts are not being called and if instead of the usercontrol I add an ajax setting with ajax control id as panel "A" and updated control is as panel "B" then the javascirpts are being executed but Panel "B" doesnt get refreshed.
I have a master pahe which has the ajaxmanager and I am adding the ajax settings dynamically.

Any pointers on this will be very helpful

Thanks
Maria Ilieva
Telerik team
 answered on 11 Aug 2008
1 answer
118 views
Hi,

I was looking at (ID#943) to applying external stylesheet to the content of RadEditor in Preview mode.  However, i need to change the background color in HTML mode.  How do i do this.  Following the same approach does not work for the HTML mode.

Thanks,
Raj
Rumen
Telerik team
 answered on 11 Aug 2008
3 answers
102 views
I'm using AJAX Manager v2008.2.723.35 with Visual Studio 2008, and when I open the control to "Configure" AJAX Manager, there are no controls. There is only one Checkbox for "Controls" and if you click on it, it errors with: "This node cannot be checked". I could have sworn it was working before I upgraded to Q2 2008. Any ideas?!?!
I'm using VS2008, Master/Content Page.
Thanks,
~bg
Vlad
Telerik team
 answered on 11 Aug 2008
1 answer
83 views
Hi,

I'm trying to create rad upload control's progress area template programmatically. I create all my controls dynamically.

I already checked the documentation for custom template creation. I followed that.
I tried but it's not working.

Could you please provide some sample code for this?

Thanks,
Chirag
Erjan Gavalji
Telerik team
 answered on 11 Aug 2008
3 answers
179 views
I have a CollapsiblePanelExtender inside of a RadDock object. It's not work properly, meaning a post-back is triggered when clicking CollapseControl/ExpandControl.
See the code behind below:

CollapsiblePanelExtender _cpeAdvanced = new CollapsiblePanelExtender(); 
_cpeAdvanced.TargetControlID = pnlAdvanced.ID; 
_cpeAdvanced.ExpandControlID = _cpeAdvanced.CollapseControlID = btnAdvanced.ID; 
_cpeAdvanced.AutoCollapse = _cpeAdvanced.AutoExpand = false
_cpeAdvanced.Collapsed = true
Controls.Add(_cpeAdvanced); 

where:
  • pnlAdvanced is an asp.net panel;
  • btnAdvanced is an asp.net button;
Any help will be appreciate!
10x!
Sophy
Telerik team
 answered on 11 Aug 2008
1 answer
216 views
Hi guys.
I wanna use radalert to show some result messages and redirect to another page. For some reason, I have to use it in codebehind.
I've read every article about this question, such as:
http://www.telerik.com/support/kb/article/b454K-gtd-b454T-cec-b454c-cec.aspx

I have successfully build my radalert windows from codebehind, it works well, but redirect code was  not work.
I have found that when I using "alert" like this:
string script = "alert('New Password is Created');\n";  
        script += "location.href='loginpage.aspx';\n";  
Page.ClientScript.RegisterStartupScript(GetType(), "msgbox", script, true); 
It works well .

But when I modified it to use radalert like bellow, it didn't work any more.
string radalertscript = "<script language='javascript'> Sys.Application.add_load(function(){var oWnd =radalert('Welcome to RadWindow <b>Prometheus</b>!', 330, 210);oWnd.OnClientClose = function(){window.location.href='loginpage.aspx';}})</script>";  
        Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);   

Can anyone tell me how to solve this problem?

Any advice would be appreciated, too.

 
Georgi Tunev
Telerik team
 answered on 11 Aug 2008
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?