Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
135 views
I have VS2008 webapp that dynamically loads usercontrols.
The masterpage has an instance of RadScriptManager and RadAjaxManager and each control has a RadAjaxManager proxy.
Without enabling Ajax on the master page, everything works properly.

With Ajax enabled on the masterpage everything still works - except the jscript on the 2nd and subsequent loaded usercontrols.  The jscript on the first control loaded works correctly, but controls 2-x return 'undefined' errors on all of the jscript methods contained within the controls. If I change the order of the controls, the first one always works and 2-x do not.

I've read posts about using the ScriptManager.RegisterStartupScript, but some of these controls have a considerable amount of jscript and trying to maintain that within the context of the serverside code as a string isn't feasible, not to mention the debugging issues it presents. Also, while simple jscript functions via .RegisterStartupScript seem to work ok, I am getting null references on any objects that I try and reference (either using $find or document.getElementById('<%=controlID.ClientID%>'); within those usercontrols.

Is it possible to get the jscript within all the usercontrols to work properly when loaded via Ajax?

topry
Top achievements
Rank 1
 answered on 01 Jun 2009
6 answers
120 views
I've implemented my own custom content provider for the FileExplorer control to use a database as my filestore. My MoveDirectory implementation works fine except for one thing. If I have a folder selected (displaying its contents) in the FileExplorer, and I move it to a new folder, it throws an error after it moves it because it can't display the folder from the old location (where it was previously selected).

I've tried to set the SelectedItemTag from the provider, but I don't think it is working.

Is there a way I can tell the FileExplorer to select the folder at its new path?
Fiko
Telerik team
 answered on 01 Jun 2009
1 answer
133 views
Hai,
    I,m working with WeeklyRecurrence rule for rad scheduler .my problem is that when using the recurrence day for initializing the rule class , i'm unable to typecast system day to reccurrenceday . is thei any way to get the correct recurrence day for the corresponding system.date.daysofWeek.Imgiving my code below .can anybody help me its urgent.

 

Appointment rcAppointment = new Appointment("1", StartTime, StartTime.AddMinutes(15), "Menu");

 

 

 

RecurrenceRange rRange = new RecurrenceRange();

 

 

rRange.Start = rcAppointment.Start;

rRange.EventDuration = rcAppointment.End - rcAppointment.Start;

rRange.RecursUntil = StartTime.AddDays(8);

 

 

RecurrenceDay mask = (RecurrenceDay)(StartTime.DayOfWeek);

 

 

 

WeeklyRecurrenceRule rrule = new WeeklyRecurrenceRule(1, mask, rRange);

 

 

 

 

foreach (DateTime occurrence in rrule.Occurrences)

 

{

InsertData(StartTime);

StartTime = StartTime.AddDays(7);

}

When StartTime.DaysOFWeek is typecasted to recurrenceday .its Differnet from the actual day.......

thanks in advance

 

T. Tsonev
Telerik team
 answered on 01 Jun 2009
1 answer
167 views
Hi,

I have a really complex appointment creating/editing case... Maybe I have the wrong approach...

I have created an advanced insert template for custom appointment inserting : differents appointement types, choosen with a RadTab.
Until here, it works like a charm (for inserting, editing will come later...)

When I wanted to complete my insert form, I had problems : in one of the tab, I have to put a SqlDataSource with a SelectParameter value bound to a RadCombobox (bound to another SqlDataSource) from which users can pick items to add to a ReorderList (from AjaxControlToolkit) before inserting appointment to database...

I have a problem related to the fact that the datasource is in advanced template : when I show the advanced insert template, all works fine, but when I cancel (or validate) my insert, I have this error message (forcing current cultureinfo to en-us) :
The SqlDataSource control 'srcConsultingType' does not have a naming container.  Ensure that the control is added to the page before calling DataBind.

It seams that the template is created with full page lifecycle, but since it is not added to page, there is an error...

However, do you have an idea ? If I may use the RadDock, how can I use it as a modal area ? Or maybe with a RadWindow and a custom page ? Or else with AjaxControlToolkit ModalPopup ?

Anyway, if I don't succeed with this problem, I will have to make a simple form below scheduler instead of showing my form in scheduler... My boss has bought the lib, he wants fast results... Sorry for bothering...

Thanks :o)



Dimitar Milushev
Telerik team
 answered on 01 Jun 2009
5 answers
171 views
Hi I'm using custom styles for the rad editor, the problem is that the css isn't totally applied.
For example when I type default text the correct css is applied, but when I mark this text as a link, the text color doesn't change. When i check in the page, the css is correctly, but in edit mode (and preview mode of the rad editor) the css isn't totally correct.

In the configfile i applied the CssFIles property as followed:
<property name="CssFiles">
  <item>\wpresources\RadEditorSharepoint\5.3.2.0_1f131a624888eed\Resources\CssEditor.css</item>
</property>

The Css.Editor looks as follows:

@import url("/Style%20Library/dsm_gs/DSMGS_Core.css");
@import url("/Style%20Library/dsm_gs/DSMGS_Custom.css");
@import url("/Style%20Library/dsm_gs/DSMGS_Default.css");
@import url("/Style%20Library/dsm_gs/HtmlEditorCustomStyles.css");
@import url("/Style%20Library/dsm_gs/HtmlEditorTableFormats.css");


The .css file i import are the correct ones to use, also the order of importing is correct.
I don't know why the editor doesn't apply the whole css just a part of the css.

Can somebody help me please?

Thanx in advance,

Jeroen




Stanimir
Telerik team
 answered on 01 Jun 2009
9 answers
586 views
Is there a way to set the width used by default for the controls auto-generated in a grid's edit form?  They seem to be set to 150px, but I would like them to be larger.

I don't mean the width of the table cell containing the control, but rather the text box or dropdown or whatever control appears.
Princy
Top achievements
Rank 2
 answered on 01 Jun 2009
1 answer
527 views
Hello,

I am trying to use the Image Dialog in the Editor, but have a problem: The ImageManager seems to require absolute paths, while I need to use a relative path. This is the code I have now:

 

<ImageManager ViewPaths="../Images" UploadPaths="../Images" DeletePaths="../Images" />

I would like to avoid the following:
<ImageManager ViewPaths="~/Directory/Images" UploadPaths="~/Directory/Images" DeletePaths="~/Directory/Images" />

Is there a way to get this to work?

 

Tervel
Telerik team
 answered on 01 Jun 2009
1 answer
108 views
 Hello we have strange 'black box' effect when dealing with large number of first level nodes. Here's screenshot  - http://img188.imageshack.us/img188/1912/blackbox.png  This problem appears only in firefox(3 stable and 3.5 beta aswell), in IE 7&8 everything is well. It seems like when total number of nodes to be rendered becames greater than some number every node above renders as black div. For example, screenshot was made with 1500 nodes and with 1000 nodes subset of this data no artifacts happens. Any suggestions?
Paul
Telerik team
 answered on 01 Jun 2009
4 answers
154 views
Hi,

I'm not sure I'll be able to explain correctly, but let's try.

I created a RadMenu that is populated by a web service (following the examples provided). But now I was trying to use the RadAjaxManager to call a server-side code to, on the menu items click, populate another control (in this case another RadMenu playing the role of a Breadcrumb). The problem is that these menu items that are created via web service doesn't fire the server-side event. the root (which I manually added as it is static) works fine.

Basically, this is what I have on the aspx, which I think explains a bit of what I mean
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        </telerik:RadScriptManager> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="rmModules"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="mnBreadCrumbs" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadMenu ID="rmModules" runat="server"  
            Skin="Outlook" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" 
            OnClientItemClicking="onClicking" OnItemClick="rmModules_ItemClick" 
            EnableViewState="false" EnableAjaxSkinRendering="false" EnableOverlay="false"> 
            <WebServiceSettings Path="NavigationItems.asmx" Method="GetMenuCategories" UseHttpGet="false" /> 
        </telerik:RadMenu> 
        <telerik:RadMenu ID="mnBreadCrumbs" runat="server"> 
        </telerik:RadMenu> 
    </div> 
 
 

Is it possible to do something like what I want to do? or the only way to do that is via client-side javascript?

Thanks,
Eduardo
Eduardo
Top achievements
Rank 1
 answered on 01 Jun 2009
3 answers
128 views
Hi,

I have a toolbar with a splitbutton and some buttons as childs. I use this toolbar to pre-select something and I'd like to get the selected button of my toolbar to execute some code in an other control event eg. asp button click. How can I get the selected button of the splitbutton like selecteditem in dropdown? Is it possible in general?
Yana
Telerik team
 answered on 01 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?