Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
I have a Dot Net 4.0 Web app using Telerik controls.  

It appears that my application will run fine if IE10 is in Compatibility Mode.

It will not function normally if Compatibility mode is off.  

I'm not sure if this is even an issue (for my company) but I'd be interested in hearing if there is any fix for this.

Misho
Telerik team
 answered on 30 May 2013
2 answers
244 views
All of the documentation says that I have to get the ClientID of the Rad controls with a snippet like this:

var grid = $find("<%=RadGrid1.ClientID %>");

The problem is that it doesn't work.  Any attempt to execute this code results in the error "The value of the property '$find' is null or undefined, not a Function object".

I am using JQuery and all my JQuery code runs correctly.

Any assistance would be appreciated.
Duane Roelands
Top achievements
Rank 1
 answered on 30 May 2013
5 answers
115 views
Hey, here is some bugs I'm facing with my RadWindows and particularly the opener element.

1- When I minimize a RadWindow which is in fullscreen mode and click on its opener element, the window comes back in fullscreen but only wide-side, not height-side.

2- When I minimize a window and click its opener element, only the top bar of the window is visible. The only way I found to fix this is to put an animation to my RadWindowManager.

3- When my window is already shown and I click on its opener element again, the window does a quick refresh (flash), is it even possible to avoid that ?

and the last one even if I'm not sure if the opener element is reponsible for that...

4- Sometimes the opener element just won't show its window for some reasons.

Thanks in advance guys,
Francis

Tim
Top achievements
Rank 1
 answered on 30 May 2013
1 answer
82 views
Hi
     How can I deselect a selected row on external button click. can somebody help me with this?
thanks
Allen
Princy
Top achievements
Rank 2
 answered on 30 May 2013
4 answers
280 views
What I would like to do is use a custom asp modal popup box on the perform insert command on a radgrid.  It works as I have it but the problem is that the grid also opens up to insert data as well, but only the data in my needdatasource statement.  Is there a way to block this from opening and only open my modal popup.

I know I could use a template commandline but am trying to use built in radgrid items as its less code and looks cleaner.

Protected Sub myRadGrid_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles myRadGrid.ItemCommand
       If (e.CommandName = RadGrid.InitInsertCommandName) Then
           pnlRegions_MPE.Show()
       End If
   End Sub
Kevin
Top achievements
Rank 1
 answered on 30 May 2013
1 answer
61 views
I have a 2012/Q2 RadEditor that was upgraded from version 2011/Q2.  There is a major difference in the UI of the image editor component.  It's more full featured, but I preferred the simple image editor that was in 2011.  

Is there a way through configuration, or a custom patch that I could restore the image editor that was in the 2011 version?
Ivaylo
Telerik team
 answered on 30 May 2013
1 answer
128 views
What I need to do is see if any items are checked in my radcombox, if they are ass them to an string and tehn to a sql where statement,
each time I look to see if items are checked though I get errors, at this point don't know what I am doing wrong.  Need to check and see if anything checked first so that I can skip it otherwise as part of a where statement for sql.
Protected Sub myRadGrid_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles myRadGrid.NeedDataSource
       Dim SqlWhere As String = ""
       Dim items As String = ""
 
       If rblActive.SelectedValue = Nothing Then
           SqlWhere = " where r.bitActive = 1"
           rblActive.SelectedValue = 1
       ElseIf rblActive.SelectedValue = "All" Then
           SqlWhere = ""
       ElseIf rblActive.SelectedValue = "0" Then
           SqlWhere = " where r.bitActive = 0"
       ElseIf rblActive.SelectedValue = "1" Then
           SqlWhere = " where r.bitActive = 1"
           rblActive.SelectedValue = 1
       End If
 
       If ddlRadTeam.SelectedItem.Checked = True Then
           For Each item As RadComboBoxItem In ddlRadTeam.Items
               If item.Selected Then
                   items += item.Value & ","
               End If
           Next
       End If
 
       If ddlRadTeam.SelectedItem.Checked = True And rblActive.SelectedValue = "All" Then
           SqlWhere = " where r.intTeamId IN (" & items & ")"
       ElseIf ddlRadTeam.Items.Count > 0 Then
           SqlWhere += " and r.intTeamId IN (" & items & ")"
       End If
 
       sql = "select  " & SqlWhere
  
       myRadGrid.DataSource = getData(sql)
   End Sub
Nencho
Telerik team
 answered on 30 May 2013
1 answer
253 views
Hi Telerik,

I am trying to display a confirm message whenever users try to close a Radwindow. It works correctly when there  is only 1 Radwindow, but got various problems in nested RadWindows(open Radwindow from another Radwindow). I tried different approaches based on samples I found in your forum. But none of them works for my scenario. 

Basically, I want to achieve the following goals:
1. Whenever users click on the close button on the active Radwindow,  the confirm should show up. If users click on OK, it should only close the active Radwindow. If users click on Cancel, user will stay on the current Radwindow.
2. Confirm message should only be displayed once. I often got duplicate confirm windows intermittently. I guess it is due to add_beforeClose got attached multiple times.
3. When I close the 2nd Radwindow and open it again from the 1st one and try to close it, the confirm prompt should be displayed again and only once. Right now, in my sample, the prompt is like in an infinite loop and cannot be closed.

Please find the code sinippets below.
function OnBeforeClose(sender, args) {
    function callbackFunction(eventArgs) {
        if (eventArgs) {
            sender.remove_beforeClose(OnBeforeClose);
            sender.close();
//            sender.add_beforeClose(OnBeforeClose)
        }
    }
    args.set_cancel(true);
    radconfirm('Are you sure you want to close this window?', callbackFunction, 400, 140, null, 'Close Window');
}

Default.aspx:
    <telerik:RadWindow runat="server" ID="RadWindow1"></telerik:RadWindow>
    <asp:Button ID="Button1" Text="open window" runat="server" OnClientClick="openWindow(); return false;" />
    <script type="text/javascript">
        function openWindow() {
            var oWindow = window.radopen("Default2.aspx", "");
            oWindow.setSize(600, 400);
            oWindow.center();
            oWindow.add_beforeClose(OnBeforeClose);
            oWindow.show();
        }
    </script>

Default2.aspx:
  <telerik:RadWindow runat="server" ID="RadWindow1"></telerik:RadWindow>

    <asp:Button ID="Button1" Text="open window" runat="server" OnClientClick="openWindow(); return false;" />
    <script type="text/javascript">
        function openWindow() {
            var oWindow = window.radopen("Default3.aspx", "");
            oWindow.setSize(400, 300);
            oWindow.center();
            oWindow.add_beforeClose(OnBeforeClose);
            oWindow.show();
        }
    </script>

Default3.aspx is just a simple page with some text.

Here are steps to reproduce my problem:
1. Open Default2 form Default and open Default3 from Default2. 
2. Close Default3 and open it again from Default2. Try to close Default3. You will get the prompt but cannot close it.

You can try different combination of those 3 pages. I want to always display confirm prompt correctly no matter how many times I open and close and no matter which Radwindow I am trying to close. Is there any way that I can make this work?

Thank you very much
Marin Bratanov
Telerik team
 answered on 30 May 2013
1 answer
179 views
Using version 2013.1.417.35 and Internet Explorer 10.

Why is it that there seems to be a 30 character limit on the text we can enter in a column's filter?  If we type 31 characters, no results show, no matter the criteria (Contains, Equals, etc.).

Thanks,
Kyle
Eyup
Telerik team
 answered on 30 May 2013
9 answers
187 views
Dear all,
I've used a RadGrid personalized with GridTemplateColumn using as <ItemTemplate> controls such as RadNumericTextBox and no <EditItemTemplate> with the aim was to implement a sort of fast point&click Excel-like grid that is used to configure parameters of a project. Namely, the maximum dimensions of this grid are 20 columns x 50 rows - so I do not deal with millions of records...
The changing of the cell values now is very fast, more than using the classic approach of row selection, single cell update and press od the update link/button on the selected row.
Unfortunately, when I need to update something from the entire grid (also  the grid itself is auto-updated in Ajax mode) it takes a very long long long time to finish... The computational part is rather simple and it is accomplished in less than 1 second but when arriving to the grid.DataBind() method it takes almost 30 secs/1 min. to visually update the grid itself on the screen.
From the generated HTML I've seen that the VIEWSTATE now is enormous and this is probably the cause of the bad performance.
According to you, is there a way to speed up this process?
Pavlina
Telerik team
 answered on 30 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?