Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 views
Hello is there any way to support bbcode in the editor?
Thanks!
Rumen
Telerik team
 answered on 18 Jun 2010
1 answer
53 views
I've got a calendar that has CalendarDayTemplates created dynamically on load and then assigns each one to a SpecialDay in the calendar. Please see below.

            If Not IsPostBack Then
                Dim i as Integer = 0

                For Each d As RadDate In cal.SelectedDates 
                    dvTimespots.RowFilter = "startdate <= #" & d.Date & "# AND enddate >= #" & d.Date & "#"
 
                    Dim cdt As New CalendarDayTemplate(d.Date.Day, dvTimespots.Count & " media item(s)"
                    Dim dt As New DayTemplate 
                    With dt 
                        .Content = cdt 
                        .ID = i 
                    End With 
                    cal.CalendarDayTemplates.Add(dt) 
 
                    Dim rcd As New RadCalendarDay 
                    With rcd 
                        .Date = d.Date 
                        .TemplateID = i 
                    End With 
 
                    cal.SpecialDays.Add(rcd) 
 
                    i += 1 
                Next
            End If

This works great when the page is not postback, but on any postback I get this error:
System.Exception: Template with ID: 0 not found.

I'm assuming that's because the first special day rendered has a TemplateID of 0, which is not being persisted.

Is this expected functionality? Is there a workaround without re-running the above?



Iana Tsolova
Telerik team
 answered on 18 Jun 2010
0 answers
93 views
Hello Sir,

My appointment is showin  in Scheduler control. But When I Chnge 

ForeignKeyField at run time Then Appointment Not Showing in Scheduler Records Come In Our Dataset ant its bind Successfull bit Does Not Show In Scheduler. Why Please Help Me.

My Source Code :

 

ds = dl.FillDataSet(

CommandType.StoredProcedure, "uspGetAppointments", HashIn);

 

 

if (ds.Tables[0].Rows.Count > 0)

 

{

 

RadScheduler1.SelectedDate = CalApp.SelectedDate;

RadScheduler1.DayStartTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[0].ToString());

 

RadScheduler1.DayEndTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[1].ToString());

 

 

RadScheduler1.MinutesPerRow =

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.TimeLabelRowSpan = 60 /

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.DataKeyField =

"AppointmentId";

 

RadScheduler1.DataStartField =

"FromTime";

 

RadScheduler1.DataEndField =

"ToTime";

 

RadScheduler1.DataSubjectField =

"Subject";

 

RadScheduler1.GroupBy =

"Resource";

 

RadScheduler1.DataDescriptionField =

"StatusColor";

 

 

RadScheduler1.ResourceTypes.Clear();

 

ResourceType rt = new ResourceType("Resource");

 

rt.DataSource = ds.Tables[2];

rt.KeyField =

"ResourceId";

 

 

if (ddlFacility.SelectedValue == "0")

 

{

rt.ForeignKeyField =

"FacilityId";

 

}

 

else

 

 

 

 

 

{

rt.ForeignKeyField =

"DoctorId";

 

}

rt.TextField =

"ResourceName";

 

RadScheduler1.ResourceTypes.Add(rt);

 

RadScheduler1.DataSource = ds.Tables[1];

RadScheduler1.DataBind();

 

Thanks
Chandan

Chandan Kumar
Top achievements
Rank 1
 asked on 18 Jun 2010
3 answers
160 views
I want to display the all appointments in timeline view. As per the support I made a changes to display the 1 year appointments in Timeline view.


<
TimelineView UserSelectable="true" SlotDuration="365" NumberOfSlots="1" 
HeaderDateFormat="yyyy" ColumnHeaderDateFormat="yyyy" /> 

When I change the date (Back Year) from calendar it does not show the past year appointments. I cannot attach the code due to forum restrictions.

Is there any workaround for this? or can I disable the calendar when scheduler view is Timeline

Thanx.

-Deepak
Peter
Telerik team
 answered on 18 Jun 2010
1 answer
253 views
I have a RadTabStrip with 3 tabs

There is one RadMultiPage with 3 RadPageViews (one for each tab).
Inside each individual page view is a RadToolBar.  The toolbar links to other pages within that section of the app.

When I click on one of the RadToolBarButton's, it resets the selected tab.

How can I preserve the currently selected tab when different toolbarbuttons are clicked?

Princy
Top achievements
Rank 2
 answered on 18 Jun 2010
4 answers
330 views
I'm attempting to evaluate the Telerik controls for ASP.NET AJAX.  I'm coming from being a fairly long time user of a competing control suite that supposedly works with ASP.NET AJAX, but my experience with it has been very troublesome, moving from one bug to another.

I have installed the latest trial version of the RadControls (downloaded the new version today) and I am also using the April 12th release of the ASP.NET AJAX Control Toolkit.  Initially, I was receiving script errors complaining about the need for the .NET 4.0 scripts for the control toolkit, but I eventually found the solution to that problem on these forums by adding script reference to the RadScriptManager like this:

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        <Scripts> 
            <asp:ScriptReference Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" 
                Name="MicrosoftAjax.js" Path="~/Scripts/MicrosoftAjax.js" /> 
            <asp:ScriptReference Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" 
                Name="MicrosoftAjaxWebForms.js" Path="~/Scripts/MicrosoftAjaxWebForms.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
 

That RadScriptManager is on a WebForm.  I have a User Control on that form as well.  On that User Control I placed a RadGrid.  I was able to get everything working just fine with little issue.

However, I then wanted to ajaxify the RadGrid.  Initially, I placed a RadAjaxManager on the User Control and configured the Grid to intiate Ajax requests and be updated by then, like so:

    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="grd">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="grd" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
 

Now, when I click on anything on the grid I get script errors "Object doesn't support this propery or method" referencing a line number in Telerik.Web.UI.WebResource.axd.

I tried putting the RadAjaxManager on the WebForm (rather than the control) and placing a RadAjaxManagerProxy on the control, but this results in the same error.

I am running Visual Studio 2008 on Windows Vista and using ASP.NET 3.5.  I'm using the 3.5 version of the RadControls and the 3.5 version of the AJAX Control Toolkit as well.

I would really appreciate any help you can give me in what might be causing this problem as I can't continue to evaluate the product until I get past this issue.

Thank You!
Iana Tsolova
Telerik team
 answered on 18 Jun 2010
1 answer
71 views
ToolTipManager appears to be malfunctioning ONLY with Telerik controls.  If I add a another control such as a label to the controls collection and set the tooltip on the control, it works as it always has in the past.  The behaivor is that the standard tooltip is displayed, and the radtooltip renders a blank message.  Attached is a picture of the issue.  The tooltipmanager is displaying over the correct combobox, but not displaying the tooltip text.

I added a standard radtooltip control to the page and set it's target to the same radcombobox control, and it works as expected.   I can reproduce with multiple rad controls.

I'm using 2010.1.415.35
Svetlina Anati
Telerik team
 answered on 18 Jun 2010
3 answers
202 views
Hi,
I have a problem - how can I programable set focus on CAPTCHA textbox? I have tried this:
radCaptcha.FindControl("CaptchaTextBox").Focus();
and this:
Page.Form.DefaultFocus = radCaptcha.FindControl("CaptchaTextBox").ClientID; 
but I wan's success.
Kamil
Kamil Zmeskal
Top achievements
Rank 1
 answered on 18 Jun 2010
1 answer
113 views
This is only happening in IE from what I can tell.

Using the web developer tools in IE8 I can see that there is an additional paragraph being written to the page.

For example:

This is what I expect to see:

<!-- start -alc-->

<p><label>text</label>[combobox]</p>

<!-- end -alc-->

This is what it is giving me:

<!-- start -alc-->

<p><label>text</label>[combobox]</p>
<p></p>


<!-- end -alc-->



And I have also seen:

<!-- start -alc-->

<p><label>text</label></p>
[combobox]


<!-- end -alc-->

Any ideas or suggestions?

(sorry for the irrelevant title, won't let me change it...)

Thanks,
Andy C

Yana
Telerik team
 answered on 18 Jun 2010
1 answer
127 views
Hi,

I have a radgrid with a DetailTable within.  It works great except that I would like a gap/space between the bottom of my DetailTable and the top of the next row.  Is this possible?  Perhaps I could use a footer on the DetailTable?  I've attached an image showing where I would like the gap.  I'd like to avoid using an ItemTemplate as I want the columns to line up on all DetailTables.

Kind regards

Nick Raphael

Dimo
Telerik team
 answered on 18 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?