Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Hi,

 <telerik:GridBoundColumn DataField="category_name" HeaderText="Kategori" FilterControlWidth="100px"  AutoPostBackOnFilter="true"  ShowFilterIcon="false" CurrentFilterFunction="Contains" SortExpression="category_name"
                        DataType="System.String">


CurrentFilterFunction is  case sensetive, For example, I want to find  AHMET. When I wrote ahmet, it gave "No records to display."
But there  was AHMET  in the record. I tied other founctions like contains, staerwith... etc. But I didn't find helpful function. Can yqu help me?

Thank you.



Princy
Top achievements
Rank 2
 answered on 20 May 2011
2 answers
187 views
Hello

I have a radtoolbar with 6 buttons in it. The button redirect to different windows in my application.
I am currently using the postbackurl property, On the click of the button i need it to open a new window with the url.

Is there a way i can do this?

Thanks in advance
Kate
Telerik team
 answered on 20 May 2011
5 answers
309 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
134 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
289 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
92 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
67 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
493 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
193 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
38 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
Narrow your results
Selected tags
Tags
+? 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?