Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
Hi,
I am setting Top and left properties of the ajax rad window in the following way

<radw:RadWindow runat="server" NavigateUrl="CandidateReportAdvancedOptions.aspx" ReloadOnShow="true" ID="RadWindow3" SkinsPath="~/RadControls/Window/Skins" Top="500"   Left="10000" Title="Candidate Report Advanced Options" Height="250px" Width="400px" Modal="True" VisibleStatusbar="False" Behavior="Close" ></radw:RadWindow>

and I am unable to see any change in the position of the rad window with or without the left and top properties.

Am I missing anything here.

Please suggest.

Thanks in Advance.
Vidyasagar

Georgi Tunev
Telerik team
 answered on 29 Oct 2009
4 answers
201 views
I have a simple RadGrid bound to a business object. When I Add or Edit with the Automatic PopUp, I can not get the new / updated value from the PopUp window.

The Grid is setup with the following:
        <telerik:RadGrid ID="LocationGrid" runat="server" Skin="Web20" OnDeleteCommand="OnLocationDelete" 
            OnInsertCommand="OnLocationInsert" OnItemDeleted="OnLocationItemDeleted" OnItemInserted="OnLocationItemInserted" 
            OnItemUpdated="OnLocationItemUpdated" OnNeedDataSource="OnNeedDataSource"  
            OnUpdateCommand="OnLocationUpdate" ShowStatusBar="True"  
            AutoGenerateColumns="False" GridLines="None" onitemcommand="OnItemCommand"> 
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <MasterTableView EditMode="PopUp" CommandItemDisplay="Top"> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="ID" UniqueName="colID" Visible="false" DataType="System.Int32"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Description" UniqueName="colDescription" HeaderText="Description"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="colDelete" HeaderText="Delete"> 
                    </telerik:GridButtonColumn> 
                    <telerik:GridButtonColumn CommandName="Edit" Text="Edit" UniqueName="colEdit" HeaderText="Edit"> 
                    </telerik:GridButtonColumn> 
                </Columns> 
                <EditFormSettings CaptionFormatString="Edit Location" /> 
            </MasterTableView> 
        </telerik:RadGrid> 
 

I am binding to a simple business object with the following code:
        private List<Location> LocationList  
        { 
            get 
            { 
                return Session["LocationList"] as List<Location>; 
            } 
            set 
            { 
                Session["LocationList"] = value; 
            } 
        } 
 
        private void BuildInitialList() 
        { 
            LocationList = new List<Location> 
                { 
                    new Location() {ID = 1, Description = "Some Location"}, 
                    new Location() {ID = 2, Description = "Some Other Location"}, 
                }; 
        } 
 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!Page.IsPostBack) 
                BuildInitialList(); 
            LocationGrid.DataSource = LocationList; 
            LocationGrid.DataBind(); 
        } 
 

When I click on Edit for one of the values, I am able to change the existing value for the description, but both methods for retrieving the new value in the code below return the old value:
protected void OnLocationUpdate(object source, Telerik.Web.UI.GridCommandEventArgs e) 
{ 
    GridEditableItem item = e.Item as GridEditableItem; 
     
    // Description is the old value 
    string Description = (item["colDescription"].Controls[0] as TextBox).Text; 
 
    // values["Description"] is the old value 
    Dictionary<string, string> values = new Dictionary<string, string>(); 
    item.ExtractValues(values); 
} 
 

Any ideas?






Akber Ali
Top achievements
Rank 1
 answered on 29 Oct 2009
2 answers
110 views
I need to simulate a new appointment insert by clicking on a button that is outside of RadScheduler control?

I have advanced Insert/Edit templete. Tried  showInsertFormAt, but for some reasons id did not display Advanced insert form.

Thank you!
Andrei Palvinski
Top achievements
Rank 1
 answered on 29 Oct 2009
2 answers
86 views
Hi

Status or title bar of an open window only shows when the window is minimized.
Is this really implemented this way unlike the older versions or is there a way to achieve the same by tweaking properties and workarounds?

Please help.

Thanks

Mark
mac-mac
Top achievements
Rank 1
 answered on 29 Oct 2009
3 answers
143 views
In general I am frustrated with the documentation and exmples for Telerik Rad Control especially the grid.  Most examples are too trivial and explore only basic stuff but when the detail comes, I may be spending hours on trying to find the right way to solve the issue.
 That is very unproductive.

Anyway, right now I am trying to solve a simple thing.  I am using "InPlace" editing in the grid and a simple GridBoundColumn.  When switched to the edit mode, the edit box size is much smaller the the width of my column.  How do I control this in ASPX file?

 

Hugo Furth
Top achievements
Rank 1
 answered on 28 Oct 2009
1 answer
72 views
How can i make the child item have transparent background when it is drop down?

Can anyone show to way to do it?

I have try to set the css

.rmItem
{
    background:transparent;
}

but it din't show any effect.
Schlurk
Top achievements
Rank 2
 answered on 28 Oct 2009
10 answers
311 views
I am trying to set the focus on a field in my PopUp edit form template using the below example from the documentation. The problem is that MyUserControl is equal to Nothing since it seems that "EditFormControl" is not being found in e.Item.FindControl(GridEditFormItem.EditFormUserControlID).

Anyone have an idea of why Dim MyUserControl As UserControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) is not being found?


Protected Sub RadGrid1_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs)
   If TypeOf e.Item Is GridEditFormItem And e.Item.IsInEditMode Then
      Dim MyUserControl As UserControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) 
      RadGrid1.Controls.Add( New LiteralControl(String.Format( "<script type='text/javascript'>document.getElementById('{0}').focus();document.getElementById('{0}').select();</script>", MyUserControl.FindControl("txtFirstName").ClientID)))
   End If
End Sub

Wyatt
Top achievements
Rank 1
 answered on 28 Oct 2009
6 answers
188 views

Hi there,

I'm testing ASP.NET AJAX UI Controls and specially the DatePicker.  I have two Date Pickers in a web user control. Then I have a content page onto which I place the aforementioned web user control. As you might guess this last content page has its master page. So the hierarchy is as follows

master page
   content page
      web user control (this one has the 2 date pickers)

Question:
Why when I want to access my web page, I see both date pickers rendered but as soon as I clic on the date icon a JavaScript error shows in the left-lower browser's corner. I've been investigating the reason for this with no success :-(..

Please if some one could shed some light on this (show some code example).
Felix

Felix Ruben Melendez Batres
Top achievements
Rank 1
 answered on 28 Oct 2009
2 answers
143 views
I need to set the width of the hours column.  When I use any Skin the hours are chopped in half vertically.

It's the column that gets displayed if you have ShowHoursColumn set to true.

Thanks.
Piotr
Top achievements
Rank 1
 answered on 28 Oct 2009
3 answers
118 views
Hi,

I am having issues on a custom user control.  It ONLY occurs on machines with Windows Vista and works fine on machines with Windows XP.  There are 2 issues I am facing

1.  When the mouse hover on any RadMenu, the menu gets highlighted.  For instance, the user control has 5 menu items, as I'm moving the mouse over to each one, all five get highlighted.  The same behavior with Radtabstrip as well. 
2.  On the RadGridView, when I click on any rows after the grid is loaded, the row selected does not get highlighted, there's no background color, the only thing shown was a box with color border without background color filled.  However, when the grid first loaded, the grid shows first row selected and highlighted correctly.

I also have another issue, this one is not Windows operating system specific and also on an user control.  Radmenu does not close properly.  For instance, my menu has 5 menu items, when I click on the memu, all 5 menu items appears.  However, if I click on anywhere else on the screen, the menu does not close itself.  The only way it would close is to click on the menu itself again.

Please let me know what needs to be done to resolve these issues.

Thanks


Martin Vasilev
Telerik team
 answered on 28 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?