Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 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
163 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
163 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
566 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
518 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
151 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
122 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
2 answers
138 views
hello all i have some comboboxes in my projects that are all binded to tables from the database but by default it always gets the first item selected ..now how can i add an item that appears by  default but not selectable lets say it says please select something but i cannot select "please select something"..thanks in advance guys
ibrahim
Top achievements
Rank 1
 answered on 01 Jun 2009
6 answers
115 views
Hello,

We are using the RadTabs. On each tab is a panel of information. Once a user make a selection for each tab, and clicks next, it loads another panel with the RadEditor onto each tab.

Here is the code for the tabs:
**Code Removed


The problem is, it loads the radeditor OK something and all messed up other times.

It has a bunch of dots and what not. See picture:

**Link Removed

What is causing this?

FYI it only seems to happen in IE 7+, Firefox loads it fine...


Rumen
Telerik team
 answered on 01 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?