Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
I'm trying to make my TimePickers look like the <asp:TextBox ...> next to it.  I've tried:

- apply a CSS class with "border-style: inset;"

- set DateInput-BorderStyle="Inset"

- set Skin="" [on both TimePicker and DateInput]

None of the above works.

[And yes, I've seen this: http://www.telerik.com/community/forums/aspnet-ajax/input/radnumerictextbox-border.aspx -- it didn't help]

Dimo
Telerik team
 answered on 21 Jun 2010
4 answers
161 views
Hi,

I have empty spaces on my column names. When I am trying to do groupby I am getting error. Is there any way that i can groupby column names even if i have spaces in column names. I cant change the column names in sql server. I am calling storeproc so i cant even change the query in program. And I am not using mastertableview. I am directly binding the columns to the radgrid.

Please let me know if there is any solution. Here is My radgrid.
<telerik:RadGrid ID="gvTrackers" Height="550px" runat="server" CallbackMode="true" 
            Serialize="true" FolderStyle="styles/style_11" AllowPaging="true" AllowSorting="True" 
            GridLines="None" AutoGenerateColumns="true" ShowGroupPanel="True" EnableHeaderContextMenu="true" 
            EnableHeaderContextFilterMenu="true" AllowMultiRowSelection="true" AllowFilteringByColumn="True" 
            OnNeedDataSource="gvTrackers_NeedDataSource" OnItemCreated="gvTrackers_ItemCreated" 
            OnExcelMLExportStylesCreated="gvTrackers_ExcelMLExportStylesCreated" OnExcelMLExportRowCreated="gvTrackers_ExcelMLExportRowCreated" 
            OnItemCommand="gvTrackers_ItemCommand"
            <HeaderStyle Height="80px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Center" BorderColor="White" BorderWidth="0px" /> 
            <ExportSettings IgnorePaging="true" ExportOnlyData="true"
            <Pdf AllowModify="false" AllowPrinting="true" PageWidth="16in" /> 
            </ExportSettings> 
            <MasterTableView AllowMultiColumnSorting="true" CommandItemDisplay="Top"
                <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" 
                    ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" /> 
            </MasterTableView> 
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True"
                <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                <Selecting AllowRowSelect="True"></Selecting> 
                <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" 
                    ResizeGridOnColumnResize="False"></Resizing> 
            </ClientSettings> 
            <GroupingSettings ShowUnGroupButton="true" /> 
            <PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Right" Font-Bold="true" AlwaysVisible="true" /> 
        </telerik:RadGrid> 


One more question. Is there anyway that i can get print option to the radgrid. Like if press print button it should the all columns from the radgrid directly without exporting to any format file. Is there any option in radgrid.

Thanks
Babu
Pavlina
Telerik team
 answered on 21 Jun 2010
1 answer
146 views
Hi all.
In radgrid, after some operation on client side I want to refresh the grid, so I use __doPostBack(gridid). Update panel is refreshing, but only Page_Load is fired, not needdatasource event. How can I refresh the update panel and refresh the data in grid?
Shinu
Top achievements
Rank 2
 answered on 21 Jun 2010
1 answer
230 views

Hi,

I am using radGrid with CommandItem,with that I am using ASP.Net Ajax CalendarExtender with the text box,
but when I am trying to find the Textbox with javascript,It is returning Null,(Please look into Call and Call1 JavaScript function.)

Please look at the below code ,and check where I am wrong ? Error is there in 

 

 

//document.getElementById("textBoxEndMonthYear").value = target.date.format("MMM yyyy"); 
/document.getElementById("textBoxEndMonthYear") is returing null.

<%@ Page Language="C#" MasterPageFile="~/ReAPComplete.Master" AutoEventWireup="true" 
    CodeBehind="ReleaseManagement.aspx.cs" Inherits="NFP.PPP.WebApp.ReleaseManagement" 
    Title="Project Portfolio Prioritization" %> 
 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server" 
    EnableViewState="true">  
 
    <script type="text/javascript" language="javascript">  
 
        function onCalendarShown() {   
        //debugger;  
 
            var cal = $find("calendar1");  
            //Setting the default mode to month  
            cal._switchMode("months", true);  
 
            //Iterate every month Item and attach click event to it  
            if (cal._monthsBody) {  
                for (var i = 0; i < cal._monthsBody.rows.length; i++) {  
                    var row = cal._monthsBody.rows[i];  
                    for (var j = 0; j < row.cells.length; j++) {  
                        Sys.UI.DomEvent.addHandler(row.cells[j].firstChild, "click", call);  
                    }  
                }  
            }  
        }  
 
        function onCalendarHidden() {  
//debugger;  
            var cal = $find("calendar1");  
            //Iterate every month Item and remove click event from it  
            if (cal._monthsBody) {  
                for (var i = 0; i < cal._monthsBody.rows.length; i++) {  
                    var row = cal._monthsBody.rows[i];  
                    for (var j = 0; j < row.cells.length; j++) {  
                        Sys.UI.DomEvent.removeHandler(row.cells[j].firstChild, "click", call);  
                    }  
                }  
            }  
 
        }  
 
        function call(eventElement) {  
            // debugger;  
            var target = eventElement.target;  
            switch (target.mode) {  
                case "month":  
                    var cal = $find("calendar1");  
                    cal._visibleDate = target.date; //target.date.format("MMM yyyy")  
                   //document.getElementById("textBoxEndMonthYear").value = target.date.format("MMM yyyy");  
                    cal.set_selectedDate(target.date);  
                    cal._switchMonth(target.date);  
                    cal._blur.post(true);  
                    cal.raiseDateSelectionChanged();  
                    break;  
            }  
        }  
          
        function onCalendarShown1() {  
 
            var cal = $find("calendar2");  
            //Setting the default mode to month  
            cal._switchMode("months", true);  
 
            //Iterate every month Item and attach click event to it  
            if (cal._monthsBody) {  
                for (var i = 0; i < cal._monthsBody.rows.length; i++) {  
                    var row = cal._monthsBody.rows[i];  
                    for (var j = 0; j < row.cells.length; j++) {  
                        Sys.UI.DomEvent.addHandler(row.cells[j].firstChild, "click", call1);  
                    }  
                }  
            }  
        }  
 
        function onCalendarHidden1() {  
 
            var cal = $find("calendar2");  
            //Iterate every month Item and remove click event from it  
            if (cal._monthsBody) {  
                for (var i = 0; i < cal._monthsBody.rows.length; i++) {  
                    var row = cal._monthsBody.rows[i];  
                    for (var j = 0; j < row.cells.length; j++) {  
                        Sys.UI.DomEvent.removeHandler(row.cells[j].firstChild, "click", call1);  
                    }  
                }  
            }  
 
        }  
 
        function call1(eventElement) {  
            // debugger;  
            var target = eventElement.target;  
            switch (target.mode) {  
                case "month":  
                    var cal = $find("calendar2");  
                    cal._visibleDate = target.date; //target.date.format("MMM yyyy")  
                    //document.getElementById("selectedDate").value = target.date.format("ddMMMyyyy");  
                    //document.getElementById("textBoxEndMonthYear").value = target.date.format("MMM yyyy");  
                    cal.set_selectedDate(target.date);  
                    cal._switchMonth(target.date);  
                    cal._blur.post(true);  
                    cal.raiseDateSelectionChanged();  
                    break;  
            }  
        }  
    </script> 
 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" 
        EnableAJAX="true">  
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
        <div style="padding-top: 20px; padding-left: 2%">  
            <asp:HiddenField ID="hiddenFieldReleaseId" runat="server" /> 
            <asp:Label ID="label1" runat="server" Text="Release Management" Font-Bold="true" 
                ForeColor="DarkBlue"></asp:Label> 
            <telerik:RadGrid ID="radGridManageReleases" Width="800px" runat="server" OnUpdateCommand="radGridManageReleases_UpdateCommand" 
                AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" 
                OnDeleteCommand="radGridManageReleases_DeleteCommand" AllowPaging="true" ItemStyle-HorizontalAlign="Left" 
                AutoGenerateColumns="false" PagerStyle-AlwaysVisible="true" PagerStyle-Mode="NextPrevAndNumeric" 
                ShowGroupPanel="True" GridLines="None" PageSize="10" GroupHeaderItemStyle-HorizontalAlign="Left" 
                OnItemCommand="radGridManageReleases_ItemCommand" GroupHeaderItemStyle-Font-Bold="true" 
                HeaderStyle-Font-Bold="true" OnNeedDataSource="radGridManageReleases_NeedDataSource" 
                HeaderStyle-HorizontalAlign="Left">  
                <MasterTableView EnableColumnsViewState="true" CommandItemDisplay="Top" Width="800px" 
                    TableLayout="Fixed" DataKeyNames="ReleaseID, ReleaseName">  
                    <Columns> 
                        <telerik:GridBoundColumn DataField="ReleaseID" HeaderText="ReleaseID" UniqueName="Release ID" 
                            Visible="false" Display="false">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="SerialNumber" HeaderText="S.No" UniqueName="SerialNumber" 
                            Visible="true" Display="true">  
                            <HeaderStyle Width="35px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="ReleaseName" HeaderText="Release Name" Visible="true" 
                            UniqueName="ReleaseName" Display="true">  
                            <HeaderStyle Width="80px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn DataField="StartMonth" HeaderText="StartMonth" UniqueName="StartMonth" 
                            Display="false" Visible="false">  
                            <EditItemTemplate> 
                                <asp:DropDownList ID="ddlStartMonth" Height="200px" runat="server" DataTextField="MonthName" 
                                    DataValueField="MonthId" DataSource='<%# (months)  %>' SelectedValue='<%# Bind("StartMonth")%>' /> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                                <%# DataBinder.Eval(Container.DataItem, "StartMonth")%> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn DataField="EndMonth" HeaderText="EndMonth" UniqueName="EndMonth" 
                            Display="false" Visible="false">  
                            <EditItemTemplate> 
                                <asp:DropDownList ID="ddlEndMonth" Height="200px" runat="server" DataTextField="MonthName" 
                                    DataValueField="MonthId" DataSource='<%# (months)  %>' SelectedValue='<%# Bind("EndMonth")%>' /> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                                <%# DataBinder.Eval(Container.DataItem, "EndMonth")%> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn DataField="StartMonthYear" HeaderText="Start Month" UniqueName="StartMonthYear" 
                            Display="true">  
                            <HeaderStyle Width="70px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="EndMonthYear" HeaderText="End Month" UniqueName="EndMonthYear" 
                            Display="true">  
                            <HeaderStyle Width="70px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="DeveloperWorkingHours" HeaderText="Developer Working Hours" 
                            Visible="true" UniqueName="DeveloperWorkingHours" Display="true">  
                            <HeaderStyle Width="110px" /> 
                            <ItemStyle HorizontalAlign="Center" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="QAWorkingHours" HeaderText="QA Working Hours" 
                            Visible="true" UniqueName="QAWorkingHours" Display="true">  
                            <HeaderStyle Width="90px" /> 
                            <ItemStyle HorizontalAlign="Center" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="TotalAvailableDevelopmentHrs" HeaderText="Total Available Development Hrs" 
                            Visible="true" UniqueName="TotalAvailableDevelopmentHrs" Display="true">  
                            <HeaderStyle Width="130px" /> 
                            <ItemStyle HorizontalAlign="Center" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="AssignedDevelopmentHrs" HeaderText="Assigned Development Hrs" 
                            Visible="true" UniqueName="AssignedDevelopmentHrs" Display="true">  
                            <HeaderStyle Width="100px" /> 
                            <ItemStyle HorizontalAlign="Center" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn UniqueName="DevCapacity" Display="true" Visible="true">  
                            <EditItemTemplate> 
                            </EditItemTemplate> 
                            <ItemTemplate> 
                                <asp:LinkButton ID="lnkDevCapacity" CommandArgument='<%# Bind("ReleaseID")%>' runat="server" 
                                    Style="color: blue" Text="View Dev Capacity" OnClick="lnkDevCapacity_Click"></asp:LinkButton> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                    <CommandItemTemplate> 
                        <div style="padding: 5px 5px;">  
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !radGridManageReleases.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" />Add New</asp:LinkButton>&nbsp;&nbsp;  
                            <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# radGridManageReleases.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Edit</asp:LinkButton>&nbsp;&nbsp;  
                            <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# radGridManageReleases.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" />Update</asp:LinkButton>&nbsp;&nbsp;  
                            <asp:LinkButton ID="btnCancel" CausesValidation="false" runat="server" CommandName="CancelAll" 
                                Visible='<%# radGridManageReleases.EditIndexes.Count > 0 || radGridManageReleases.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" />Cancel</asp:LinkButton>&nbsp;&nbsp;  
                            <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected customers?')" 
                                runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" />Delete</asp:LinkButton>&nbsp;&nbsp;  
                            <asp:LinkButton ID="LinkButtonAssign" runat="server" CommandName="AssignResources"><img style="border:0px;vertical-align:middle;" alt="Assign Resources" src="Images/Refresh.gif" />Allocate Resource</asp:LinkButton>&nbsp;&nbsp;  
                            <asp:LinkButton ID="LinkButton4" CausesValidation="false" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" />Refresh</asp:LinkButton> 
                        </div> 
                    </CommandItemTemplate> 
                    <EditFormSettings EditFormType="Template">  
                        <EditColumn UniqueName="EditColumn">  
                        </EditColumn> 
                        <FormTemplate> 
                            <table id="tblGridEdit" runat="server" cellpadding="2" style="width: 100%; height: 100%;">  
                                <tr> 
                                    <td style="width: 20%" align="right">  
                                        Release Name:&nbsp;  
                                    </td> 
                                    <td> 
                                        <asp:TextBox ID="txtReleaseName" BorderWidth="1" Width="30%" Text='<%# Bind( "ReleaseName") %>' 
                                            runat="server"></asp:TextBox> 
                                        <asp:RequiredFieldValidator ID="rfvReleaseName" runat="server" ErrorMessage="*" ControlToValidate="txtReleaseName" 
                                            SetFocusOnError="True"></asp:RequiredFieldValidator> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td style="width: 20%" align="right">  
                                        Start Month and Year:  
                                    </td> 
                                    <td> 
                                        <%--   <asp:DropDownList ID="ddlFromMonth" runat="server" SelectedValue='<%# Bind("StartMonth") %>' 
                                            DataSource='<%# (months) %>' AppendDataBoundItems="True" DataTextField="MonthName" 
                                            DataValueField="MonthId">  
                                            <asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem> 
                                        </asp:DropDownList>--%> 
                                        <asp:TextBox ID="textBoxStartMonthYear" runat="server" Text='<%# Bind( "StartMonthYear") %>'></asp:TextBox> 
                                        <cc1:CalendarExtender ID="calenderExtenderStartMonthYear" runat="server" OnClientHidden="onCalendarHidden" 
                                            OnClientShown="onCalendarShown" BehaviorID="calendar1" Enabled="True" TargetControlID="textBoxStartMonthYear" 
                                            Format="MMM yyyy">  
                                        </cc1:CalendarExtender> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td style="width: 20%" align="right">  
                                        End Month and Year:  
                                    </td> 
                                    <td> 
                                        <%--  <asp:DropDownList ID="ddlToMonth" runat="server" SelectedValue='<%# Bind("EndMonth") %>' 
                                            DataSource='<%# (months) %>' AppendDataBoundItems="True" DataTextField="MonthName" 
                                            DataValueField="MonthId">  
                                            <asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem> 
                                        </asp:DropDownList>--%> 
                                        <asp:TextBox ID="textBoxEndMonthYear" runat="server" Text='<%# Bind( "EndMonthYear") %>'></asp:TextBox> 
                                        <cc1:CalendarExtender ID="calenderExtenderEndMonthYear" runat="server" OnClientHidden="onCalendarHidden1" 
                                            OnClientShown="onCalendarShown1" BehaviorID="calendar2" Enabled="True" TargetControlID="textBoxEndMonthYear" 
                                            Format="MMM yyyy">  
                                        </cc1:CalendarExtender> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td style="width: 20%" align="right">  
                                        Developer Working Hours:&nbsp;  
                                    </td> 
                                    <td> 
                                        <asp:TextBox ID="txtDeveloperWorkingHours" BorderWidth="1" Width="30%" Text='<%# Bind( "DeveloperWorkingHours") %>' 
                                            runat="server"></asp:TextBox> 
                                        <asp:RequiredFieldValidator ID="rfvDeveloperWorkingHours" runat="server" ErrorMessage="*" 
                                            ControlToValidate="txtDeveloperWorkingHours" SetFocusOnError="True" InitialValue=""></asp:RequiredFieldValidator> 
                                        <asp:RegularExpressionValidator ID="revDeveloperWorkingHours" runat="server" ControlToValidate="txtDeveloperWorkingHours" 
                                            SetFocusOnError="true" ValidationExpression="^[+]?\d*\.?\d*$" Text="Please enter vaild value."></asp:RegularExpressionValidator> 
                                    </td> 
                                </tr> 
                                <tr> 
                                    <td style="width: 20%" align="right">  
                                        QAWorkingHours:&nbsp;  
                                    </td> 
                                    <td> 
                                        <asp:TextBox ID="txtQAWorkingHours" BorderWidth="1" Width="30%" Text='<%# Bind( "QAWorkingHours") %>' 
                                            runat="server"></asp:TextBox> 
                                        <asp:RequiredFieldValidator ID="rfvQAWorkingHours" runat="server" ErrorMessage="*" 
                                            ControlToValidate="txtQAWorkingHours" SetFocusOnError="True" InitialValue=""></asp:RequiredFieldValidator> 
                                        <asp:RegularExpressionValidator ID="revQAWorkingHours" runat="server" ControlToValidate="txtQAWorkingHours" 
                                            SetFocusOnError="true" ValidationExpression="^[+]?\d*\.?\d*$" Text="Please enter vaild value."></asp:RegularExpressionValidator> 
                                    </td> 
                                </tr> 
                            </table> 
                            <asp:Button ID="btnUpdate" Text="Save" BorderWidth="1" CommandName="Update" runat="server" /> 
                            <asp:Button ID="btnCancel" CausesValidation="false" BorderWidth="1" CommandName="Cancel" 
                                Text="Close" runat="server" /> 
                        </FormTemplate> 
                    </EditFormSettings> 
                </MasterTableView> 
                <ClientSettings> 
                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /> 
                    <Scrolling AllowScroll="true" FrozenColumnsCount="1" SaveScrollPosition="true" /> 
                </ClientSettings> 
                <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="True"></PagerStyle> 
            </telerik:RadGrid> 
        </div> 
        <asp:Panel ID="PanelResources" runat="server" Style="display: none">  
            <div id="divAssignResources" runat="server" style="padding-top: 40px; padding-left: 4%">  
                <table> 
                    <tr> 
                        <td> 
                            <asp:Label ID="labelReleaseName" Text="Release 10.1" runat="server" Font-Size="Small"></asp:Label> 
                        </td> 
                        <tr> 
                            <td> 
                                <asp:Label ID="labelModuleName" runat="server" Font-Size="Small" Text="Module Name"></asp:Label> 
                                <telerik:RadComboBox ID="RadComboModule" runat="server" Width="30%" AutoPostBack="true" 
                                    OnSelectedIndexChanged="RadComboModule_SelectedIndexChanged" AppendDataBoundItems="true">  
                                    <Items> 
                                        <telerik:RadComboBoxItem Text="Select" Selected="true" Value="" /> 
                                    </Items> 
                                </telerik:RadComboBox> 
                            </td> 
                        </tr> 
                    </tr> 
                    <tr> 
                        <td> 
                            Available Resources: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
                            Allocated Resources:  
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            <telerik:RadListBox ID="RadListBoxResources" runat="server" Height="200px" Width="200px" 
                                SelectionMode="Multiple" AllowTransfer="true" TransferToID="RadListBoxDestination">  
                            </telerik:RadListBox> 
                            <telerik:RadListBox runat="server" ID="RadListBoxDestination" Height="200px" Width="200px" /> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            <asp:Button ID="btnSave" runat="server" Text="Save" BorderWidth="1" OnClick="btnSave_OnClick" />&nbsp;&nbsp;  
                            <asp:Button ID="btnCancelAll" runat="server" Text="Cancel" BorderWidth="1" OnClick="btnCancelAll_OnClick" /> 
                        </td> 
                    </tr> 
                </table> 
            </div> 
        </asp:Panel> 
    </telerik:RadAjaxPanel> 
</asp:Content> 
 
Shinu
Top achievements
Rank 2
 answered on 21 Jun 2010
1 answer
153 views
I am following the example in "Handling Time Zones" in the documentation for RadScheduler to use JavaScript and asynchronous AJAX requests to discover the time zone on the client. I copied the following block of code into my ASP page (see the code below).
But when I compile, I always get an error saying, "The name 'RadAjaxManager1' does not exist in the current context ".
I do have the RadAjaxManager in the ASP page and its ID is "RadAjaxManager1".  And I have RadAjaxLoadingPanel in my code, too. I tried to put the block of code in different location of the ASP page, but it did not help.
Also, if I removed reference to "RadAjaxManager1" in the following block of code, I would get another error on ajaxPanel.Show, saying "the object does not support the method".

What did I do wrong?

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
 
<script type="text/javascript">
   
var syncComplete = false;   
   function SynchronizeClientTimeZoneOffset()
   {
     if (!syncComplete)
     {
       var ajaxPanel =
<%= RadAjaxLoadingPanel1.ClientID %>;
       var schedulerId = '
<%= RadScheduler1.ClientID %>';
       ajaxPanel.Show(schedulerId);     
       var now = new Date();
       var offset = now.getTimezoneOffset()
       InitiateAsyncRequest(-offset);     
       ajaxPanel.Hide(schedulerId);     
       syncComplete = true;
     }
   }   
   function InitiateAsyncRequest(argument)
   {
      var ajaxManager =
<%= RadAjaxManager1.ClientID %>;
      ajaxManager.AjaxRequest(argument);
   }
   
   Sys.Application.add_load(SynchronizeClientTimeZoneOffset);
  
</script>       
</telerik:RadCodeBlock>
Veronica
Telerik team
 answered on 21 Jun 2010
1 answer
99 views
Hello Telerik Team,

I have a RadGrid that defines an AlternatingItemStyle.  This AlternatingItemStyle sets the background color to a light blue
I also have a SelectedItemStyle that defines a different background color (orange)

When I select these alternating rows, the Selected style does not appear.  I do see a small trace of the orange color "underneath" the lightblue color, so some color is trying to be applied somewhere.

The attached PNG image show a screen shot of this behavior.  Can you help me fix this?
I am using 2010.1.530.20

** NOTE** In further investigation, I am noticing that the background-color of the row is being overridden by the alternating item color...The orange color at the bottom of the row is the border-bottom-color.  The selected item color should override the alternating style item color

Thanks
Bob

Dimo
Telerik team
 answered on 21 Jun 2010
3 answers
86 views
The Editor opens in a new window in my application so I "always allow popups for this website" in Internet Explorer.

When in the editor, I want to set the background of a table with a custonm colour. In the Table Wizard, I click Background colour and then Add Custom Colour.  Even though I have already allowed popups for this site permanently, IE says "this website is using a scripted window to ask you for information.  If you trust this website, click here to allow scripted windows..."  On clicking this, I only get the option to "Temporarily allow scripted Windows".  Therefore, every time I use Add Custom Color I have to go throught this procedure which is very tedious.

How can I set it to allow scripted windows for this action permanently on this website?

Your help would be much appreciated.

Thanking you in anticipation.

Roger
Dobromir
Telerik team
 answered on 21 Jun 2010
5 answers
369 views
In the direct download example, Handler.ashx is referenced.  I am looking for the
code that makes up that generic file, because I can't get the direct download
to work right without it.  I looked everywhere, however, I might have missed it.
Thanks in advance.

Joshua
Dobromir
Telerik team
 answered on 21 Jun 2010
2 answers
60 views
I use the RadEditor lite version for MOSS to edit List Item.

Steps:
- Mark a enhanced rich text field as required
- Use the ImageManager to insert some image (any image)
- Click OK to save the list item
- It tells: please input (see attached). This is not desirable.

This does not happen with the built-in RTE.
This seems to related to:
http://www.telerik.com/community/forums/sharepoint-2007/lite-editor-for-moss/list-s-required-field-error-message-display-twice.aspx

Is there anyway to fix this?



Stanimir
Telerik team
 answered on 21 Jun 2010
1 answer
76 views
When I try to sort a column in the rad grid, first few set of records or sorted correctly and when i navigate to the deeper pages, i find it is not sorted correctly.

However if the records are very less, it sorts correctly at times.
no clue what is going wrong.

Thanks,
Ramesh
Pavlina
Telerik team
 answered on 21 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?