Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
183 views
I am getting some odd behaviour of RadWindow which might be related to me having just updated vs2010 to SP1 and also patching to the latest Telerik distribution.

The following code works fine on my production server:

function GetRadWindow()
{
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)         
    return oWindow;
}


But when run in debug mode I get a javascript error:

"uncaught type error: Cannot read property 'radwindow' of undefined"

I've trawled the forums and have seen several threads that tie a similar-ish behaviour to mixing http/https pages in radwindows - however I am 100% http (no https anywhere).  I should probably add that I'm using the radwindow in a masterpage/content scenario.

Am scratching my head here - not a showstopper as the code works in production, but it means I can't debug it.
Georgi Tunev
Telerik team
 answered on 28 Apr 2011
1 answer
200 views
Hello !

   I would like to know if it is possible to set a radtextbox to invalid from code behind ?

   I have a server side validation and i want that my control pass in invalid mode when i come back if it needs.I've tried to set the CssClass to radInvalidCss_Default, but it doesn't seems to work...

    I would like to do as in javascript 
       Mycontrol._invalid = true; 
       Mycontrol.updateCssClass();

thx.
Shinu
Top achievements
Rank 2
 answered on 28 Apr 2011
8 answers
175 views
After creating a new project and adding the AdvancedForm Template for the scheduler I find that it doesn't post back or respond after the AdvancedForm pops up.

Example1 is what it looks like after hitting cancel.
Example2 is what it looks like after hitting save.
Example3 is different than example 2 in that when I add info to the appointment and click save it flickers and then hangs.

This is the straight up, unedited advancedform template...I would think it should work...?
Veronica
Telerik team
 answered on 28 Apr 2011
5 answers
123 views
I am using a MVC Project using RadScheduler. My problems begins with the multi-valued resources. I use MultipleResourceValue parameter, but, in the advanced editing form, my resource appears as a DropDownList.

How can I change the DropDwonList for a CheckBoxList?

Thanks
Veronica
Telerik team
 answered on 28 Apr 2011
2 answers
110 views
I have a page set up like the following example outlined here: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx

I have exporting turned on for the parent (top) grid.
I have exportdataonly, and ignorepaging set to true on both the parent and child grids.
I have MasterTableView.HierarchyDefaultExpanded = true; for the parent grid

However.. the export contains elements that are not in the grids... things like the contents of the filter menu, the tab titles, date calendar  controls.

Any ideas why this is happening?

Perhaps someone could try this example here (http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx) for exporting and see if it also exports non data elements?

Thanks
Daniel
Telerik team
 answered on 28 Apr 2011
1 answer
104 views
Hello,

I have ASP.NET application running on Intranet.
Lately, I started receiving the following errror:

"RadUpload Ajax callback error. Source urk returned error: 401

Unauthorized

../Telerik.RadUploadProgressHandler.ashx?RadUrid=9386cd0d...etc..........
Did you register the RadUploadProgressHandler in web.config?

Please, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUPloadProgressHandler"

Any idea ?

Your support is very much appreciated!

Roy

Peter Filipov
Telerik team
 answered on 28 Apr 2011
3 answers
198 views
Hello,

I am facing a browser compatibility issue with IE9 for RadDock control. Checked the same effect with latest release as well.

Docks are working fine with IE8 but behaving abnormal with IE9. 

Though Resizable="false" but docks can be resided easily.

Scrollbars are visible.

Dock height changes automatically on mouse over.

Is this a known issue ?

<Martinbeeby:RadDockLayoutNew ID="RadDockLayout1" runat="server" OnLoadDockLayout="RadDockLayout1_LoadDockLayout"
    OnSaveDockLayout="RadDockLayout1_SaveDockLayout">
    <table style="width: 100%;">
        <tr align="left" style="padding-bottom: 5px; padding-top: 5px;">
            <td style="vertical-align: top; width: 33%;">
                <Martinbeeby:RadDockZoneNew ID="RadDockZone1" runat="server" MinHeight="500px" Width="255px"
                    BorderStyle="None">
                    <Martinbeeby:RadDockNew ID="RadDock1" runat="server" Width="255px" EnableAnimation="true"
                        Resizable="false" Skin="Sitefinity" Tag="CSMD_Average_Response_Time" Text="CSMD_Average_Response_Time"
                        AutoPostBack="true" Title="Avg Response Time" CssClass="rdTitleBar" OnCommand="RadDock_Command"
                        OnDockPositionChanged="DockPositionChanged" DockMode="Docked">
                        <Commands>
                            <telerik:DockCloseCommand AutoPostBack="true" />
                            <telerik:DockCommand Name="doEdit" Text="Customize" AutoPostBack="true" CssClass="CustomCommandEdit" />
                            <telerik:DockCommand Name="doRefresh" Text="Refresh" AutoPostBack="true" CssClass="CustomCommandRefresh" />
                        </Commands>
                        <ContentTemplate>
                            <div>
                                <uc1:AvgResponseTime ID="CSMD_Average_Response_Time" runat="server"></uc1:AvgResponseTime>
                            </div>
                        </ContentTemplate>
                    </Martinbeeby:RadDockNew>
                </Martinbeeby:RadDockZoneNew>
            </td>
            <td style="vertical-align: top; width: 33%;">
                <Martinbeeby:RadDockZoneNew ID="RadDockZone2" runat="server" MinHeight="500px" Width="255px"
                    BorderStyle="None">
                    <Martinbeeby:RadDockNew ID="RadDock2" runat="server" Width="255px" EnableAnimation="true"
                        Resizable="false" DockHandle="TitleBar" Tag="CSMD_Average_Resolution_Time_BL"
                        Text="CSMD_Average_Resolution_Time_BL" AutoPostBack="true" Skin="Sitefinity"
                        DockMode="Docked" Title="Avg Resolution Time Backline" OnCommand="RadDock_Command"
                        OnDockPositionChanged="DockPositionChanged">
                        <Commands>
                            <telerik:DockCloseCommand AutoPostBack="true" />
                            <telerik:DockCommand Name="doEdit" Text="Customize" AutoPostBack="true" CssClass="CustomCommandEdit" />
                            <telerik:DockCommand Name="doRefresh" Text="Refresh" AutoPostBack="true" CssClass="CustomCommandRefresh" />
                        </Commands>
                        <ContentTemplate>
                            <div>
                                <uc3:AvgResolutionTimeBL ID="CSMD_Average_Resolution_Time_BL" runat="server"></uc3:AvgResolutionTimeBL>
                            </div>
                        </ContentTemplate>
                    </Martinbeeby:RadDockNew>
                </Martinbeeby:RadDockZoneNew>
            </td>
            <td style="vertical-align: top; width: 33%;">
                <Martinbeeby:RadDockZoneNew ID="RadDockZone3" runat="server" MinHeight="500px" Width="255px"
                    BorderStyle="None">
                    <Martinbeeby:RadDockNew ID="RadDock3" runat="server" Width="255px" EnableAnimation="true"
                        Resizable="true" DockHandle="TitleBar" Tag="CSMD_Average_Resolution_Time_FL"
                        Text="CSMD_Average_Resolution_Time_FL" AutoPostBack="true" Skin="Sitefinity"
                        DockMode="Docked" Title="Avg Resolution Time Frontline" OnCommand="RadDock_Command"
                        OnDockPositionChanged="DockPositionChanged">
                        <Commands>
                            <telerik:DockCloseCommand AutoPostBack="true" />
                            <telerik:DockCommand Name="doEdit" Text="Customize" AutoPostBack="true" CssClass="CustomCommandEdit" />
                            <telerik:DockCommand Name="doRefresh" Text="Refresh" AutoPostBack="true" CssClass="CustomCommandRefresh" />
                        </Commands>
                        <ContentTemplate>
                            <div>
                                <uc2:AvgResolutionTimeFL ID="CSMD_Average_Resolution_Time_FL" runat="server"></uc2:AvgResolutionTimeFL>
                            </div>
                        </ContentTemplate>
                    </Martinbeeby:RadDockNew>
                </Martinbeeby:RadDockZoneNew>
            </td>
        </tr>
    </table>
</Martinbeeby:RadDockLayoutNew>

.RadDock .rdTop .rdTitleBar
    {
        text-align: left;
        position: relative;
        vertical-align:top  !important;
    }
    .RadDock
    {
        height: auto!important;
        margin: 0 0 15px 0 !important;
    }
Pero
Telerik team
 answered on 28 Apr 2011
3 answers
97 views
Hi Team,
I have converted my gridview into radgrid. It has GridBoundColumn craeted dynamicaly . Grid is getting populated with data, but 
advance features like filtering ,export to excel are not working. Please assist.

A quick response is highly appreciated !!

Here I am writing code in code block for your reference.

Thanks,
<telerik:RadGrid ID="grvResponses" AllowFilteringByColumn="true" Height="300px" Width="95%"
                            AutoGenerateColumns="False" runat="server">
                            <ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true">
                            </ExportSettings>
                            <GroupingSettings CaseSensitive="false" />
                            <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder"
                            AllowGroupExpandCollapse="True" AllowDragToGroup="true">
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
                            </Scrolling>
                            <Animation AllowColumnReorderAnimation="true" AllowColumnRevertAnimation="true" ColumnReorderAnimationDuration="100"
                                ColumnRevertAnimationDuration="100" />
                            <ClientEvents />
                        </ClientSettings>
                            <MasterTableView NoMasterRecordsText="No Objects Found !" CommandItemDisplay="Top">
                                <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false"
                                    ShowExportToCsvButton="false" ShowRefreshButton="false" />
                            </MasterTableView>
                            <ClientSettings AllowDragToGroup="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true"
                                ColumnsReorderMethod="Reorder">                               
                                <Resizing AllowColumnResize="true" AllowResizeToFit="true" />
                                <Animation AllowColumnReorderAnimation="true" AllowColumnRevertAnimation="true" />
                                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
                                </Scrolling>
                            </ClientSettings>
                        </telerik:RadGrid>
 
 
 
 
 
 
  Private Sub BindData()
 
        Dim ReportTypeId As Integer
        Dim ReportDataSourceId As Integer
        Dim rf As DataSourceFactory
        Dim ds As DataSource
        Dim ReportType As New ReportType()
        Dim _displayStyle As String = "S"
        If (SecurityContext.ProjectId = 9) Then
            _displayStyle = "C"
        End If
        Dim dt As Data.DataTable
 
        Dim xMid, xMid1, XAxisLowerLimit, YAxisLowerLimit As String
        Dim yMid, yMid1 As String
        Dim RegionIndex As String
        Dim objDataSourceModel As New DataSourceModel
        Dim AxisX, AxisY, AxisZ As String
        Dim condition As String = ""
        Dim objReportDataSource As New DataSourceType
        Dim has2midval, haszAxis As Boolean
        XAxisLowerLimit = "0"
        YAxisLowerLimit = "0"
 
        ReportDataSourceId = CType(Request.QueryString("ReportDataSourceId"), Integer)
        ReportTypeId = CType(Request.QueryString("ReportTypeId"), Integer)
 
 
        xMid = CType(Request.QueryString("xMid"), String)
        yMid = CType(Request.QueryString("yMid"), String)
        If Not (CType(Request.QueryString("xMid1"), String) Is Nothing) Then
            xMid1 = CType(Request.QueryString("xMid1"), String)
            has2midval = True
        End If
        If Not (CType(Request.QueryString("yMid1"), String) Is Nothing) Then
            yMid1 = CType(Request.QueryString("yMid1"), String)
            has2midval = True
        End If
        RegionIndex = CType(Request.QueryString("RegionIndex"), String)
        XAxis = CType(Request.QueryString("XAxis"), String)
        YAxis = CType(Request.QueryString("YAxis"), String)
        If Not (CType(Request.QueryString("ZAxis"), String) Is Nothing) Then
            ZAxis = CType(Request.QueryString("ZAxis"), String)
            haszAxis = True
        End If
        If Not (CType(Request.QueryString("zAxisLabel"), String) Is Nothing) Then
            ZAxisLabel = CType(Request.QueryString("zAxisLabel"), String)
            haszAxis = True
        End If
        XAxisLabel = CType(Request.QueryString("xAxisLabel"), String)
        YAxisLabel = CType(Request.QueryString("yAxisLabel"), String)
 
        ReportType = CType(ReportTypeId, ReportType)
        rf = New DataSourceFactory()
        ds = rf.CreateDataSource(DataSourceType.PrizmDataSource)
        If (SecurityContext.ProjectId = 0) Then
            Dim f As Field
            f = New Field()
            f.FieldId = "pinProjectId"
            f.FieldType = SqlDbType.Int
            'f.Value = SecurityContext.PId
            'Added By Shankar Pandit
            Dim dtReportProperty As System.Data.DataTable = Nothing
            Dim objReportMaster As APOBL.ReportMaster = New APOBL.ReportMaster()
            dtReportProperty = objReportMaster.getReportProjIDForBucket(ReportId)
            f.Value = dtReportProperty.Rows(0)(0).ToString()
            'End
            objFilter.Fields.Add(f)
 
            f = New Field()
            f.FieldId = "pinReportId"
            f.FieldType = SqlDbType.Int
            f.Value = ReportId.ToString()
            objFilter.Fields.Add(f)
 
            'f = New Field()
            'f.FieldId = "totalRows"
            'f.FieldType = Data.SqlDbType.Int
            'f.Value = "0"
            'f.OutParam = True
            'objFilter.Fields.Add(f)
            'ds.CreateDataSource(objFilter)
            'dt = ds.ProcessedDataSource
        Else
            If (ReportId <> 0) Then
                Dim f As Field
                f = New Field()
                f.FieldId = "pinProjectId"
                f.FieldType = SqlDbType.Int
                f.Value = SecurityContext.ProjectId
                objFilter.Fields.Add(f)
 
                f = New Field()
                f.FieldId = "pinReportId"
                f.FieldType = SqlDbType.Int
                f.Value = ReportId.ToString()
                objFilter.Fields.Add(f)
 
                Session("Filter") = objFilter
                'f = New Field()
                'f.FieldId = "totalRows"
                'f.FieldType = Data.SqlDbType.Int
                'f.Value = "0"
                'f.OutParam = True
                'objFilter.Fields.Add(f)
            Else
                If Not Session("Filter") Is Nothing Then
                    objFilter = Session("Filter")
                End If
            End If
            'ds.CreateDataSource(objFilter)
            'dt = ds.ProcessedDataSource
 
        End If
        ds.CreateDataSource(objFilter)
        dt = ds.ProcessedDataSource
        Cache("data") = dt
        AxisX = XAxis
        AxisY = YAxis
        XAxis = "[" & XAxis & "]"
        YAxis = "[" & YAxis & "]"
 
        If Not has2midval Then
            If RegionIndex = "1" Then
                condition = XAxis + " > " + xMid.ToString() + " And " + YAxis + "<= " + yMid.ToString()
            End If
            If RegionIndex = "0" Then
                condition = XAxis + " <= " + xMid.ToString() + " And " + YAxis + "<= " + yMid.ToString()
            End If
            If RegionIndex = "2" Then
                condition = XAxis + " <= " + xMid.ToString() + " And " + YAxis + "> " + yMid.ToString()
            End If
            If RegionIndex = "3" Then
                condition = XAxis + " > " + xMid.ToString() + " And " + YAxis + ">" + yMid.ToString()
            End If
        Else
            If RegionIndex = "1" Then
                condition = XAxis + " > " + xMid.ToString() + " And " + XAxis + "<= " + xMid1.ToString() + " And " + YAxis + "<= " + yMid.ToString()
            End If
            If RegionIndex = "0" Then
                condition = XAxis + " <= " + xMid.ToString() + " And " + YAxis + "<= " + yMid.ToString()
            End If
            If RegionIndex = "2" Then
                condition = XAxis + " > " + xMid1.ToString() + " And " + YAxis + "<= " + yMid.ToString()
            End If
 
            If RegionIndex = "4" Then
                condition = XAxis + " > " + xMid.ToString() + " And " + XAxis + "<= " + xMid1.ToString() + " And " + YAxis + "<= " + yMid1.ToString() + " And " + YAxis + "> " + yMid.ToString()
            End If
            If RegionIndex = "3" Then
                condition = XAxis + " <= " + xMid.ToString() + " And " + YAxis + "<= " + yMid1.ToString() + " And " + YAxis + "> " + yMid.ToString()
            End If
            If RegionIndex = "5" Then
                condition = XAxis + " > " + xMid1.ToString() + " And " + YAxis + "<= " + yMid1.ToString() + " And " + YAxis + "> " + yMid.ToString()
            End If
 
            If RegionIndex = "7" Then
                condition = XAxis + " > " + xMid.ToString() + " And " + XAxis + "<= " + xMid1.ToString() + " And " + YAxis + "> " + yMid1.ToString()
            End If
            If RegionIndex = "6" Then
                condition = XAxis + " <= " + xMid.ToString() + " And " + YAxis + "> " + yMid1.ToString()
            End If
            If RegionIndex = "8" Then
                condition = XAxis + " > " + xMid1.ToString() + " And " + YAxis + "> " + yMid1.ToString()
            End If
        End If
        Dim newDs As New DataSet()
        dt.DefaultView.RowFilter = condition
 
        grvResponses.DataSource = dt.DefaultView
        
        If _displayStyle = "S" Then
            lblHeader.InnerText = "Objects"
            '   grvResponses.EmptyDataText = "No Objects Found"
            '   grvResponses.MasterTableView.NoDetailRecordsText = "No Object Found"
 
            'Dim Application As BoundField = New BoundField()
            Dim Application As GridBoundColumn = New GridBoundColumn()
            Application.DataField = dt.Columns(1).ColumnName
            Application.HeaderText = CType(Request.QueryString("Series"), String)
            Application.HtmlEncode = False
            'grvResponses.Columns.Add(Application)
            grvResponses.MasterTableView.Columns.Add(Application)
 
 
            'Dim XAxisField As BoundField = New BoundField()
            Dim XAxisField As GridBoundColumn = New GridBoundColumn()
            XAxisField.DataField = AxisX
            XAxisField.HeaderText = XAxisLabel
            XAxisField.HtmlEncode = False
            XAxisField.DataFormatString = "{0:#.0}"
            '  grvResponses.Columns.Add(XAxisField)
            grvResponses.MasterTableView.Columns.Add(XAxisField)
 
            'Dim YAxisField As BoundField = New BoundField()
            Dim YAxisField As GridBoundColumn = New GridBoundColumn()
            YAxisField.DataField = AxisY
            YAxisField.HeaderText = YAxisLabel
            YAxisField.HtmlEncode = False
            'YAxisField.DataFormatString = "{0:#.0}"
            'grvResponses.Columns.Add(YAxisField)
            grvResponses.MasterTableView.Columns.Add(YAxisField)
 
        Else ' display style is comment
            lblHeader.InnerText = "Projects"
            '    grvResponses.EmptyDataText = "No Projects Found"
            grvResponses.MasterTableView.NoMasterRecordsText = "No Projects Found"
            'Dim Application As BoundField = New BoundField()
            Dim Application As GridBoundColumn = New GridBoundColumn()
            Application.DataField = "ObjectName"
            Application.HeaderText = "Project"
            Application.HtmlEncode = False
            '   grvResponses.Columns.Add(Application)
            grvResponses.MasterTableView.Columns.Add(Application)
 
 
            Dim XAxisField As TemplateField = New TemplateField()
            XAxisField.ShowHeader = True
            XAxisField.HeaderText = XAxisLabel
            'XAxisField.HtmlEncode = False
            XAxisField.ItemTemplate = New TableControlItemTemplate(ListItemType.Item, AxisX, XAxisLabel, xMid, xMid1)
            'XAxisField.DataFormatString = "{0:#.0}"
            '  grvResponses.Columns.Add(XAxisField)
            grvResponses.MasterTableView.Columns.Add(XAxisField)
 
            Dim YAxisField As TemplateField = New TemplateField()
            YAxisField.ShowHeader = True
            YAxisField.HeaderText = YAxisLabel
            'YAxisField.HtmlEncode = False
            'YAxisField.DataFormatString = "{0:#.0}"
            YAxisField.ItemTemplate = New TableControlItemTemplate(ListItemType.Item, AxisY, YAxisLabel, yMid, yMid1)
            'grvResponses.Columns.Add(YAxisField)
            grvResponses.MasterTableView.Columns.Add(YAxisField)
        End If
        If (haszAxis) Then
            '  Dim ZAxisField As BoundField = New BoundField()
            Dim ZAxisField As GridBoundColumn = New GridBoundColumn()
            ZAxisField.DataField = ZAxis
            ZAxisField.HeaderText = ZAxisLabel
            ZAxisField.HtmlEncode = False
            ZAxisField.DataFormatString = "{0:#.0}"
            ' grvResponses.Columns.Add(ZAxisField)
            grvResponses.MasterTableView.Columns.Add(ZAxisField)
        End If
        grvResponses.DataBind()
 
    End Sub

Abhishek Dixit,
Hcl Noida
Daniel
Telerik team
 answered on 28 Apr 2011
1 answer
141 views
How to remove drag & drop column grouping?

Thank you

Regards
Raj
Pavlina
Telerik team
 answered on 28 Apr 2011
1 answer
157 views
Hi all,

I use telerik ASP.NET AJAX control to develop sharepoint webpart, but in sharepoint sandbox model, it throw this exception below:

I add RadTextBox of telerik ASP.NET AJAX to the page. but it throw the Exception: "Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred". I debug my code, but I catch nothing about this exception. 

In my code, i just use Page.Controls.Add(...) to add terelik control into page, but throw this exception. then I try to use Page.Controls.Add(..) method to add a ASP.NET control into page, it is OK.

I know many restrictions in sharepoint sandbox model, one of these is "can’t access code that is not marked to allow partially trusted callers". I wonder this exception is relationship with it. any configuration i should set into web.config file?

anyone can give me some suggestions?

thanks.
Marin
Telerik team
 answered on 28 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?