Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
1.3K+ views

Hi,

I visited the foll link http://www.telerik.com/community/forums/aspnet-ajax/menu/radmenuitem-onclient-events-anyone.aspx and realized that there are no click events for radmenuitems.

Following is the heirarchy of my menu items i need to handle click events for


<div style="color:Black">
    <radM:RadMenu ID="RadMenu1" runat="server"  OnClientLoad="onClientLoad" EnableEmbeddedSkins="False"  Skin="Outlook"  
        OnClientItemClosing="onClientItemClosing" EnableRoundedCorners="true" OnItemClick="RadMenu1_ItemClick">
        <Items >
            <radM:RadMenuItem id = "lblWelcome" GroupSettings-Flow="Vertical">
                <Items>
                    <radM:RadMenuItem Text="SignOut" ImageUrl="../images/SignOut.gif" />
                    <radM:RadMenuItem id = "RadLanguageOptionMenu" Text="Set my language preference" ImageUrl="../images/MyProfile.gif" /> 
                                <items>
                             <radM:RadMenuItem Text="fr-FR"  /> 
                             <radM:RadMenuItem Text="en-US"  /> 

                                <items> 
                    <radM:RadMenuItem Text="My Profile" ImageUrl="../images/MyProfile.gif" GroupSettings-Flow="Vertical" />
                </Items>
            </radM:RadMenuItem>
        </Items>
    </radM:RadMenu>
</div>

1. Signout : onclicking signout it should navigate to home.aspx
2. for items (fr-FR, en-US etc) of "Select my language perference" on clicking fr-FR etc i need to display an icon besides it.


Kindly assist at your earliest.
Thank you,
Parthavi

parthavi h
Top achievements
Rank 1
 answered on 18 Oct 2010
1 answer
131 views
I have the following javascript method defined:

  function rowDropping(sender, eventArgs) {           
                var selectedRows = sender.get_masterTableView().get_selectedItems();
                for (var i = 0; i < selectedRows.length; i++) {
                    var row = selectedRows[i];
                   
                    //need to get row's index in the grid

                }
}

How can I access the index (in the source grid) of each of the selected rows?
Iana Tsolova
Telerik team
 answered on 18 Oct 2010
2 answers
182 views
Hi,

I have this following heirarchy  of menus
<div style="color:Black">
    <radM:RadMenu ID="RadMenu1" runat="server"  OnClientLoad="onClientLoad" EnableEmbeddedSkins="False"  Skin="Outlook"  
        OnClientItemClosing="onClientItemClosing" EnableRoundedCorners="true" OnItemClick="RadMenu1_ItemClick">
        <Items >
            <radM:RadMenuItem id = "lblWelcome" GroupSettings-Flow="Vertical">
                <Items>
                    <radM:RadMenuItem Text="<%$ Resources:,res:home_login_login_to_factnet%>" ImageUrl="../images/SignOut.gif" />
                    <radM:RadMenuItem id = "RadLanguageOptionMenu" Text="Set my language preference" ImageUrl="../images/MyProfile.gif" />
                        <Items>
                            <radM:RadMenuItem text = "fr-FR" />
                            <radM:RadMenuItem text = "en-US" />
                        </Items>
                    <radM:RadMenuItem Text="My Profile" ImageUrl="../images/MyProfile.gif" GroupSettings-Flow="Vertical" />
                </Items>
            </radM:RadMenuItem>
        </Items>
    </radM:RadMenu>
</div>


Need to show a 'checkmark' image besides the menuitem ('fr-FR' or 'en-US') itself, indicating that particular item is selected ; if the user clicks on 'fr-FR' or 'en-US'. And hide the image if the user clicks on another menu-item (other than the one that is selected)

Kindly assist.

Thanks,
Parthavi
parthavi h
Top achievements
Rank 1
 answered on 18 Oct 2010
3 answers
114 views
hi,


       Is it possible to set RadDatePicker day and month only constant .
But  year should be changeable . Please reply


Regards

Susha
  
susha
Top achievements
Rank 1
 answered on 18 Oct 2010
1 answer
269 views
Team,,

I'm binding Dynamically generated Datatable as a datasource to Radgrid with Autogeneratedcolumns set to True.
I need to apply a background color to a column of Radgrid at the page_load.
Is it possible?.  If possible just give me some sample code to implement.

Thanks in Advance
Princy
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
112 views
Hi,

Its possible to use a UserControl for Insert and another UserControl for Edit with Radgrid?.
Thats because i need diferent User Interface for each operation.

I hope you can help :(

Best Regards,
-Luis
Shinu
Top achievements
Rank 2
 answered on 18 Oct 2010
3 answers
146 views
Hi Folks

When using the RadComboBox control, I am getting 2 issues. The first is the large white box that sits over the combobox but only covers part of the control. The second is that the drop list is seperated from the text piece of the control.

I am experiencing this problem in IE7,m IE8 and FF3.6

Please see the attached image.
Nicole
Top achievements
Rank 1
 answered on 18 Oct 2010
2 answers
101 views

Hi,

I have a page which displays a master record and contains one or more grids which display child records. The grids use user controls for displaying the data in edit mode.

If a user saves the master record (by clicking a SAVE button) while one of the child grids is still in edit mode, I would like to save the child grids automatically, ie find out if they are in edit or insert mode, retrieve the control values from the usercontrol and call insert/update on the data model (after validation).

If the insert/update is triggered by an event (Button Click), it is handled as follows: 

  protected void RadGrid1_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)   
   {   
       
//Get the GridEditableItem of the RadGrid     
       
GridEditableItem editedItem = e.Item as GridEditableItem;  
....

What I would like to to when the master record is saved:

protected void btnSave_Click(.....)  //Save event of master record
{
...Save master record...

If (childGrid.IsInEditMode)
{
    GridEditableItem editedItem = childGrid.GetCurrentEditableItem();  //How can this be achieved
    ChildObject co = GetData(editableItem):

    if (editableItem.IsInInsertMode())  //How can this be achieved
    {
        datamodel.insert(co):
    }
    else
    {
        datamodel.update(co);
    }
}
}

Any help would be greatly appreciated.

Thanks,
Stefan

Stefan
Top achievements
Rank 1
 answered on 17 Oct 2010
3 answers
193 views
Hi,

i wanna ask if there anyway to buy Telerik Ultimate Collection for .Net for multi-developers and multi-scripts ?

Can anyone help me ?
Stuart Hemming
Top achievements
Rank 2
 answered on 17 Oct 2010
3 answers
135 views
I used RadFileExplorer (2010 Q2 SP2 v0929) to upload multiple images into a temp directory,
then I want to move the directory to another location.
Screen1

Platform: VS2010+Dev Web Server+ASP.NET 4.0.
Moving the uploaded subdir:  "D:\Items\Temp\xxx\" to "D:\Items\1\", but It occurred error:
"Access to the path 'D:\Items\Temp\xxx' is denied."

I have ensured and granted enought IO security for this operation.
Uses Unlocker tools to see what handles are hold?
Screen2

This lock will be a BIG problem for IO operation.
They are will not release the handle until the VS2010 dev web server is stopped.
I have searched Google for this lock problem, but it seems to nobody talked yet.

Paste thesimple codesnapet:
editorDirPath = string.Format("{0}/Temp/1", editorBasePath);
System.IO.Directory.CreateDirectory(this.MapPath(editorDirPath));
  
// Setting
ctrlProductPhoto.TreePaneWidth = 0;
ctrlProductPhoto.Upload.ControlObjectsVisibility = ControlObjectsVisibility.None;
ctrlProductPhoto.Upload.MaxFileInputsCount = 1;
  
// DirPath
targetDirPaths = new string[] {editorDirPath};
ctrlProductPhoto.Configuration.ViewPaths = targetDirPaths;
ctrlProductPhoto.Configuration.UploadPaths = targetDirPaths;
ctrlProductPhoto.Configuration.DeletePaths = targetDirPaths;

Please advice, thanks.
tomexou
Top achievements
Rank 1
 answered on 17 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?