Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
145 views
Hi all,
           In radgrid i have a column called Employee names in this i will get the value as Employee1|Employee2|Employee3. I need the color change for the value Employee1 should be red color and Employee2 should be Green color and Employee3 should be Blue in color. Please Help me out.

Can you help me figure out what I have to do in radgrid?

Thank you,
Kingsleen Solomon Doss.J
Shinu
Top achievements
Rank 2
 answered on 09 Mar 2011
2 answers
87 views

I have a RadScheduler  with a RadSchedulerContextMenu that shows when the user right clicks an appointment. Inside that RadSchedulerContextMenu, I have several RadMenuItems, some of which are disabled. One of the RadMenuItems is Text="Edit" Value="CommandEdit" Enabled="False", however, it is NOT disabled. The other items are disabled when I set Enabled="false", but not the Edit item.

<telerik:RadSchedulerContextMenu runat="server" ID="ContextMenuNone" Skin="Vista" >  
<Items>    
<telerik:RadMenuItem Text="Edit" Value="CommandEdit" ImageUrl="~/edit.png" Enabled="false" />    
...
</Items>
</telerik:RadSchedulerContextMenu>

 
How can I disable the CommandEdit RadMenuItem?

Robert Helm
Top achievements
Rank 1
 answered on 08 Mar 2011
2 answers
102 views
I have the calendar set to allow multiple selection. Each selected day is going to be stored in the db. The issue I am having is determining what date was unselected from e.SelectedDates. I have found no other function/property to detemine this value.

My goal is simular to this. but even this does not allow me to know what the unselected date was.
http://www.telerik.com/community/forums/aspnet-ajax/calendar/toggle-function.aspx

I am using VS2005 telerik version 2008.1.619.20. I cannot upgrade.

Thanks
Dan
Top achievements
Rank 1
 answered on 08 Mar 2011
6 answers
370 views
Hi,

Am I missing something? The $find is not working for a RadPanelBar, here is the code:

... 
<body topmargin="0" leftmargin="0"
    <form id="form1" runat="server"
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadPanelBar ID="rpbNavigation" runat="server" style="width:100%" Skin="Outlook" EnableViewState="false"
        </telerik:RadPanelBar> 
    </div> 
    </form> 
    <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"
        <script type="text/javascript"
            checkMain(); 
            function checkMain() { 
                var panelBar = $find("<%= rpbNavigation.ClientID %>"); 
 
                var item = panelBar.findItemByText(Main.selectedModule); 
            } 
        </script> 
    </telerik:RadCodeBlock> 
</body> 
... 

I tried to put the script block on the header tag and in the body tag. If I replace by $get, it works, but then I can't access the findItemByText function. The funny thing is that I use a very similar code on other page and it works, the difference is that I use a RadMenu instead a RadPanelBar.

On, the call to checkMain() would be on the onload event of the body, I tried to move around to see if there was something to do with the timing of this call, but no luck.

Any help is appreciated.

Thanks,
Eduardo
Lorenzo
Top achievements
Rank 1
 answered on 08 Mar 2011
0 answers
141 views
If you change your example page to have the following code-up front code.  When you expand the hierarchical item "About us" the child group height setting goes out the window (see attached img).  Is there anyway around this?

<telerik:RadPanelBar runat="server" ID="RadPanelBar1" >
    <Items>
        <telerik:RadPanelItem Expanded="True" Text="Corporate" ChildGroupHeight="50">
            <Items>
                <telerik:RadPanelItem Text="About us">
                    <Items>
                        <telerik:RadPanelItem Text="News"></telerik:RadPanelItem>
                        <telerik:RadPanelItem Text="Team"></telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Careers"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Careers1"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Careers2"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Careers3"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Careers4"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Careers5"></telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem Text="Services" ChildGroupHeight="50">
            <Items>
                <telerik:RadPanelItem Text="Products"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Solutions"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Certifications"></telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem Text="Work" ChildGroupHeight="50" >
            <Items>
                <telerik:RadPanelItem Text="Clients"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Testimonials"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="FAQ"></telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
    </Items>
    <ExpandAnimation Type="None"></ExpandAnimation>
</telerik:RadPanelBar>
Rob
Top achievements
Rank 1
 asked on 08 Mar 2011
3 answers
116 views
Hello Telerik Team,

I have a grid that I bind on the client side.

I want to create a custom filtering column for my grid.  I have successfully derived from GridBoundColumn to create GridFilteringBoundColumn.  I override the SetupFilterControls method and all is well.

However, I also have a GridButtonColumn that I would like to be able to filter on.  If I derive from GridButtonColumn in the same exact way as above, the cells do not get rendered as hyperlinks and clicking on the text in the cell does nothing (I expect it to do a fireCommand with my command name that I assigned.

I have verified with a debugger that the CommandName property is set correctly but I can't figure out why the cells do not render properly. In the browser, when I use the Telerik GridButtonColumn, the cells all contain text of this form:

<a onclick="if(!$find('ctl00_WebPartManager_WorkAreaWebPart_MainControl_WorkAreaGrid_ctl00').fireCommand('DisplayDetails','0')) return false;" href="javascript:__doPostBack('ctl00$WebPartManager$WorkAreaWebPart$MainControl$WorkAreaGrid$ctl00$ctl04$ctl01','')">J1542A</a><br>

but with my derived Column, all I get is simpletext after the grid binds on the client side.

What am I missing?

Thanks
Bob

Marin
Telerik team
 answered on 08 Mar 2011
25 answers
493 views
Hi,

I have a web application with a virtual directory set up within IIS for my images. 

I place a rad editor on my aspx:
<telerik:RadEditor ID="RadEditor1" runat="server"></telerik:RadEditor>

Then in my codebehind:
string assetsRoot = "~/Assets112s/"//this is the name of my virtual directory 
RadEditor1.ImageManager.ViewPaths = new string[1] { assetsRoot + "Images" }; 
 

Within my Images folder (/assets112s/images) I have a series of folders and sub folders. 

When I load my aspx and select the image manager, it loads fine and shows the correct file path in the image manager address bar(/Assets/Images) and it shows me the top level of the folders within Images (and any image files as well). However when I select one of the sub folders the loading image apprears by then does nothing... ie I cannot navigate down through my folders Please see attached image... any ideas?

I'm using version: 2010.1.309.20 problems on all browsers
Rumen
Telerik team
 answered on 08 Mar 2011
4 answers
142 views

I need to create a combobox with variable number of columns.  Both the number of columns, and the column names would be determined only at run time.  Also, I need the combobox to be a multiselect combo, so I need to put in a checkbox in the item template.  So, I am creating the item template and header template at runtime. 

When I run the code, I am getting the error "Multiple controls with the same ID 'chkSourceElementValue' were found. FindControl requires that controls have unique IDs."  where chkSourceElementValue is the ID of the checkbox thats created in the item template.  I am setting the item template, header template, data source at page_load and also data binding it at that point.  I have enclosed snippets of my code, as well as the error message stack below.  it looks like the error is originating from within RadComboBox. 

I am using the latest version of Telerik ASP.NET AJAX Controls (ASP.NET AJAX Q3 2010 NET 35)

Please advise at the earliest.  Thank you.

Page_Load:

 

 

this

 

.rcbSourceElement.ItemTemplate = new SourceElementValueDropDownTemplate(ListItemType.Item, iCountOfColumnsInDataset, mColumnNamesToDisplay);

 

 

 

this.rcbSourceElement.HeaderTemplate = new SourceElementValueDropDownTemplate(ListItemType.Header, iCountOfColumnsInDataset, mColumnNamesToDisplay);

 

 

 

this.rcbSourceElement.DataSource = dsSourceElementValuesForDisplay;

 

 

 

this.rcbSourceElement.DataBind();

 


Template Class

public class SourceElementValueDropDownTemplate : ITemplate
{
    PlaceHolder ph = new PlaceHolder();
    private ListItemType CurrentTemplateType { get; set; }
    private int CountOfColumns { get; set; }
    private string[] ColumnHeaders { get; set; }

    public SourceElementValueDropDownTemplate(ListItemType type, int countOfColumnsInDropDown, string[] columnHeaders)
    {
        CurrentTemplateType = type;
        CountOfColumns = countOfColumnsInDropDown;
        ColumnHeaders = columnHeaders;
    }

    void  ITemplate.InstantiateIn(Control container)
    {
        CheckBox chkSourceElementValue;
        Label lblSourceElementValue;
        switch(CurrentTemplateType)
        {
            case ListItemType.Header:
                ph.Controls.Add(new LiteralControl("<ul>"));
                foreach(string mColName in ColumnHeaders)
                {
                    ph.Controls.Add(new LiteralControl("<li class='rcbColumn'>"));
                    ph.Controls.Add(new LiteralControl(mColName));
                    ph.Controls.Add(new LiteralControl("</li>"));
                }
                ph.Controls.Add(new LiteralControl("</ul>"));
                container.Controls.Add(ph);
               
                break;
            case ListItemType.Item:
                ph.Controls.Add(new LiteralControl("<ul>"));
                for (int iRCbColCtr = 1; iRCbColCtr < CountOfColumns ; iRCbColCtr++) /* First column of the dataset is expected to be the ELEMENT_VALUE_KEY.  No need to show that in a column */
                {
                    ph.Controls.Add(new LiteralControl("<li class='rcbColumn'>"));

                    if (iRCbColCtr == 1) // This is the first column - must appear as a checkbox
                    {
                        chkSourceElementValue = new CheckBox();
                        chkSourceElementValue.ID = "chkSourceElementValue";
                        chkSourceElementValue.Attributes.Add("ColIndex", iRCbColCtr.ToString());
                        chkSourceElementValue.DataBinding += new EventHandler(chkSourceElementValue_DataBinding);

                        //chkSourceElementValue.CheckedChanged += new EventHandler(chkSourceElementValue_CheckedChanged);
                        ph.Controls.Add(chkSourceElementValue);
                    }
                    else
                    {
                        lblSourceElementValue = new Label();
                        lblSourceElementValue.ID = "lblSourceElementValue"; 
                        lblSourceElementValue.Attributes.Add("ColIndex", iRCbColCtr.ToString());
                        lblSourceElementValue.DataBinding += new EventHandler(lblSourceElementValue_DataBinding);
                        ph.Controls.Add(lblSourceElementValue);
                    }
                   
                    ph.Controls.Add(new LiteralControl("</li>"));
                }
                ph.Controls.Add(new LiteralControl("</ul>"));
                //ph.DataBinding += new EventHandler(ph_DataBinding);

                container.Controls.Add(ph);
                break;
        }
    }

    void chkSourceElementValue_CheckedChanged(object sender, EventArgs e)
    {
        CheckBox chkSourceElementValue = sender as CheckBox;
        RadComboBox rcbParentCombo = chkSourceElementValue.Parent as RadComboBox;

    }

    void lblSourceElementValue_DataBinding(object sender, EventArgs e)
    {
        Label lblSourceElementValue = (sender) as Label;
        int iColIndex = Convert.ToInt16(lblSourceElementValue.Attributes["ColIndex"]);

        RadComboBoxItem container = (RadComboBoxItem)lblSourceElementValue.NamingContainer;
        lblSourceElementValue.Text = ((DataRowView)(container.DataItem))[iColIndex].ToString();
    }

    void chkSourceElementValue_DataBinding(object sender, EventArgs e)
    {
        CheckBox chkSourceElementValue = (sender) as CheckBox;
        int iColIndex = Convert.ToInt16(chkSourceElementValue.Attributes["ColIndex"]);

        RadComboBoxItem container = (RadComboBoxItem)chkSourceElementValue.NamingContainer;

        chkSourceElementValue.Text = ((DataRowView)(container.DataItem))[iColIndex].ToString();
    }
}


Error Received :


[HttpException (0x80004005): Multiple controls with the same ID 'chkSourceElementValue' were found. FindControl requires that controls have unique IDs.]
   System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +273
   System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +320
   System.Web.UI.Control.EnsureNamedControlsTable() +61
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +222
   System.Web.UI.Control.FindControl(String id) +12
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +182
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +227
   Telerik.Web.ChildControlHelper.FindControlRecursive(Control searcher, String ID) +186
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1031
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +8687734
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint
 
Ashwin Kumar
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
209 views
Hi,

I am using Rad Grid Resizing-AllowColumnResize="true" and  AllowFilteringByColumn="true" Property together. Also have AllowScroll="True"  When I Resizing-AllowColumnResize="false" grid display correctly with proper column width. but  
we need to allow Column Resize and Filter Option together with correct appearance of grid. Not sure how to fix appearance of cutting filter column.

Attaching here screenshot and pasting code for grid.

Thanks,

<telerik:RadPageView runat="server" ID="radPageViewResults" BorderColor="#666666"
                               BorderWidth="1px" Width="1000px">
                               <telerik:RadGrid ID="radGridActivityResult" runat="server" AutoGenerateColumns="False"
                                   Width="960px" GroupingEnabled="true" ShowGroupPanel="true" OnNeedDataSource="radPageViewResults_NeedDataSource1"
                                   AllowSorting="true" Style="table-layout:fixed;" AllowFilteringByColumn="true">
                                   <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
                                       <Excel Format="ExcelML" />
                                   </ExportSettings>
                                   <ClientSettings AllowColumnsReorder="True" ColumnsReorderMethod="Reorder" ReorderColumnsOnClient="True"
                                       AllowDragToGroup="True" Resizing-AllowColumnResize="true">
                                       <Animation AllowColumnReorderAnimation="True" AllowColumnRevertAnimation="True" />
                                   </ClientSettings>
                                   <MasterTableView AllowMultiColumnSorting="True" TableLayout="Auto" EnableHeaderContextMenu="true">
                                       <Columns>
                                           <telerik:GridBoundColumn HeaderText="Bill to Acct" DataField="StartMove.BillTo" UniqueName="BilltoAcct"
                                               Display="False" FilterControlAltText="Filter BilltoAcct column">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn HeaderText="Chassis ID" DataField="StartMove.ChassisNumber"
                                               UniqueName="ChassisID" FilterControlAltText="Filter ChassisID column">
                                           </telerik:GridBoundColumn>
                                           <%--  <telerik:GridBoundColumn HeaderText="Equipment Group" DataField="EqupGroup" UniqueName="EqupGroup"
                                           Display="False" FilterControlAltText="Filter EqupGroup column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText="Equipment Type" DataField="EqupType" UniqueName="EqupType"
                                           Display="False" FilterControlAltText="Filter EqupType column">
                                       </telerik:GridBoundColumn>--%>
                                           <telerik:GridBoundColumn HeaderText="Cycle Days" DataField="CycleDays" UniqueName="CycleDays"
                                               FilterControlAltText="Filter CycleDays column">
                                           </telerik:GridBoundColumn>
                                           <%--<telerik:GridBoundColumn HeaderText="Billable Days" DataField="StartMove.Billable" UniqueName="BillableDays"
                                           FilterControlAltText="Filter BillableDays column">
                                       </telerik:GridBoundColumn>--%>
                                           <%--<telerik:GridBoundColumn HeaderText="Billing Posted" DataField="StartMove.BillingComplete" UniqueName="BillingPosted"
                                           Display="False" FilterControlAltText="Filter BillingPosted column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" Region" DataField="OnRegion" UniqueName="OnRegion"
                                           Display="False" FilterControlAltText="Filter OnRegion column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" Area" DataField="OnArea" UniqueName="OnArea"
                                           Display="False" FilterControlAltText="Filter OnArea column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" Location" DataField="OnLocation" UniqueName="OnLocation"
                                           FilterControlAltText="Filter OnLocation column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" City" DataField="OnCity" UniqueName="OnCity"
                                           Display="False" FilterControlAltText="Filter OnCity column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" State" DataField="OnState" UniqueName="OnState"
                                           Display="False" FilterControlAltText="Filter OnState column">
                                       </telerik:GridBoundColumn>--%>
                                           <telerik:GridBoundColumn HeaderText="Origin EventType" DataField="StartMove.Status"
                                               UniqueName="OnEventType" Display="False" FilterControlAltText="Filter OnEventType column">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn HeaderText="Origin DateTime" DataField="StartMove.MoveDate"
                                               UniqueName="OnDateTime" FilterControlAltText="Filter OnDateTime column">
                                           </telerik:GridBoundColumn>
                                           <%--<telerik:GridBoundColumn HeaderText=" Week" DataField="OnWeek" UniqueName="OnWeek"
                                           Display="False" FilterControlAltText="Filter OnWeek column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" Calendar" DataField="OnCalendar" UniqueName="OnCalendar"
                                           Display="False" FilterControlAltText="Filter OnCalendar column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" Rate" DataField="OnRate" UniqueName="OnRate"
                                           Display="False" FilterControlAltText="Filter OnRate column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" TimeZone" DataField="OnTimeZone" UniqueName="OnTimeZone"
                                           Display="False" FilterControlAltText="Filter OnTimeZone column">
                                       </telerik:GridBoundColumn>--%>
                                           <telerik:GridBoundColumn HeaderText="Origin ContainerID" DataField="StartMove.ContainerId"
                                               UniqueName="OnContainerID" FilterControlAltText="Filter OnContainerID column">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn HeaderText="Origin TruckerSCAC" DataField="StartMove.Trucker"
                                               UniqueName="OnTrcukerSCAC" FilterControlAltText="Filter OnSCAC column">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn HeaderText="Origin ContainerSize" DataField="StartMove.ContaineSize"
                                               UniqueName="OnContaineSize" Display="False" FilterControlAltText="Filter OnContaineSize column">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn HeaderText="Origin Booking No." DataField="StartMove.BookingNumber"
                                               UniqueName="OnBooking" Display="False" FilterControlAltText="Filter OnBooking column">
                                           </telerik:GridBoundColumn>
                                           <%--<telerik:GridBoundColumn HeaderText="Origin BillOfLading" DataField="StartMove.OnBillOfLading" UniqueName="OnBillOfLading"
                                           Display="False" FilterControlAltText="Filter OnBillOfLading column">
                                       </telerik:GridBoundColumn>--%>
                                           <telerik:GridBoundColumn HeaderText="Origin UsingLine" DataField="StartMove.ChassisUsingLine"
                                               UniqueName="OnUsingLine" FilterControlAltText="Filter OnUsingLine column">
                                           </telerik:GridBoundColumn>
                                           <%--<telerik:GridBoundColumn HeaderText=" CustomerCode" DataField="OnCustomerCode" UniqueName="OnCustomerCode"
                                           Display="False" FilterControlAltText="Filter OnCustomerCode column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" Merchant Haulage" DataField="OnMerchantHaulage"
                                           UniqueName="OnMerchantHaulage" FilterControlAltText="Filter OnMerchantHaulage column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText=" Import Export" DataField="OnImportExport" UniqueName="OnImportExport"
                                           Display="False" FilterControlAltText="Filter OnImportExport column">
                                       </telerik:GridBoundColumn>--%>
                                           <%--<telerik:GridBoundColumn HeaderText="Dest Region" DataField="OffRegion" UniqueName="OffRegion"
                                           Display="False" FilterControlAltText="Filter OffRegion column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText="Dest Area" DataField="OffArea" UniqueName="OffArea"
                                           Display="False" FilterControlAltText="Filter OffArea column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText="Dest Location" DataField="OffLocation" UniqueName="OffLocation"
                                           FilterControlAltText="Filter OffLocation column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText="Dest City" DataField="OffCity" UniqueName="OffCity"
                                           Display="False" FilterControlAltText="Filter OffCity column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText="Dest State" DataField="OffState" UniqueName="OffState"
                                           Display="False" FilterControlAltText="Filter OffState column">
                                       </telerik:GridBoundColumn>--%>
                                           <telerik:GridBoundColumn HeaderText="Dest. EventType" DataField="EndMove.Status"
                                               UniqueName="OffEventType" Display="False" FilterControlAltText="Filter OffEventType column">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn HeaderText="Dest. DateTime" DataField="EndMove.MoveDate"
                                               UniqueName="OffDateTime" FilterControlAltText="Filter OffDateTime column">
                                           </telerik:GridBoundColumn>
                                           <%-- <telerik:GridBoundColumn HeaderText="Dest Week" DataField="OffWeek" UniqueName="OffWeek"
                                           Display="False" FilterControlAltText="Filter OffWeek column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText="Dest Calendar" DataField="OffCalendar" UniqueName="OffCalendar"
                                           Display="False" FilterControlAltText="Filter OffCalendar column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText="Dest Rate" DataField="OffRate" UniqueName="OffRate"
                                           Display="False" FilterControlAltText="Filter OffRate column">
                                       </telerik:GridBoundColumn>
                                       <telerik:GridBoundColumn HeaderText="Dest TimeZone" DataField="OffTimeZone" UniqueName="OffTimeZone"
                                           Display="False" FilterControlAltText="Filter OffTimeZone column">
                                       </telerik:GridBoundColumn>--%>
                                           <telerik:GridBoundColumn HeaderText="Dest. ContainerID" DataField="EndMove.ContainerId"
                                               UniqueName="OffContainerID" FilterControlAltText="Filter OffContainerID column">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn HeaderText="Dest. SCAC" DataField="EndMove.Trucker" UniqueName="OffSCAC"
                                               FilterControlAltText="Filter OffSCAC column">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn HeaderText="Dest.ContainerSize" DataField="EndMove.ContainerSize"
                                               UniqueName="OffContaineSize" Display="False" FilterControlAltText="Filter OffContaineSize column">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn HeaderText="Dest. Booking No." DataField="EndMove.BookingNumber"
                                               UniqueName="OffBooking" Display="False" FilterControlAltText="Filter OffBooking column">
                                           </telerik:GridBoundColumn>
                                           <%--<telerik:GridBoundColumn HeaderText="Dest BillOfLading" DataField="OffBillOfLading"
                                           UniqueName="OffBillOfLading" Display="False" FilterControlAltText="Filter OffBillOfLading column">
                                       </telerik:GridBoundColumn>--%>
                                           <telerik:GridBoundColumn HeaderText="Dest. UsingLine" DataField="EndMove.ChassisUsingLine"
                                               UniqueName="OffUsingLine" Display="False" FilterControlAltText="Filter OffUsingLine column">
                                           </telerik:GridBoundColumn>
                                       </Columns>
                                       <NestedViewSettings DataSourceID="">
                                           <ParentTableRelation>
                                               <telerik:GridRelationFields DetailKeyField="EventID" MasterKeyField="ActivityID" />
                                           </ParentTableRelation>
                                       </NestedViewSettings>
                                       <NestedViewTemplate>
                                           <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap">
                                               <fieldset style="padding: 10px;">
                                                   <legend style="padding: 5px;"><b>Event Details</b></legend>
                                                   <telerik:RadGrid ID="radGridEvent" runat="server" AutoGenerateColumns="false" DataSourceID="">
                                                       <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
                                                       </ExportSettings>
                                                       <MasterTableView DataKeyNames="EventID" TableLayout="Auto" EnableHeaderContextMenu="true"
                                                           CommandItemDisplay="TopAndBottom">
                                                           <Columns>
                                                               <telerik:GridBoundColumn HeaderText="Chassis ID" DataField="ChassisID" UniqueName="ChassisID">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Region" DataField="OnRegion" UniqueName="OnRegion"
                                                                   Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Area" DataField="OnArea" UniqueName="OnArea"
                                                                   Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Location" DataField="OnLocation" UniqueName="OnLocation">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="City" DataField="OnCity" UniqueName="OnCity">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="State" DataField="OnState" UniqueName="OnState">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="DateTime" DataField="OnDateTime" UniqueName="OnDateTime">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="TimeZone" DataField="OnTimeZone" UniqueName="OnTimeZone">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="ContainerID" DataField="OnContainerID" UniqueName="OnContainerID">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Event Type" DataField="OnEventType" UniqueName="OnEventType">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Trucker SCAC" DataField="OnSCAC" UniqueName="OnSCAC">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Trucker Name" DataField="TruckerName" UniqueName="TruckerName">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Using Line" DataField="OnUsingLine" UniqueName="OnUsingLine">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="InterChange No" DataField="InterChangeNo" UniqueName="InterChangeNo"
                                                                   Display="false">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="BookingNo" DataField="BookingNo" UniqueName="BookingNo">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Bill of Lading" DataField="BillOfLading" UniqueName="BillOfLading">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Licence Number" DataField="LicenceNo" UniqueName="LicenceNo"
                                                                   Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Event Applied" DataField="EventApplied" UniqueName="EventApplied"
                                                                   Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Original System" DataField="OrigSystem" UniqueName="OrigSystem"
                                                                   Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Comment" DataField="Comment" UniqueName="Comment"
                                                                   Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Data Input Date" DataField="DataInuptDate" UniqueName="DataInuptDate"
                                                                   Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Last Update Date" DataField="UpdateDate" UniqueName="UpdateDate"
                                                                   Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Last Update User" DataField="UpdateUser" UniqueName="UpdateUser"
                                                                   Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Pool" DataField="Pool" UniqueName="Pool" Display="False">
                                                               </telerik:GridBoundColumn>
                                                               <telerik:GridBoundColumn HeaderText="Movement Number" DataField="MovementNumber"
                                                                   UniqueName="MovementNumber" Display="False">
                                                               </telerik:GridBoundColumn>
                                                           </Columns>
                                                           <CommandItemSettings ShowRefreshButton="false" ShowAddNewRecordButton="false" ShowExportToCsvButton="true"
                                                               ShowExportToExcelButton="true" ShowExportToPdfButton="true" />
                                                       </MasterTableView>
                                                   </telerik:RadGrid>
                                               </fieldset>
                                           </asp:Panel>
                                       </NestedViewTemplate>
                                   </MasterTableView>
                                   <ClientSettings>
                                       <Scrolling AllowScroll="True" SaveScrollPosition="True" ScrollHeight="500px"></Scrolling>
                                   </ClientSettings>
                               </telerik:RadGrid>

Pavlina
Telerik team
 answered on 08 Mar 2011
16 answers
316 views
Hi,

I just updated from MVC1 to MVC2 and all ajax request where working fine and now I get this exception:

Uncaught Sys.WebForms.PageRequestManagerParserErrorException: 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 '
 
 
 
<!DOCTYPE html P'.

I've read that there is a bug with the Role Provider but I disabled it and it's still happening... very odd that from working I have now trouble in every component that uses this.

any ideas/thoughts? 

thank you 

regards,

jose
Iana Tsolova
Telerik team
 answered on 08 Mar 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?