Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
203 views
I have copied part of the online tabstrip/javascript demo located at http://www.telerik.com/demos/aspnet/TabStrip/Examples/Programming/ClientSideAPI/DefaultCS.aspx but I am not getting the results I expect when I run the project.

If I try the original tab assignation in the example:

        function tabClicked() {
            var currentTab = <%= RadTabStrip1.ClientID %>.SelectedTab;
            var message = currentTab.Text;
            alert(message);
        }

I get the error - 'Text' is null or not an object at the "var message = " assignation line.

I also notice that the Visual Studio 2008 IDE indicates "Expected expression" when I hover over the "<" of  <%= RadTabStrip1...

Is there some vital step that I have missed or some fundamental error/assumption that I've made?

TIA,
John.


John
Top achievements
Rank 1
 answered on 25 Aug 2008
1 answer
111 views
Hello. I'm using a NestedViewTemplate in a grid with client-side grouping enabled. When you add a new grouping by dragging the column header onto the group panel, collapse the group, and then expand the group, it expands all of the NestedViewTemplates automatically.

I set 

HierarchyDefaultExpanded

="false"

on the MasterTableView, but it had no effect. 
Ie found a similar post from May:

http://www.telerik.com/community/forums/thread/b311D-bdkcge.aspx

Does anyone know a workaround for this? We're using the latest version of the ASP.Net Ajax controls.

Thanks!

Tye
Daniel
Telerik team
 answered on 25 Aug 2008
1 answer
107 views
Hi there,

My client whishes, to display a gantt with hiearchical structure. So it would look like MS Project.

Now it should be able, to expand the nodes.
Is this possible with telerik charts? I think no, because it is only a picture, but could I maybe use a sheduler for this?
Peter
Telerik team
 answered on 25 Aug 2008
1 answer
114 views
I set AllowCustomColors="True", but I still can not add custom colors.
All I can use are 70 pre-defined colors in the Color Picker
George
Telerik team
 answered on 25 Aug 2008
6 answers
325 views
Hi all,

I have a grid and three datetime columns within it.
<telerik:GridDateTimeColumn PickerType="DatePicker" DataType="System.DateTime" ...        
<telerik:GridDateTimeColumn PickerType="DateTimePicker" DataType="System.DateTime" ...
<telerik:GridDateTimeColumn PickerType="TimePicker" DataType="System.DateTime" ...

Filtering by using DatePicker works fine.
When I try to filter by second column where I get to choose date and time (from DateTimePicker) and by 3rd column I get to choose time (from TimePicker) I get following error:

The string was not recognized as a valid DateTime.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: The string was not recognized as a valid DateTime.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[FormatException: The string was not recognized as a valid DateTime.]
Telerik.Web.UI.RadDatePicker.set_DbSelectedDate(Object value) +607
Telerik.Web.UI.GridDateTimeColumnHelper.SetDataInputControlValue(Control control, GridDateTimeColumnPickerType pickerType, String value) +51
Telerik.Web.UI.GridDateTimeColumn.SetCurrentFilterValueToControl(TableCell cell) +103
Telerik.Web.UI.GridColumn.SetCurrentFilterValueToControlInternal(TableCell cell) +31
Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +7375
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


Any ideas?

Another question: Is it possible to set up grid not to display or localize javascript alert "No filter value!" when filter value is empty?

Thanks a lot for the answers.
Vik


andy
Top achievements
Rank 1
 answered on 25 Aug 2008
1 answer
162 views
Hi,

How i can to insert a windows radalert into a limiting the number of concurrent appointment (RadScheduler) instead to labelerror?

When i insert a duplicate appointment don't have a labelerror but a radalert windows, is possible to make this?

Protected Function ExceedsLimit(ByVal apt As Appointment) As Boolean
            Dim appointmentsCount As Integer = RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End).Count
            Return (appointmentsCount > (AppointmentsLimit - 1))
        End Function

        Protected Sub RadScheduler1_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs)
            If ExceedsLimit(e.Appointment) Then
                Label1.Text = "Another appointment exists in this time slot." <- radalert windows?
                e.Cancel = True
            End If
        End Sub


Georgi Tunev
Telerik team
 answered on 25 Aug 2008
1 answer
111 views

All the content in my slidingplane is not how it should be ... font-size = small, css class defined structures handled different then in a normal RadPane ...
How come ? Below my splitter

<telerik:RadSplitter id="splitter1" runat="server" height="470" width="100%">  
    <telerik:RadPane ID="paneleft" runat="server" Width="200" Scrolling="Both" MinWidth="200" MaxWidth="300">  
    </telerik:RadPane>      
    <telerik:RadSplitBar id="split1" runat="server"></telerik:RadSplitBar> 
    <telerik:RadPane id="panemain" MinWidth="500" runat="server">  
            
        <div style="padding: 10px;">  
            <asp:UpdatePanel ID="updatePanel" runat="server">  
                <ContentTemplate> 
                </ContentTemplate> 
            </asp:UpdatePanel> 
        </div> 
            
    </telerik:RadPane> 
          
    <telerik:RadPane id="paneright" Width="22" runat="server">  
        <telerik:RadSlidingZone id="zoneright" runat="server" Width="22" DockedPaneId="slidingpane1" ClickToOpen="True" slidedirection="Left">  
            <telerik:RadSlidingPane id="slidingpane1" Scrolling="Y" Height="400" title="SlindingPane 1" runat="server" Width="210">  
            </telerik:RadSlidingPane> 
        </telerik:RadSlidingZone> 
    </telerik:RadPane> 
</telerik:RadSplitter>  
Tsvetie
Telerik team
 answered on 25 Aug 2008
5 answers
142 views
Hello,

I have RadControls for ASP.NET AJAX v2008.1.619.

I have a RadGrid with 3 visible columns and am using the Sunset skin.  The header text forecolor should be white and when moused-over should be a brownish color.  The header text color on columns 1 and 2 are wrong (the brownish color) but the header text color on column 3 is correct (white).  I used View Source and noticed that columns 1 and 2 are rendering with the <span> tag but column 3 is rendering as an anchor <A> tag.

Any idea why this is happening and how to fix it?

Thanks,

Randall Price
Randall
Top achievements
Rank 2
 answered on 25 Aug 2008
1 answer
102 views
Hi,

Is it possible to disable the pop up zone?  I still want to be able to scroll through the months 1 at a time.  I just don't want to have the popup selector popup.

I am using the new telerik controls.

Thanks,
Rob
Maria Ilieva
Telerik team
 answered on 25 Aug 2008
1 answer
131 views
Using the simple database schema described in the Scheduler docs there is a field called "RecurrenceRule".  The data for recurrence is stored using a string that looks like....

DTSTART:20080819T090000Z
DTEND:20080819T100000Z
RRULE:FREQ=DAILY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU
EXDATE:20080827T090000Z,20080828T090000Z,20080903T090000Z

Is there any Class in the Scheduler that splits this up?  I need to access certain elements of it and would rather not write new code to get at the data.

Thanks!
Dimitar Milushev
Telerik team
 answered on 25 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?