Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
167 views
Hi,

First of all this topic is referenced with this topic http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-edit-command-doesnt-work.aspx in a sense of the logic of the application.

So my question is...
I read the documentation and tested the demos, everything is working as expected but when i want to close or cancel the modal pop-up (lets say i don't wanna edit, update or insert anything) the modal pop-up get stuck and cant get to close/hide it.
I intended to handle de oncancel event in the radgrid but nothing, tested if it was a browser issue and in ie8, ff3.6 and chrome-latest still get the same result.
But here is the rare thing m binding with the publiC DataItem object and if i delete this bindings (currently getting "binded" in the page_load event of the usercontrol) everything just work as always, if a make a bind even just one it get stuck, do i forget to handle and a event?...

Users.aspx
<%@ Page Title="Users | Telerik Trial Testing" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="TelerikTrial.Users" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadComboBox ID="App_List" runat="server" AutoPostBack="true" DataTextField="ApplicationName"
        DataValueField="LoweredApplicationName" OnSelectedIndexChanged="App_List_SelectedIndexChanged">
    </telerik:RadComboBox>
    <br />
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="App_List">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="App_List" />
                    <telerik:AjaxUpdatedControl ControlID="User_List" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="User_List">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="App_List" />
                    <telerik:AjaxUpdatedControl ControlID="User_List" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <telerik:RadGrid ID="User_List" runat="server" AllowPaging="True"
        AutoGenerateColumns="False" GridLines="None"
        Skin="Windows7" OnPageIndexChanged="User_List_PageIndexChanged">
        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
        <MasterTableView EditMode="PopUp" CommandItemDisplay="Top" DataKeyNames="UserName">
            <EditFormSettings UserControlName="CustomEditControlForm.ascx" EditFormType="WebUserControl" InsertCaption="Add new user" CaptionFormatString="Edit User: {0}"
                CaptionDataField="UserName" PopUpSettings-Modal="true" />
            <Columns>
                <telerik:GridEditCommandColumn />
                <telerik:GridClientDeleteColumn />
                <telerik:GridBoundColumn DataField="UserName" ReadOnly="true" />
                <telerik:GridBoundColumn DataField="Email" />
                <telerik:GridBoundColumn DataField="LastLoginDate" ReadOnly="true" />
                <telerik:GridCheckBoxColumn DataField="IsLockedOut" />
            </Columns>
        </MasterTableView>
         <ClientSettings>
            <ClientEvents OnRowDblClick="RowDblClick" />
        </ClientSettings>
    </telerik:RadGrid>
</asp:Content>


CustomEditControlForm.ascx
<%@ Control Language="c#" Inherits="TelerikTrial.CustomEditControlForm"
    CodeFile="CustomEditControlForm.ascx.cs" %>
 
<asp:TextBox ID="TextBox1" runat="server">
</asp:TextBox>

CustomEditControlForm.ascx.cs
using System;
using System.Data;
using System.Collections;
using System.Web.UI;
using Telerik.Web.UI;
 
namespace TelerikTrial.CustomEditControlForm
{
    public partial class CustomEditControlForm : System.Web.UI.UserControl
    {
        private object _dataItem = null;
 
        public object DataItem
        {
            get
            {
                return this._dataItem;
            }
            set
            {
                this._dataItem = value;
            }
        }
         
        protected void Page_Load(object sender, System.EventArgs e)
        {
            // With just this binding the modal get stucks and the browser can't hide it...
            TextBox1.Text = DataBinder.Eval( This.Parent.NamingContainer, "DataItem.UserName").ToString();
        }
    }
}

Best Regards
Princy
Top achievements
Rank 2
 answered on 23 Feb 2011
4 answers
95 views
Hi,

I have just upgraded our application from the old Classic controls to ASP.NET Ajax and the behavior of all of our dropdowns changed as follows.  Whatever item is selected, when you click on the arrow to open the dropdown, the list automatically scrolls so that the selected item is at the very top.  The old version did not do that.  It's mildly annoying and our users may not be willing to put up with that.  Is there a setting I can change so that this doesn't happen?

Thanks,
Olga
Olga
Top achievements
Rank 1
 answered on 23 Feb 2011
10 answers
122 views
Such as in the examples in your help files: http://www.telerik.com/help/aspnet-ajax/images/DesignMode.png
msigman
Top achievements
Rank 2
 answered on 23 Feb 2011
2 answers
133 views
Hi,

I am seeing 2 loading panels when I have only specified one loading panel for one AjaxSetting: screenshot

The mark-up is:

<telerik:RadAjaxManagerProxy ID="DaveRadAjaxManagerProxy" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="DaveRadTabStrip">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="DaveRadTabStrip" LoadingPanelID="DarRadAjaxLoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<telerik:RadAjaxLoadingPanel ID="DarRadAjaxLoadingPanel"
                             Transparency="20" runat="server" Width="200px" Height="100px" BackgroundPosition="Right"
                             IsSticky="true" BackColor="Green">
    <img src='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadAjaxLoadingPanel), "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' alt="Loading panel pic" />
</telerik:RadAjaxLoadingPanel>

The RadAjaxManager on the master page is simply:

<telerik:RadAjaxManager ID="DarRadAjaxManager" runat="server">               
</telerik:RadAjaxManager>

Does anyone know why I have more than one displaying?

Cheers
David
Top achievements
Rank 1
 answered on 23 Feb 2011
1 answer
54 views
I just added the Binary image column to my grid and all items are placed at the bottom of the row, I tried setting the Item-VerticalAlign to top but it didn't work. I am attaching a screen shot so you can see what I mean.

Thanks
Daniel
Telerik team
 answered on 22 Feb 2011
1 answer
117 views
Hello,

I am able to successfully modify the CSS style for the purpose of applying a background color to any weekday but not to a weekend.

Protected Sub RadScheduler1_TimeSlotCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.TimeSlotCreatedEventArgs) Handles RadScheduler1.TimeSlotCreated
      If (DateTime.Compare(e.TimeSlot.Start.[Date], RadScheduler1.SelectedDate) = 0) Then
          e.TimeSlot.CssClass = "SelectedDate"
      End If
      If e.TimeSlot.Start.[Date].DayOfWeek = DayOfWeek.Saturday Then
          e.TimeSlot.CssClass = "SelectedDate"
      End If
End Sub

The SelectedDate receives the CSS class "SelectedDate" unless it is a weekend. Furthermore, I cannot simply apply the CSS class to the weekend. I am using x. 2010.3.1317.40.

Thanks!
Norman
Top achievements
Rank 1
 answered on 22 Feb 2011
1 answer
114 views
 
I have come across an interesting situation and was hoping you could help me out.
 
I have a rad grid with a command item in the top which allows "insert a new record". In the vb.net code, I do a response.Redirect to the page where they can create a new record. This worked fine. However, after switching to vs2010 and .net 40 (I am using telerik 2010.1.309.40), this insert new record functionality does not redirect. I get the ajax circle for a few seconds on my grid, and then the circle disappears, leaving the grid as before, without my being redirected. When I drop a simple button on the form and do the redirect from there, it works fine.
 
Any idea what is going on?
 
Thanks
 
Daniel
Daniel
Top achievements
Rank 1
 answered on 22 Feb 2011
1 answer
104 views
Hi,

My page contains 2 treeview controls.
in second treeview control i dont want to show plus minus expand images for that i found following in forum

 

div.RadTreeView .rtPlus, div.RadTreeView .rtMinus {
display: none;

 

 

}

but when i apply this css it is appying to both the treeview controls which i dont want, i want  to apply this css to second treeview control.

Thanks

Kate
Telerik team
 answered on 22 Feb 2011
1 answer
232 views
I was having a hard time creating a RadMenu that allows you to pick an item/node, collapses/closes all items, and then lists the selected item on the radmenu after it is collapsed.  The Telerik demos stay expanded after you click an item.  The trick is to set Postback="true" on the items that you want to collapse the RadMenu. When you click on the item, it renames the RadMenu main item to the item you clicked on the server side.  So do I get Telerik some points??? : )

                <telerik:RadMenu ID="RadMenu1" runat="server" ClickToOpen="true" onitemclick="RadMenu1_ItemClick"  >
                    <Items>
                        <telerik:RadMenuItem Text="Main" PostBack="false" >
                            <Items>
                                <telerik:RadMenuItem Text="Item 1" PostBack="false">
                                    <Items>
                                        <telerik:RadMenuItem  Text="Sub Item 1" PostBack="true"  ></telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenu>

(server-side code)
    protected void RadMenu1_ItemClick (object sender, RadMenuEventArgs e)
    {
        RadMenu1.Items[0].Text = e.Item.Text;
    }
Dimitar Terziev
Telerik team
 answered on 22 Feb 2011
0 answers
85 views
I have two tabs on a page; the tabs are being created with JavaScript.  The first tab displays a repeater of events, the second tab is suppose to show the month view with the events using the RadScheduler.  When you first go to the page the first tab loads fine then you click on the tab to show the RadScheduler and nothing appears - if you refresh the browser the RadScheduler appears.  Is there some kind of page load event I should add or should I preload something?  This appears to be happening in these browsers IE, Firefox and Chrome (the only ones I tested with).

Any help or advice is greatly appreciated.

Thanks!
Nicole
Nicole
Top achievements
Rank 1
 asked on 22 Feb 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?