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

I have a radgrid that has radtabs and the multipage.  I want to use a dropdown in the radfilter for some of the fields, so that: 

a) the initial page load is the default load
b) from the filter selection, using the example from Grid / Filtering Template Columns, http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx, the grid will bind according to the selection.

I read all of the tutorials on customizing the filters, but nothing seems to work correctly for me. I followed the tutorial and I am not getting the results.  If anything, I am not ghetting an error on the RadMultiPage Control.  I created the FilterTemplateColumns.cs class.  I am not sure how to register that class correctly in my file. 

At  the top of my .aspx page, I have the following, whcih is not correct:

<%@ Register TagPrefix="custom" Namespace="MyCustomFilteringColumn.FilteringTemplateColumns"%>

The class was created and saved in my App_code folder.

The following is the grid where I am receiving the "object reference not set to an instance of an object"

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="ProgrammingPageView" runat="server">
            <telerik:RadGrid ID="ProgramGrid" runat="server" DataSourceID="prgDS" AllowFilteringByColumn="true"
AllowSorting="true" AllowPaging="true" AutoGenerateColumns="False"
ShowStatusBar="true" PageSize="7">
<PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" />
<MasterTableView DataKeyNames="ProgrammingID" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true">
<NoRecordsTemplate>There isn't any data.</NoRecordsTemplate>
 <Columns>
       <custom:MyCustomFilteringColumn DataField="Show" FilterControlWidth="180px" HeaderText="Show">
                        <headerstyle width="25%" />
                      <itemtemplate><%# Eval("Show") %></itemtemplate>
                   </custom:MyCustomFilteringColumn>
  
What can I do to prevent this error?  I want to use other dropdowns in the filters.  Also, do I need to add <filter parameters> in my sqldatasource?

Thank you for your help.
Ayozen
Top achievements
Rank 1
 answered on 11 Jun 2012
0 answers
145 views
A SortExpression set on the server seems incompatible with a RadGrid that is populated with client-side data binding and has client-side sorting. I am wondering if there is a recommended way to identify a column that is sorted by default in this scenario?

 

For example, I want to indicate that the data comes out of the database sorted by Column A by default. If I add a SortExpression on the server, that column is shaded and has an arrow. If I try to sort by Column B using the client-side API, Column A will retain that shading and arrow supplied when the grid structure was created on the server, even though Column B is now being used for sorting and has an arrow also. If I then change the sort back to Column A, Column A gets a second arrow next to the arrow supplied on the server. 

ASP.NET AJAX 2012 Q1 SP1 controls.

Mike Chabot
Top achievements
Rank 1
 asked on 11 Jun 2012
2 answers
107 views
hi,
I have used radeditor with externalDialogs in my website project and I have set the ExternalDialogsPath to theire location.
When I publish my website and make it precompiled all the .ascx files included these ExternalDialogs are deleted from their folders and being .compiled files in bin folder.
How can I set the ExternalDialogsPath value of the radeditor now?
It doesn't work for me now when I set the path like this : ExternalDialogsPath = "~/Bin/"

Thanks
Mark Kucera
Top achievements
Rank 1
 answered on 11 Jun 2012
0 answers
85 views
I am not getting any error. However the row does not get deleted. Below are the details:

<asp:SqlDataSource ID="SqlDataSourceCredit" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringLeasePak %>"
        ProviderName="<%$ ConnectionStrings:ConnectionStringLeasePak.ProviderName %>"
         DeleteCommand="delete from portal.creditapplication where capid = :CAPID">
        <DeleteParameters>
            <asp:Parameter Name="CAPID" Type="Int32"/>
        </DeleteParameters>
    </asp:SqlDataSource>

Thanks,
Dinesh.
Dinesh
Top achievements
Rank 1
 asked on 11 Jun 2012
3 answers
88 views
We recently upgraded a website solution from Visual Studio 2008 til Visual Studio 2010 and .NET 4.0 run time.

We are using rad controls 2.7.0.

After the deployment we started getting this JavaScript run time error "Object doesn't support this property or method "Dispose".

Webpage error details


User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Fri, 1 Jun 2012 13:48:37 UTC




Message: Object doesn't support this property or method
Line: 1
Char: 2655
Code: 0
URI: http://localhost/WebResource.axd?d=LqkO_BSTes_p7ojon7e3j55Z8SiW7LISKdvkyOTLsosB67jtr8-nQ3cLsNJYPruAdDUTGOtwxCZ1H9ydWUNz0NoCSAvhT7reN0nQ5me2PljrHQx0YqwEPOrFkjMSPm1F0&t=633129313340000000

I cannot reproduce the problem on my development environment. But I can reproduce it on my test environment where I'm running an IIS site.

I looked in my bin folder and I found RadComboBox.Net2.dll (version 2.7.0.0).

I'm new to rad controls. Do we need to upgrade the rad controls? Is there a an upgrade guide?

Any help is appreciated.

I found this thread http://www.telerik.com/community/forums/aspnet-ajax/ajax/radajax-broken-in-vs-2010-beta-2-in-master-content-pages.aspx that has workaround of setting ClientIDMode property of the Page to "AutoID". It worked on my test environments.

1st test environment: Microsoft Windows Server 2003 R2, .NET 4, IIS6
2nd test environment: Microsoft Windows Server 2008 R2, NET 4, IIS 7.5

However it is still not working on our partner test environment: Microsoft Windows Server 2008 Standard, .NET 4, IIS 7.0

It's a puzzle and any help is appreciated.
Ivana
Telerik team
 answered on 11 Jun 2012
0 answers
101 views
The OnKeyPress event will fire on a RadGrid but NOT when you are in Edit Mode using EditMode="EditForms". 

How do I capture KeyPress event in a RadGrid while in Edit Mode?
Robert
Top achievements
Rank 1
 asked on 11 Jun 2012
1 answer
77 views
Does the functionality exist somewhere to allow users to edit recurrences to change only dates past the date selected?
If so, great... how?
If not, is there a way to change the dialogue box that comes up after you edit a recurrence where it says "only this event" or "the series" to add one that says "this and all future events". That way I could programatically end the current series and create a new one going forward with the changes from a single prompt/.

Thanks!
Peter
Telerik team
 answered on 11 Jun 2012
3 answers
113 views
Hi there,

I try to expand the parent and child items in client-side but it seems that you can't. This is my code:

function OnClientItemClicking(sender, eventArgs) {
            var item = eventArgs.get_item();
             
            if (item.get_expanded()) {
                item.collapse();
            }
            else {
                item.expand();
            }
 
            var panelBar = $find("ctl00_RadPanelBar1");
 
            var panelItem = panelBar.findItemByValue("AccountFooter");
            panelItem.show();
 
            panelItem = panelBar.findItemByValue("TopicFooter");
            panelItem.hide();
 
            var parentItem = item.get_items().getItem(0);
            parentItem.expand();
 
            eventArgs.set_cancel(true); // Cancel the postback
           
        }

Thanks for quick help!
Claudio

Kate
Telerik team
 answered on 11 Jun 2012
2 answers
151 views
Hi,

I have the a ComboBox with static items inside a ListView:

 <asp:ListView runat="server" ID="lvRoomUsers" 
        ItemPlaceholderID="itemPlaceHolder1" OnItemCommand="lvRoomUsers_ItemCommand"
        onitemdatabound="lvRoomUsers_ItemDataBound" >

                <LayoutTemplate>
                    <table id="tblRoomUsers" class="Grid" cellspacing="0">
                    <tr><th colspan="3">Users in This Room</th></tr>
                       <asp:PlaceHolder ID="itemPlaceHolder1" runat="server" />
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                  <tr>
                  <td>
                  <asp:HiddenField ID="hfUser" runat="server" Value='<%# Eval("Id") == null ? String.Empty : Eval("Id").ToString() %>' />
                  <asp:HiddenField ID="hfReadOnly" runat="server" Value='<%# Eval("ReadOnly") == null ? String.Empty : Eval("ReadOnly").ToString() %>' />
                  <%# Eval("FirstName") == null ? String.Empty : Eval("FirstName").ToString() + " " + Eval("Surname").ToString()%></td>
                  <td>
                  <asp:UpdatePanel ID="upPermissions" runat="server" >  
                  <Triggers> <asp:AsyncPostBackTrigger ControlID="cbPermissions" EventName="SelectedIndexChanged" /> </Triggers>
               
                  <ContentTemplate>
                 

                  <telerik:RadComboBox ID="cbPermissions" runat="server" AutoPostBack="true"
                     onselectedindexchanged="cbPermissions_SelectedIndexChanged" Visible='<%# Eval("FirstName") == null ? false : true %>' Width="100"  >
                     <Items>
                      <telerik:RadComboBoxItem Text="Read Only" Value="true" />
                          <telerik:RadComboBoxItem Text="Full Access" Value="false" />
                     </Items>
                 
                   </telerik:RadComboBox>

                  </ContentTemplate>
                   </asp:UpdatePanel>
                  </td>
                  <td style="text-align:center">
                  <asp:LinkButton ID="btnRemoveUser" runat="server" Text="Remove" CommandName="RemoveUser" Visible='<%# Eval("FirstName") == null ? false : true %>' />
                  <%--<asp:CheckBox ID="chkSelect" runat="server" Visible='<%# Eval("UserName") == null ? false : true %>' />--%>
                  </td>
                 </tr>
                </ItemTemplate> 
    </asp:ListView>


The ComboBox is not rendering properly (see attached image) 
Tamir
Top achievements
Rank 1
 answered on 11 Jun 2012
1 answer
125 views
Hello,
how can I set the font of the text in the red frames?
Many thanks
AB
Rumen
Telerik team
 answered on 11 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?