Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
Hello,

I have a very simple page that has one <asp:label> and one radgrid.  Everything works great and I have no issues.  Now, I'm trying to add a LoadingPanel so the user gets some feedback while the grid is resorting/grouping/filtering, etc.  I added the following from the demo:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="ClaimsGrid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="ClaimsGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

But now when I perform certain actions, I get the following error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<td>30</td><td>504.0'.

Thanks,
Ben
Maria Ilieva
Telerik team
 answered on 19 Dec 2011
1 answer
100 views
Hi there,

I have two RadGrids  and two buttons.
In Ajax manager i reference RadGrids as they should be updated upon the event from the buttons.

When the page loads, it does not show my radgrids. When I click the buttons it renders data into the radgrids and they show up.

When I remove references between buttons and radgrids from the Ajax manager, everything works as expected at the page load, e.i. the radgrids are showing up with corresponding data.

Though I need Ajax updates to the radgrids on the button click.

I am sure that problem resolution must be very simple.

Below is my code:

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="TestPrices.aspx.cs" Inherits="kukulika.Manufacturer.TestPrices" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style3
        {
            width: 313px;
        }
        .style4
        {
            width: 181px;
        }
        .style5
        {
            width: 255px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="5" Width="900px">
        <Tabs>
            <telerik:RadTab runat="server" Text="New Quotes" NavigateUrl="~/Manufacturer/ManufacturerMain.aspx">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Active Quotes" Enabled="False">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Confirmed Jobs" Enabled="False">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Profile" NavigateUrl="~/Manufacturer/Profile.aspx">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Pricing" NavigateUrl="~/Manufacturer/Prices.aspx">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Test Projects" NavigateUrl="~/Manufacturer/TestPrices.aspx"
                Selected="True">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Appliance Specs" Enabled="False">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <fieldset style="margin: 0px">
        <table class="style1">
            <tr>
                <td class="style5">
                    <telerik:RadComboBox ID="rcbServiceType" runat="server" DataSourceID="sqlServiceType"
                        DataTextField="ServiceType" DataValueField="ServiceTypeID" Label="Service:">
                    </telerik:RadComboBox>
                </td>
                <td class="style3" rowspan="3">
                    <telerik:RadGrid ID="rgStats" runat="server" AutoGenerateColumns="False" CellSpacing="0"
                        DataSourceID="sqlStats" GridLines="None" ShowHeader="False" Skin="Sitefinity">
                        <AlternatingItemStyle BackColor="White" />
                        <MasterTableView DataSourceID="sqlStats">
                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column"
                                    UniqueName="Name">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Value" FilterControlAltText="Filter Value column"
                                    UniqueName="Value">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                            <AlternatingItemStyle BackColor="White" />
                        </MasterTableView>
                        <FilterMenu EnableImageSprites="False">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </FilterMenu>
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            <WebServiceSettings>
                                <ODataSettings InitialContainerName="">
                                </ODataSettings>
                            </WebServiceSettings>
                        </HeaderContextMenu>
                    </telerik:RadGrid>
                </td>
                <td class="style4" style="text-align: right">
                    <telerik:RadButton ID="rbShowPrice" runat="server" OnClick="rbShowPrice_Click" Text="Show Price">
                    </telerik:RadButton>
                </td>
                <td style="text-align: right">
                    <telerik:RadButton ID="rbSaveProject" runat="server" OnClick="rbSaveProject_Click"
                        Text="Save Project">
                    </telerik:RadButton>
                </td>
            </tr>
            <tr>
                <td class="style5">
                    <telerik:RadNumericTextBox ID="rtbLinerFootage" runat="server" Culture="en-US" Label="Total liner footage:"
                        LabelWidth="" Value="20" Width="150px">
                    </telerik:RadNumericTextBox>
                    <telerik:RadComboBox ID="rcbUnits" runat="server" DataSourceID="sqlUnits" DataTextField="UnitName"
                        DataValueField="UnitID" Enabled="False" Skin="Sitefinity" Width="50px">
                    </telerik:RadComboBox>
                </td>
                <td class="style4">
                      
                </td>
                <td>
                      
                </td>
            </tr>
            <tr>
                <td class="style5">
                      
                </td>
                <td class="style4">
                      
                </td>
                <td>
                      
                </td>
            </tr>
        </table>
        <telerik:RadGrid ID="rgTestProject" runat="server" AutoGenerateColumns="False" OnItemDataBound="rgTestProject_ItemDataBound"
            CellSpacing="0" DataSourceID="sqlMaterialCategoriesCombined" GridLines="None">
            <MasterTableView DataSourceID="sqlMaterialCategoriesCombined">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="MaterialCategoryID" DataType="System.Int32" FilterControlAltText="Filter MaterialCategoryID column"
                        HeaderText="MaterialCategoryID" ReadOnly="True" SortExpression="MaterialCategoryID"
                        UniqueName="MaterialCategoryID" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ParentMaterialID" DataType="System.Int32" FilterControlAltText="Filter ParentMaterialID column"
                        HeaderText="ParentMaterialID" ReadOnly="True" SortExpression="ParentMaterialID"
                        UniqueName="ParentMaterialID" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ID" FilterControlAltText="Filter ID column" HeaderText="ID"
                        UniqueName="ID">
                        <HeaderStyle Width="30px" />
                        <ItemStyle Width="30px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Category" FilterControlAltText="Filter Category column"
                        HeaderText="Category" ReadOnly="True" SortExpression="Category" UniqueName="Category">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn FilterControlAltText="Filter Item column" HeaderText="Item"
                        UniqueName="Item">
                        <ItemTemplate>
                            <telerik:RadComboBox ID="rcbItem" runat="server" DataTextField="MaterialName" DataValueField="MaterialID"
                                Width="300" Skin="Windows7" AllowCustomText="True" EmptyMessage="Please select an item from the list"
                                OnSelectedIndexChanged="rcbItem_SelectedIndexChanged">
                            </telerik:RadComboBox>
                        </ItemTemplate>
                        <HeaderStyle Width="300px" />
                        <ItemStyle Width="300px" />
                    </telerik:GridTemplateColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
                <WebServiceSettings>
                    <ODataSettings InitialContainerName="">
                    </ODataSettings>
                </WebServiceSettings>
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                <WebServiceSettings>
                    <ODataSettings InitialContainerName="">
                    </ODataSettings>
                </WebServiceSettings>
            </HeaderContextMenu>
        </telerik:RadGrid>
    </fieldset>
    <asp:SqlDataSource ID="sqlMaterialCategoriesCombined" runat="server" ConnectionString="<%$ ConnectionStrings:KPortal %>"
        SelectCommand="Exec GetMaterialCategoriesCombined @ServiceTypeID=@ServiceTypeID">
        <SelectParameters>
            <asp:ControlParameter ControlID="rcbServiceType" Name="ServiceTypeID" PropertyName="SelectedValue" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="sqlServiceType" runat="server" ConnectionString="<%$ ConnectionStrings:KPortal %>"
        OnSelecting="sqlServiceType_Selecting" SelectCommand="SELECT ServiceType.ServiceTypeID, ServiceType.ServiceType FROM [User] INNER JOIN ManufacturerUser ON [User].UserID = ManufacturerUser.UserID INNER JOIN ManufacturerServiceType INNER JOIN ServiceType ON ManufacturerServiceType.ServiceTypeID = ServiceType.ServiceTypeID ON ManufacturerUser.ManufacturerID = ManufacturerServiceType.ManufacturerID WHERE (ServiceType.ServiceReferenceData = 1) AND (ServiceType.ServiceTypeActive = 1) AND ([User].Login = @LoginID) AND (ManufacturerServiceType.ServiceStatus = 'A')">
        <SelectParameters>
            <asp:Parameter Name="LoginID" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="sqlUnits" runat="server" ConnectionString="<%$ ConnectionStrings:KPortal %>"
        OnSelecting="sqlUnits_Selecting" SelectCommand="SELECT Units.UnitID, Units.UnitName FROM ManufacturerUser INNER JOIN Manufacturer ON ManufacturerUser.ManufacturerID = Manufacturer.ManufacturerID INNER JOIN [User] ON ManufacturerUser.UserID = [User].UserID INNER JOIN Units ON Manufacturer.UnitSystem = Units.UnitSystem WHERE (Units.UnitType = 'length') AND ([User].Login = @LoginID) AND (Units.MajorUnit = 1)">
        <SelectParameters>
            <asp:Parameter Name="LoginID" />
        </SelectParameters>
    </asp:SqlDataSource>
    <telerik:RadNotification ID="rnChangesSaved" runat="server" Width="300" Height="100"
        Animation="Fade" EnableRoundedCorners="true" EnableShadow="true" Title="Test Project"
        Text="Your questionary answers have been saved" Style="z-index: 35000" Position="Center">
    </telerik:RadNotification>
    <asp:SqlDataSource ID="sqlStats" runat="server" ConnectionString="<%$ ConnectionStrings:KPortal %>"
        OnSelecting="sqlStats_Selecting" SelectCommand="Exec GetTestProjectPriceStats @ServiceTypeID = @ServiceTypeID , @LoginID = @LoginID">
        <SelectParameters>
            <asp:ControlParameter ControlID="rcbServiceType" Name="ServiceTypeID" PropertyName="SelectedValue" />
            <asp:Parameter Name="LoginID" />
        </SelectParameters>
    </asp:SqlDataSource>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rbShowPrice">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgStats" />
                    <telerik:AjaxUpdatedControl ControlID="rnChangesSaved" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rbSaveProject">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgStats" />
                    <telerik:AjaxUpdatedControl ControlID="rnChangesSaved" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</asp:Content>


The code behind:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using System.Xml;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
 
namespace kukulika.Manufacturer
{
    public partial class TestPrices : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
 
        protected void sqlServiceType_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
        {
            e.Command.Parameters[0].Value = Page.User.Identity.Name.ToString().ToLower();
        }
 
 
        protected void rgTestProject_ItemDataBound(object sender, GridItemEventArgs e)
        {
 
            if (e.Item is GridDataItem)
            {
                GridDataItem item = e.Item as GridDataItem;
                RadComboBox rcbItem = item.FindControl("rcbItem") as RadComboBox;
                string MaterialCategoryID = item["MaterialCategoryID"].Text.ToString();
                string ParentMaterialID = item["ParentMaterialID"].Text.ToString();
                rcbItem.EmptyMessage = "Please select " + item["Category"].Text.ToString();
                SqlDataSource sqlDS = new SqlDataSource();
                sqlDS.ConnectionString = ConfigurationManager.ConnectionStrings["KPortal"].ConnectionString;
                sqlDS.SelectCommand = "Exec GetManufacturerTestProjectItem @MaterialCategoryID = "+ MaterialCategoryID +
                 ",@ParentMaterialID="+ParentMaterialID+",@LoginID='"
                    + Page.User.Identity.Name.ToString().ToLower() + "'";
 
                rcbItem.DataSource = sqlDS;
 
                SqlConnection conn = new SqlConnection(sqlDS.ConnectionString);
                SqlCommand command = new SqlCommand(sqlDS.SelectCommand, conn);
                conn.Open();
 
                try
                {
                    SqlDataReader Questionary = command.ExecuteReader();
                    while (Questionary.Read())
                    {
                        if (Questionary["SelectedItem"].ToString() != "0")
                        {
                            rcbItem.SelectedValue = Questionary["SelectedItem"].ToString();
                        }
                    }
                }
                finally
                {
                    conn.Close();
                }
                rcbItem.DataBind();
            }
        }
 
        protected void rcbItem_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
 
        }
        protected void SaveProject()
        {
 
 
            //Validate Selection
            bool res = true;
            foreach (GridDataItem item in rgTestProject.Items)
            {
               RadComboBox rcbItem = item.FindControl("rcbItem") as RadComboBox;
               if (rcbItem.SelectedValue.ToString() == "")
                {
                    item["Category"].ForeColor = System.Drawing.Color.Red;
                    res = false;
                }
                else
                {
                    item["Category"].ControlStyle.Reset();
                }
            }
 
            if (res == false)
            {
 
                rnChangesSaved.Text = "Please select items for your test project";
                rnChangesSaved.Show();
                return;
            }
 
            //Save Project Details
            var sb = new StringBuilder();
            XmlWriter xw = XmlWriter.Create(sb);
            xw.WriteStartElement("ManufacturerTestProject");
            xw.WriteAttributeString("ServiceTypeID",rcbServiceType.SelectedValue.ToString());
            xw.WriteAttributeString("DerrivedMeasurement", rtbLinerFootage.Text.ToString());
            xw.WriteAttributeString("UnitID", rcbUnits.SelectedValue.ToString());
            xw.WriteStartElement("Materials");
            
            if (rgTestProject.Items.Count==0)
                return;
 
            foreach (GridDataItem item in rgTestProject.Items)
            {
                  RadComboBox rcbItem = item.FindControl("rcbItem") as RadComboBox;
                  xw.WriteStartElement("Material");
                  xw.WriteAttributeString("MaterialID", rcbItem.SelectedValue.ToString());
                  xw.WriteEndElement();
                 
            }
            xw.WriteEndElement();
            xw.WriteEndDocument();
            xw.Flush();
            xw.Close();
            string FinalXML = sb.ToString().Substring(sb.ToString().IndexOf(">") + 1);
 
            string ConnString = ConfigurationManager.ConnectionStrings["KPortal"].ConnectionString;
            SqlConnection conn = new SqlConnection(ConnString);
            SqlCommand command = new SqlCommand("Exec SaveManufacturerTestProject @ProjectDetails = @ProjectDetails, @LoginID = @LoginID", conn);
            command.Parameters.AddWithValue("ProjectDetails", FinalXML);
            command.Parameters.AddWithValue("LoginID", Page.User.Identity.Name.ToString().ToLower());
            conn.Open();
            try
            {
                command.ExecuteNonQuery();
            }
            finally
            {
                conn.Close();
            }
 
        }
 
        protected void rbSaveProject_Click(object sender, EventArgs e)
        {
            SaveProject();
            rnChangesSaved.Text = "Your test project have been saved";
            rnChangesSaved.Show();
 
        }
 
        protected void sqlUnits_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
        {
            e.Command.Parameters[0].Value = Page.User.Identity.Name.ToString().ToLower();
        }
 
        protected void rbShowPrice_Click(object sender, EventArgs e)
        {
            SaveProject();
            rgStats.Rebind();
        }
 
        protected void sqlStats_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
        {
            e.Command.Parameters[1].Value = Page.User.Identity.Name.ToString().ToLower();
        }
 
    }
}

Maria Ilieva
Telerik team
 answered on 19 Dec 2011
1 answer
91 views
Hello,
I can not find the message 'Collapse/Expand the left Pane' in no .resx file of radEditors!
Where do I change the text 'Collapse/Expand the left Pane'  In The FileExplorer ?

 Help me!
thanks,
Camila.
Dobromir
Telerik team
 answered on 19 Dec 2011
2 answers
132 views
Is there an example of a process where items are transferred from a source RadListBox  to a destination RadListBox, then placed in a database to be used later?
Bozhidar
Telerik team
 answered on 19 Dec 2011
1 answer
130 views
Hi guys,

I have a RadComboBox control that is not showing the poplated Items list when it is being updated.The control is used to search for products based on what you type into the combobox. The code behind simply performs a query and returns the data. If I step through the code i can see the returned items being added to the Items list in the radcombobox, but the list never shows these items when viewed in IE.
If I add some debug to the code - e.mssage = "added Item " & item.value for example I see the message underneather the radcombobox but neither the arrow to the left or below the radcombobox allow me to do anything. It's like they are disabled.

Has anyone had this kind of problem before?
We're using the RadComboBox with in the DNN 6 framework.

Thanks,
Nik

 




Ivana
Telerik team
 answered on 19 Dec 2011
1 answer
74 views
Hi 

i created a page similiar to the demo in http://demos.telerik.com/aspnet-ajax/xmlhttppanel/examples/clientsidecontentload/defaultcs.aspx

made a few changes in that 

1. replaced the  asp:Repeater  with a radgrid with the same properties as the radgrid1 in the demo 
2. added an event RadGrid2_NeedDataSource for the radgrid2 
3. added a textbox in the page and stored the value got from XmlHttpPanel_ServiceRequest in the page.
4. the second grid has a pagesize of 10. 

it works without any problem if the 2nd grid has less than 10 records or if the paging is set to false. but if the paging is set to true and if the record count is more than 10(the pagesize) , it shows the following error

eScript control 'PageSizeComboBox' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl


this is my code

MessagesTelerik.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MessagesTelerik.aspx.cs" Inherits="MessagesTelerik" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 
<head id="Head1" runat="server">
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 
        <script type="text/javascript">
            function rowSelected(sender, args) {
                var key = args.getDataKeyValue("JobId");
                var panel = $find("<%=RadXmlHttpPanel1.ClientID %>");
                panel.set_value(key);
            }
        </script>
 
    </telerik:RadScriptBlock>
    <style type="text/css">
        .divContainer
        {
            background: url('main_back.png') no-repeat;
            width: 100%;
            height: 400px;
            position: relative;
        }
        .divGrid, .divXmlHttpPanel
        {
            position: absolute;
            top: 86px;
        }
        .divXmlHttpPanel
        {
            top: 132px;
            left: 390px;
        }
        .rgInfoPart
        {
            display: none !important;
        }
        .title
        {
            font-size: 12px;
            color: #606060;
        }
        .info
        {
            color: black;
            font-size: 12px;
        }
    </style>
</head>
<body class="BODY">
    <form id="Form2" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Hay">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Skin="Hay">
    </telerik:RadAjaxLoadingPanel>
    <div class="divContainer">
        <div class="divGrid">
            <telerik:RadGrid ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource"
                Width="370px" AllowSorting="True" PageSize="10" AllowPaging="True" runat="server"
                AutoGenerateColumns="false" GridLines="None">
                <MasterTableView ClientDataKeyNames="JobId" Width="100%" Summary="RadGrid table">
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="Id"  DataField="JobId">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Name" DataField="JobName" UniqueName="Name">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <PagerStyle Mode="Slider" PageButtonCount="5" />
                <ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true" ClientEvents-OnRowSelected="rowSelected">
                </ClientSettings>
            </telerik:RadGrid>
        </div>
        <div class="divXmlHttpPanel">
            <telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" Value="FRANR" OnServiceRequest="XmlHttpPanel_ServiceRequest"
                RenderMode="Block">              
            <telerik:RadGrid ID="RadGrid2"  Width="370px" AllowSorting="True" PageSize="10"
                AllowPaging="true" runat="server" 
                OnNeedDataSource="RadGrid2_NeedDataSource"
                AutoGenerateColumns="false" GridLines="None">
                <MasterTableView ClientDataKeyNames="JQ_ID" Width="100%" Summary="RadGrid2 table">
                    <Columns>
                        <telerik:GridBoundColumn HeaderText="Id"  DataField="JQ_ID" UniqueName="JQ_ID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Run time" DataField="JQ_RunTime" UniqueName="Runtime">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Duration" DataField="JQ_Duration" UniqueName="Duration">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Total messages" DataField="totOutput" UniqueName="Totalmessages">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true" >
                </ClientSettings>
            </telerik:RadGrid>
            <asp:TextBox ID="txtJobId" style="visibility:hidden;" runat="server"></asp:TextBox>
            </telerik:RadXmlHttpPanel>
        </div>
    </div>
    </form>
</body>
</html>

MessagesTelerik.aspx.cs

using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Web.UI.WebControls;
 
using Telerik.Web.UI;
 
public partial class MessagesTelerik : System.Web.UI.Page
{
    DateTime dtRunDateStart = DateTime.Now.AddMonths(-3);
    DateTime dtRunTimeEnd=DateTime.Now;
    protected void Page_Load(object sender, EventArgs e)
    {
         
    }
    protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid1.DataSource = getDataTable(dtRunDateStart, dtRunTimeEnd);
    }
 
    protected void RadGrid2_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        string val = txtJobId.Text;
        RadGrid2.DataSource = getDataTable2(val,dtRunDateStart, dtRunTimeEnd);
    }
 
    public DataTable getDataTable(DateTime dtRunDateStart, DateTime dtRunTimeEnd)
    {
 
        string strQuery = @"select * from messages
                                where JQ_RunTime between'" + dtRunDateStart.ToString("yyyy-MM-dd") + "' and '" + dtRunTimeEnd.ToString("yyyy-MM-dd") + "'";
 
 
        DataTable dtQuery = DB.GetDataTable(strQuery);
 
 
        return dtQuery;
    }
 
    protected void XmlHttpPanel_ServiceRequest(object sender, RadXmlHttpPanelEventArgs e)
    {
        string val = e.Value;
        txtJobId.Text = val;
        System.Data.DataTable table = getDataTable2(val, dtRunDateStart, dtRunTimeEnd);
 
        RadGrid2.DataSource = table;
        RadGrid2.DataBind();
    }
 
    private DataTable getDataTable2(string jobid, DateTime dtRunDateStart, DateTime dtRunTimeEnd)
    {
         
        string strQuery = @"select * from messages2 where
                                JQ_RunTime between'" + dtRunDateStart.ToString("yyyy-MM-dd") + "' and '" + dtRunTimeEnd.ToString("yyyy-MM-dd") + "'";
 
        DataTable dtQuery = DB.GetDataTable(strQuery);
 
        return dtQuery;
    }
}


pls let me know what i missed to add



Pero
Telerik team
 answered on 19 Dec 2011
1 answer
122 views
I've run into this a few times where I opt to use a RadSplitter to help organize my page instead of <div> tags and when I use it on more than one of the RadPageViews none of them appear?

Here's a basic example of what I am seeing:

Example #1: works fine (2 page views with only 1 having a splitter)
<RadMultipage>
<RadPageView1>
<RadSplitter> RadPanes and markup </RadSplitter>
</RadPageView1> 
<RadPageView2>
Regular HTML Markup
</RadPageView2>  
</RadMultipage> 

Example #2: Both PageViews render as blank white space (2 page views with both having a splitters)
<RadMultipage>
<RadPageView1>
<RadSplitter> RadPanes and markup </RadSplitter>
</RadPageView1> 
<RadPageView2>
<RadSplitter> RadPanes and markup </RadSplitter> 
</RadPageView2>  
</RadMultipage>  

Any ideas why this is happening? I hate to say i've gotten lazy but using Splitter controls without actually using splitter bars have become the most efficient way for me to get my markups to consistently fill the height and width 100%.

Yes I have the base CSS setting HTML, Body, and form to 100% for both H and W.
Thanks, Jay
Dimitar Terziev
Telerik team
 answered on 19 Dec 2011
3 answers
104 views
Protected Sub RadOrgChart1_NodeDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.OrgChartNodeDataBoundEventArguments) Handles RadOrgChart1.NodeDataBound
        If e.Node.DataItem.IsDeptHead Then
            e.Node.CssClass = "DeptHead"  <---------- I want to do something like this or just change the cell's background or border color, is there a way to do so???
        End If
    End Sub
Peter Filipov
Telerik team
 answered on 19 Dec 2011
4 answers
138 views
Hi,

I have a radgrid with a template column which contains a XHTML table. I'm trying to display the border when it has been exported and it never shows. I've tried style attributes and border and they don't work.

Can any one help.

Thanks
Jo Bert
Top achievements
Rank 1
 answered on 19 Dec 2011
3 answers
394 views
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Calendar.master"
    CodeFile"schedulersample" Inherits="schedulersample" %>
  
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table style="width: 100%;" id="tblMain">
        <tr>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td width="15px">
            </td>
            <td colspan="3" class="title" width="99%">
                <div class="floatL font21">
                    <asp:Label ID="lblmultiuser" runat="server" Text="Multi user- "></asp:Label>
                    <asp:Label ID="lblTitle" runat="server" Text=""></asp:Label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <hr />
            </td>
        </tr>
        <tr>
            <td width="15px">
            </td>
            <td style="width: 100%;">
                <table>
                    <tr>
                        <td>
                            <asp:HiddenField ID="hdnFldInviteUsers" runat="server" />
                            <asp:HiddenField ID="hdnRdSchedulerSelectedDate" runat="server" />
                            <asp:Label ID="lblSelectGroup" runat="server" Text="Select group :"></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:DropDownList ID="ddlGroup" runat="server" Width="150px" OnSelectedIndexChanged="ddlGroup_SelectedIndexChanged"
                                AutoPostBack="true">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <div class="buttonEnding" align="center" style="vertical-align: middle;">
                                <asp:Button runat="server" ID="btnCreateGroup" Text="Create group" OnClick="btnCreateGroup_Click"
                                    CssClass="button"></asp:Button>
                            </div>
                           
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox ID="chkWildCard" runat="server" Text="Filter users" OnCheckedChanged="chkWildCard_CheckedChanged"
                                Checked="false" Visible="true" AutoPostBack="true" />
                        </td>
                        <td class="style1">
                            <asp:DropDownList ID="ddlWildCard" runat="server" Enabled="false" Width="150" AutoPostBack="true">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <telerik:RadTextBox ID="txtWildCard" runat="server" Enabled="false" Width="100" Skin="Office2007">
                            </telerik:RadTextBox>
                        </td>
                        <td>
                            <div class="buttonEnding" align="center" style="vertical-align: middle;">
                                <asp:Button runat="server" ID="btnFilter" Text="Filter users" OnClick="btnFilter_Click"
                                    CssClass="button"></asp:Button>
                            </div>
                             
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:HiddenField ID="Hidden" runat="server" />
                            <asp:Label ID="lblSelectUsers" runat="server" Text="Select users :"></asp:Label>
                        </td>
                        <td class="style1">
                            <telerik:RadComboBox ID="rdcmbxFilter" runat="server" EmptyMessage="- Please select users -"
                                AutoCompleteSeparator="true" HighlightTemplatedItems="true" AutoPostBack="True"
                                AllowCustomText="true" DataTextField="FirstName" DataValueField="Id" OnClientDropDownClosing="onDropDownClosing"
                                OnSelectedIndexChanged="rdcmbxFilter_SelectedIndexChanged" Width="150px">
                                <Items>
                                </Items>
                                <ItemTemplate>
                                    <div onclick="StopPropagation(event)">
                                        <asp:CheckBox runat="server" ID="chkRole" Text='<%#Eval("FirstName")%>' onclick="onCheckBoxClick(this)">
                                        </asp:CheckBox>
                                    </div>
                                </ItemTemplate>
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                                <ExpandAnimation Type="OutQuart" />
                            </telerik:RadComboBox>
                        </td>
                        <td>
                            <div class="buttonEnding" align="center" style="vertical-align: middle;">
                                <asp:Button runat="server" ID="btnGetDetails" Text="Get details" CssClass="button">
                                </asp:Button>
                            </div>
                         
                        </td>
                          
                          
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table width="100%">
                    <tr>
                        <td width="17px">
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td valign="top">
                                          
                                          
                                        <telerik:RadButton ID="rdbtnuser" runat="server" ToolTip="Single User Scheduler"
                                            OnClick="rdbtnuser_Click" Width="18" Icon-PrimaryIconUrl="~/Images/1.png" Icon-PrimaryHoveredIconUrl="~/Images/11.png"
                                            Icon-PrimaryIconWidth="28" Icon-PrimaryIconHeight="21" Icon-PrimaryIconLeft="-1"
                                            Icon-PrimaryIconTop="0">
                                           
                                        </telerik:RadButton>
                                        <telerik:RadButton ID="rdbtnMuser" runat="server" ToolTip="Multi User Scheduler"
                                            OnClick="rdbtnMuser_Click" Width="18" Icon-PrimaryIconWidth="28" Icon-PrimaryIconHeight="21"
                                            Icon-PrimaryIconLeft="-1" Icon-PrimaryIconUrl="~/Images/21.png" Icon-PrimaryIconTop="0">
                                          >
                                        </telerik:RadButton>
                                        <telerik:RadButton ID="rdbtnDay" runat="server" ToolTip="Multi User Scheduler Day"
                                            OnClick="rdbtnDay_Click" Width="18" Icon-PrimaryIconWidth="28" Icon-PrimaryIconHeight="21"
                                            Icon-PrimaryIconLeft="-1" Icon-PrimaryIconUrl="~/Images/4.png" Icon-PrimaryHoveredIconUrl="~/Images/41.png"
                                            Icon-PrimaryIconTop="0">
                                             
                                        </telerik:RadButton>
                                        <telerik:RadButton ID="rdbtnWeek" runat="server" ToolTip="Multi User Scheduler Week"
                                            OnClick="rdbtnWeek_Click" Width="18" Icon-PrimaryIconWidth="28" Icon-PrimaryIconHeight="21"
                                            Icon-PrimaryIconLeft="-1" Icon-PrimaryIconUrl="~/Images/5.png" Icon-PrimaryHoveredIconUrl="~/Images/51.png"
                                            Icon-PrimaryIconTop="0">
                                             
                                        </telerik:RadButton>
                                        <telerik:RadButton ID="rdbtnMonth" runat="server" ToolTip="Multi User Scheduler Month"
                                            OnClick="rdbtnMonth_Click" Width="18" Icon-PrimaryIconWidth="28" Icon-PrimaryIconHeight="21"
                                            Icon-PrimaryIconLeft="-1" Icon-PrimaryIconUrl="~/Images/6.png" Icon-PrimaryHoveredIconUrl="~/Images/61.png"
                                            Icon-PrimaryIconTop="0">
                                           
                                        </telerik:RadButton>
                                        <telerik:RadButton ID="rdbtnTimeLine" runat="server" Skin="Office2007" Text="TL"
                                            Visible="false">
                                        </telerik:RadButton>
                                    </td>
                                    <td valign="middle" style="padding-top: 2px;">
                                        <div class="buttonEnding" align="center" style="vertical-align: middle;">
                                            <asp:Button runat="server" ID="rdbtnNewEvent" Text="Create new meeting" OnClick="rdbtnNewEvent_Click"
                                                CssClass="button"></asp:Button>
                                        </div>
                                         
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="chkWeekends" runat="server" Text="Show weekends" Visible="false"
                                            AutoPostBack="true" OnCheckedChanged="chkWeekends_CheckedChanged" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td width="17px">
                        </td>
                        <td height="10px">
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td width="17px">
                        </td>
                        <td style="height:100%" colspan="4">
                            <telerik:RadScheduler runat="server" Height="800px" ID="RdSchMultiUsers" Skin="Office2007" CssClass="rsAllDayCell" GroupBy="Date,FirstName"
                                StartInsertingInAdvancedForm="true" EnableDescriptionField="false" DataKeyField="ID"
                                DisplayRecurrenceActionDialogOnMove="true" DataDescriptionField="Description"
                                DataEndField="End" DataStartField="Start" DataSubjectField="Subject" AllowInsert="true"
                               
                                OnAppointmentClick="RdSchMultiUsers_AppointmentClick" OnFormCreated="RdSchMultiUsers_FormCreated"
                                Reminders-Enabled="true" DataReminderField="Reminder" AllowEdit="false" OnResourceHeaderCreated="RdSchMultiUsers_ResourceHeaderCreated"
                                OnAppointmentDelete="RdSchMultiUsers_AppointmentDelete" MinimumInlineFormHeight="800" 
                                OnNavigationComplete="RdSchMultiUsers_NavigationComplete" OnReminderDismiss="RdSchMultiUsers_ReminderDismiss"
                                OnReminderSnooze="RdSchMultiUsers_ReminderSnooze" OnAppointmentUpdate="RdSchMultiUsers_AppointmentUpdate" OverflowBehavior="Expand" 
                                OnAppointmentInsert="RdSchMultiUsers_AppointmentInsert" OnAppointmentCreated="RdSchMultiUsers_AppointmentCreated" >
                                <AdvancedForm Modal="true"  />
                                <MonthView GroupBy="Date,FirstName" />
                                <Reminders Enabled="True" />
                                <ResourceTypes>
                                    <telerik:ResourceType KeyField="Id" Name="FirstName" TextField="FirstName" ForeignKeyField="UserID" />
                                </ResourceTypes>
                                <TimelineView NumberOfSlots="1" GroupBy="FirstName,Date" GroupingDirection="Vertical"
                                    SortingMode="Global" EnableExactTimeRendering="true" UserSelectable="False">
                                </TimelineView>
                                <WeekView UserSelectable="False" />
                                <DayView UserSelectable="False" />
                                <MonthView GroupBy="Date,FirstName" UserSelectable="False"></MonthView>
                                <Reminders Enabled="True"></Reminders>
                                <ResourceHeaderTemplate>
                                    <table id="rdschHdTable">
                                        <tr>
                                            <td id="tduser" align="left">
                                                <asp:CheckBox runat="server" ID="ChkUser" OnCheckedChanged="ChkUser_CheckedChanged"
                                                    AutoPostBack="true" />
                                            </td>
                                            <td align="right">
                                                <asp:Label runat="server" ID="lblUserId" Visible="false"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </ResourceHeaderTemplate>
                            </telerik:RadScheduler>
                            <telerik:RadToolTipManager Height="0px" runat="server" ID="RadToolTipManager1" Position="MiddleRight"
                                Width="280px" Animation="none" HideEvent="ManualClose" RelativeTo="Mouse" OnClientHide="OnClientHide"
                                EnableShadow="false" RenderInPageRoot="false" AnimationDuration="250" OnAjaxUpdate="RadToolTipManager1_AjaxUpdate"
                                Skin="Web20">
                            </telerik:RadToolTipManager>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
 </asp:Content>
hello,

       Recently i have been used radscheduler control . when we are using it for multiuser functionality in timeline view  the height of grid is not displaying as in single user view,in multiuserview the sheduler is seemed to be halkf of its height and even we apply any height to it its not responding. is that problem with timeline view, i am sending an image of that ,please post if u have an idea abot this 

regrds,
Raj 
Peter
Telerik team
 answered on 19 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?