Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
295 views

I am getting this error related to WebResource.axd. This happens when I click a button and it opens up a document from sharepoint site.

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1;
.NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.21022; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Fri, 3 Sep 2010 17:55:21 UTC

Message: Sys.WebForms.PageRequestManagerServerErrorException:
Retrieving the COM class factory for component with CLSID
{36D27C48-A1E8-11D3-BA55-00C04F72F325} failed due to the following error: 80040154.
Line: 6
Char: 62099
Code: 0
URI: http://sampledomainname/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager_TSM&compress
=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+
Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3b
Telerik.Web.UI%2c+Version%3d2010.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken
%3d121fae78165ba3d4%3aen-US%3a86f56c91-febb-4172-ae71-6c2ba2372421%3a16e4e7cd%3a
ed16cbdc%3af7645509%3a24ee1bba%3a19620875%3a874f8ea2%3a490a9d4e%3a1e771326%3a4cacbc31%3ae330518b%3a8e6f0d33%3a6a6d718d%3a8674
cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1%3a58366029%3aaa288e2d%3ac8618e41%3ae4f8f289

Cat Cheshire
Top achievements
Rank 1
 answered on 20 May 2011
1 answer
126 views
I am getting an error 'Cannot create an object of type 'Telerik.Web.UI.RadComboBoxItemsRequestedEventHandler' from its string representation 'rcbPersonGroupSelector_ItemsRequested' for the 'OnItemsRequested' property.' on the Rad combo box.

This is the code used :

<telerik:RadComboBox ID="rcbPersonGroupSelector" <br>    runat="server" Height="190px" Width="420px" MarkFirstMatch="true" EnableLoadOnDemand="true"<br>    HighlightTemplatedItems="true" OnItemDataBound="rcbPersonGroupSelector_ItemDataBound"<br>    OnItemsRequested="rcbPersonGroupSelector_ItemsRequested" IsCodeSet="false" Title="Select"><br>    <headertemplate><br>            <ul><br>            <li class="PersonSelector_col1">Name</li><br>            <li class="PersonSelector_col2">AAA</li>       <br>            </ul><br>            </headertemplate><br>    <ItemTemplate><br>        <ul><br>                <li class="PersonSelector_col1"><br>                <%#DataBinder.Eval(Container, "DataItem.Name") %>                    <br>                <li class="PersonSelector_col2"><br>                <%#DataBinder.Eval(Container, "DataItem.AAA") %>    <br>            </ul><br>    <br>    </ItemTemplate><br><span class="Apple-style-span" style="color: rgb(0, 17, 25); font-family: Consolas, 'Courier New', monospace; font-size: 13px; line-height: normal; "><span style="color: blue; "></</span><span style="color: maroon; ">telerik:RadComboBox</span><span style="color: blue; ">></span></span>

I have referenced telerik.web.ui and design dlls as suggested in one of the other threads, but still getting the same error.

Please help..

Thanks
Cat Cheshire
Top achievements
Rank 1
 answered on 20 May 2011
10 answers
279 views
how i show the rad confirm messages in server side
please help me


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 20 May 2011
1 answer
90 views
I have a grid which uses grouping on the top-level table and also has a detail table. it seems that, when a group is collapsed, and then expanded, then the detail table is expanded for all items in the group. Is there a way to prevent the detail table from being expanded when the user expands a group? The detail table should only be expanded when the user clicks on the expand/collapse column for the item in the master table.
Vasil
Telerik team
 answered on 20 May 2011
1 answer
64 views
Hi,


I have rad tool bar and i have a grid which is defined under radajax panel. I want to click button from tool bar and export Grid to excel. II followed instructions on Telerik site but nothing worked. Any idea ?



Regards,
Vasil
Telerik team
 answered on 20 May 2011
2 answers
480 views
Hi,

I have a couple Grids on my page which include a "Download" GridButtonColumn that has AJAX disabled via Javascript to enable a File Download. When clicking these download buttons, the Code behind uses GetDataKeyValue to get the ID of the row:

protected void CompleteTickets_ItemCommand(object sender, GridCommandEventArgs e)
{
     if (e.CommandName == "Refresh")
     {
         CompleteTicketsGrid.Rebind();
     }
             
     if (e.CommandName == "Download")
     {
          //  Get Ticket ID
          GridDataItem item = (GridDataItem)e.Item;
          int ticketID = Convert.ToInt32(item.GetDataKeyValue("TicketID"));
           
             //   Use Ticket ID to Get File from File Repository
     }
}


However, this code works for all of my other functions (edit), but on the "Download" button it automatically pulls the TicketID from the  first Row of the Grid. It doesn't matter if I delete rows or change pages on the Grid, the GetDataKeyValue method always pulls the first item's ID rather than the row I've clicked.  

I have DataKeyNames="TicketID"  set in the MasterTableView of the Grid, and the Grid is populated with a LINQ/IQueryable Datasource.

I've also attempted to create a work-around for this problem by using this code instead, considering I have a column which displays the TicketID:

int ticketID = Convert.ToInt32(item["TicketID"].Text);

But to no avail, it is still grabbing the first Row's "TicketID". When constructing the GridDataItem item object, it's almost as if it's automatically grabbing the wrong Row from the very beginning. I've included an image of what exactly is happening.

Here is also the block of ASPX code of my Grid.

<telerik:RadGrid
    runat="server"
    ID="CompleteTicketsGrid"
    Enabled="true"
    Width="100%"
    AutoGenerateColumns="false"
    Skin="Default"
    GroupingEnabled="false"
    PageSize="10"
    AllowPaging="true"
    OnNeedDataSource="CompleteTickets_OnNeedDataSource"
    OnItemCommand="CompleteTickets_ItemCommand">
            <MasterTableView
            DataKeyNames="TicketID"
            CommandItemDisplay="Top"
            CommandItemSettings-ShowRefreshButton="true"
            CommandItemSettings-ShowAddNewRecordButton="false"
            CommandItemStyle-HorizontalAlign="NotSet"
            TableLayout="Fixed"
            Name="Unpriced"
            AllowPaging="true">
            <Columns>
                <telerik:GridBoundColumn UniqueName="TicketID" DataField="TicketID" HeaderStyle-Width="5%" ItemStyle-Width="5%" HeaderText="#"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="Customer" DataField="Customer" HeaderStyle-Width="15%" ItemStyle-Width="15%" HeaderText="Customer"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="Location" DataField="Location" HeaderStyle-Width="18%" ItemStyle-Width="18%" HeaderText="Location"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="JobNo" DataField="JobNo" HeaderStyle-Width="9%" ItemStyle-Width="9%" HeaderText="Job #"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="CreatedDate" DataField="DateCreated" HeaderStyle-Width="11%" ItemStyle-Width="11%" HeaderText="Date Created" ReadOnly="true" DataFormatString="{0:d/M/yyyy}"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="OrderedBy" DataField="OrderedBy" HeaderStyle-Width="11%" ItemStyle-Width="11%" HeaderText="Ordered By" ReadOnly="true"></telerik:GridBoundColumn>
                <telerik:GridButtonColumn UniqueName="Download" ButtonType="LinkButton" Text="Download" CommandName="Download" ItemStyle-Width="12%" HeaderStyle-Width="12%"/>
                <telerik:GridButtonColumn UniqueName="LoadTicket" ButtonType="LinkButton" Text="Load Ticket" CommandName="LoadTicket" ItemStyle-Width="13%" HeaderStyle-Width="13%"/>
            </Columns>
            </MasterTableView>
 
            <ItemStyle Height="40" VerticalAlign="Middle"/>
            <AlternatingItemStyle Height="40"  BackColor="CadetBlue" ForeColor="White" VerticalAlign="Middle" />
 
            <ClientSettings>
                <ClientEvents OnCommand="OnGridCommand" />
                <Scrolling AllowScroll="False" UseStaticHeaders="True" />
            </ClientSettings>
        </telerik:RadGrid>


Oh, and here's the JavaScript I'm using to Disable AJAX on the Download Button:

//  Disables Ajax on Buttons Clicked in Grid
//
function OnGridCommand(sender, args) {
    var itemArgument = args.get_commandArgument();
    var itemCommand = args.get_commandName();
    if (itemArgument == "DisableAjax" || itemCommand == "Download") {
        window["disableAjax"] = true;
    }
    else {
        window["disableAjax"] = false;
    }
 
    args.set_cancel(false);
}


Any ideas are greatly appreciated, as I've hit a brick wall with this one... Or maybe I've just got tunnel vision from staring at this for so long.

Best Regards,

Landon

Veli
Telerik team
 answered on 20 May 2011
2 answers
185 views
Hi,

We have done the following:
In Appliction_Error and in ScriptManager_AsyncPostBackError, we handle and logs the exception.
Then we redirect to an error page.

When not using radcompression, this works for all cases, but when using radcompression, the redirect doesn't happen when an exception occurs in Page_PreInit. The exception must also be in an Async callback, normal postbacks works as expected.

Default.aspx:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="default.aspx.vb" Inherits="WebApplication8._default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="sm" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="upError" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:Button ID="btnError" runat="server" Text="Error" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:Button ID="btnErrorNoUpdatePanel" runat="server" Text="ErrorNoUpdatePanel" />
    </div>
    </form>
</body>
</html>

Default.aspx.vb:
Public Class _default
    Inherits System.Web.UI.Page
 
    Private Sub _default_PreInit(sender As Object, e As System.EventArgs) Handles Me.PreInit
        If Me.IsPostBack Then
            Throw New Exception("Test")
        End If
    End Sub
 
    Private Sub sm_AsyncPostBackError(sender As Object, e As System.Web.UI.AsyncPostBackErrorEventArgs) Handles sm.AsyncPostBackError
        Server.ClearError()
        Response.Redirect("Error.aspx")
    End Sub
End Class

Error.aspx:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Error.aspx.vb" Inherits="WebApplication8._Error" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        An error occured!
    </div>
    </form>
</body>
</html>

web.config:
<?xml version="1.0"?>
<configuration>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
        <httpModules>
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
        </httpModules>
    </system.web>
    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true">
            <remove name="RadCompression" />
            <add name="RadCompression" preCondition="managedHandler" type="Telerik.Web.UI.RadCompression"/>
        </modules>
    </system.webServer>
</configuration>

Global.asax.vb:
Imports System.Web.SessionState
 
Public Class Global_asax
    Inherits System.Web.HttpApplication
 
    Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
        ' Fires when an error occurs
        Server.ClearError()
        Response.Redirect("Error.aspx")
    End Sub
 
End Class

When hitting the Error-button, I don't get to the error page, but when hitting the ErrorNoUpdatePanel I do get to the error page.
If turning off RadCompression both cases works.

Regards
Caesar
Caesar
Top achievements
Rank 1
 answered on 20 May 2011
1 answer
35 views
I have a  grid which uses nested view templates like this http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx i'm using templates in both the master and detail.

According to my requirements the detail view should appear next to the master. When the grid renders there is 1 tr for the master row and another tr for the detail row. As far as i know there is no way to show tr next to each other in IE8

I've auto expanded the grid by default and hidden the expand columns. Basically the layout of what i'm looking for is like this:
parent1 | parent1_child1
              | parent1_child2
parent2 | parent2_child1 
              | parent2_child2

Any help will be greatly appreciated!
Veli
Telerik team
 answered on 20 May 2011
1 answer
29 views
I am encountering a strange bug? In my Telerik Drag and Drop enabled TreeView, if I click on a leaf (node with no children), a child will be automatically created. This appears to be Telerik specific as I am not catching any events in our js or server side code.
Is there a property/setting I need to change to avoid this behavior?

Thanks.
Veronica
Telerik team
 answered on 20 May 2011
6 answers
243 views
Here is what I would like to accomlish and cannot find in help:
Using the Dropdown list seen below, if user selects an option called "Other", a textbox pops up.  User can then type an option and on Save of webpage, it will be added to the DropDownList.  I need easiest most straightforward way to accomplish this.  Have not been able to find a lot of help.  Thank you.

Our version is: RadControls for ASPNET AJAX Q2 2008
Please let me know if you need any other information.

Thank you


<

 

telerik:RadGrid

 

 

runat="server"

 

 

ID="grdTypes"

 

 

Skin="Office2007"

 

 

EnableEmbeddedSkins="True"

 

 

AllowAutomaticDeletes="True"

 

 

AllowAutomaticUpdates="True"

 

 

AutoGenerateColumns="False"

 

 

AllowMultiRowEdit="True"

 

 

EnableAJAX="True"

 

 

GridLines="None"

 

 

Width="400px"

 

 

OnNeedDataSource="grdTypes_NeedDataSource"

 

 

OnDeleteCommand="grdTypes_DeleteCommand"

 

 

>

 

 

 

<ExportSettings>

 

 

<Pdf PageBottomMargin="" PageFooterMargin="" PageHeaderMargin="" PageHeight="11in"

 

 

PageLeftMargin="" PageRightMargin="" PageTopMargin="" PageWidth="8.5in" />

 

 

</ExportSettings>

 

 

<MasterTableView

 

 

CommandItemDisplay="Top"

 

 

EditMode="EditForms"

 

 

DataKeyNames="TypesID"

 

 

AutoGenerateColumns="false"

 

 

AllowSorting = "true">

 

 

 

<EditFormSettings>

 

 

<EditColumn CancelImageUrl="/next/RadControls/Grid/Skins/TEST/Cancel.gif" EditImageUrl="/next/RadControls/Grid/Skins/TEST/Edit.gif"

 

 

InsertImageUrl="/next/RadControls/Grid/Skins/TEST/Update.gif" UniqueName="EditCommandColumn2"

 

 

UpdateImageUrl="/next/RadControls/Grid/Skins/TEST/Update.gif">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

 

<CommandItemTemplate >

 

 

<asp:LinkButton ID="InitInsertButton" runat="server" CommandName="InitInsert" >

 

 

<img alt="Add Record" src="/next/RadControls/Grid/Skins/TEST/AddRecord.gif" /> Add new record</asp:LinkButton>

 

 

</CommandItemTemplate>

 

 

 

<Columns>

 

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Edit">

 

 

<ItemStyle Width="10px"/>

 

 

</telerik:GridEditCommandColumn>

 

 

 

<telerik:GridButtonColumn

 

 

CommandName="Delete"

 

 

ConfirmText="Are you sure you wish to delete this record?"

 

 

Text="Delete"

 

 

HeaderText="Delete"

 

 

ImageUrl="/next/RadControls/Grid/Skins/Test/Delete.gif"

 

 

UniqueName= "DeleteColumn2"

 

 

ButtonType="ImageButton"

 

 

ShowSortIcon="False"

 

 

>

 

 

<ItemStyle Width="10px"/>

 

 

</telerik:GridButtonColumn>

 

 

 

<telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="TypesID" UniqueName="TypesID">

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn Visible="false" ReadOnly="true" DataField="DDID" UniqueName="DDID">

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridDropDownColumn

 

 

DataField="TypesID"

 

 

HeaderText="Types"

 

 

UniqueName="TypesID"

 

 

DataSourceID="myTypes"

 

 

ListValueField="TypesID"

 

 

ListTextField="TypeName"

 

 

DropDownControlType="DropDownList"

 

 

>

 

 

<ItemStyle Width="210px"/>

 

 

</telerik:GridDropDownColumn>

 

 

 

</Columns>

 

 

 

<ExpandCollapseColumn Resizable="False" Visible="False">

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

 

<RowIndicatorColumn Visible="False">

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

 

</MasterTableView>

 

 

 

<FilterMenu EnableEmbeddedSkins="False" EnableTheming="True" Skin="TEST">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</FilterMenu>

 

 

 

</telerik:RadGrid>

 

Ronald de Bruijn
Top achievements
Rank 1
 answered on 20 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?