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

I have a radgrid with Editmode as Popup. On click of edit button, the popup is displaying at the top of the grid.
My question is:

How can I position the popup above or below the row which is marked for edit?

Your answers with code snippet would be appreciated

Thank.
Shinu
Top achievements
Rank 2
 answered on 12 Jun 2012
1 answer
176 views

I have an ASP.net button and I set the CssClass to something so that I can use Jquery to select it and force the click event when someone hits the enter key and this works the way I want it to.  The problem is that I am using Telerik skins so when I assign the cssclass the styling on the button goes away.  If I change the button to a RadButton the styling remains even if I set the CssClass to something however my Jquery selector obviously won't work anymore.

I have to select by class because I won't know the client id of the button because of edit form templates, master page, other containers, etc...

So how can I either:

a.) Select the RadButton using Jquery similar to the example below? Or,
b.) Style the ASP.net button using telerik skins while still assigning a CSSClass so that I can still use this below?


$(document).keypress(function (event) {
  if (event.keyCode == 13) {
    event.preventDefault();
    $(".submit-button").click();
  } else {
    return true;
  }
});
Princy
Top achievements
Rank 2
 answered on 12 Jun 2012
0 answers
114 views
I did a batch conversion of a number of windows forms from visual basic to C#.  I converted both the form.vb and form.designer.vb files.  When I added them to a C# windows project Visual Studio and I right-click any of the forms I only see the options of View Code and View Class Diagram, but not View Designer.  What am I doing wrong?
William
Top achievements
Rank 1
 asked on 11 Jun 2012
1 answer
81 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
140 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
90 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
72 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
81 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
95 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
67 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?