This is a migrated thread and some comments may be shown as answers.

Telerik Navigation Click event error. Anyone Plzzz?

1 Answer 81 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
KARAN
Top achievements
Rank 1
KARAN asked on 05 Mar 2012, 01:55 PM
Hiiii...Anyone please ?

Sorry for my bad English,  Telerik tools are good to use and satisfy clients 100%..Thank you to Telerik .

I have a small issue regarding telerik Rad Menu item Click event, but a valuable issue.
My issue is, We are using Telerik tools in silverlight project,. We have two windows are process explorer window, property window. That both window's hide and visible check controls are in VIEW Main Menu control. The VIEW menu have two Menu items like Process, property items .

If I first check the property menu in VIEW main menu, property window will open in right side at first time itself. But, If I click the Process menu ,the process window won't open separately in right side at first time. Then again if I click  Process menu, it will open the Process  window separately in right side.

My question is , Why the OnCreateProcessexplorerWindow_Click event is not fire at first time itself. ??
What is the solution for this to open window without clicking it again ??

Kindly help me for this and reply me as soon as possible. For clear information please look at images below.

*****************************************************************************************************************************************************************************
.xaml code :-

  <telerikNavigation:RadMenuItem Header="View" >             
                    <telerikNavigation:RadMenuItem Header="Properties           F8 " Click="OnCreatePropertiesWindow_Click" x:Name="miProperties">
                    </telerikNavigation:RadMenuItem>
                    <telerikNavigation:RadMenuItem Header="Process Explorer   F9" Click="OnCreateProcessexplorerWindow_Click" x:Name="miProcessExplorer">
                    </telerikNavigation:RadMenuItem>
                    <telerikNavigation:RadMenuItem Header="Startup" Click="Onstartup_Click" x:Name="mistartup">
                    </telerikNavigation:RadMenuItem>
                    <telerikNavigation:RadMenuItem IsSeparator="True">
                    </telerikNavigation:RadMenuItem>
 </telerikNavigation:RadMenuItem>
*****************************************************************************************************************************************************************************
.xaml.cs code :-

      private void OnCreatePropertiesWindow_Click(object sender, RadRoutedEventArgs e)
        {
            CreatePropertiesPanel();
        }

        private void OnCreateProcessexplorerWindow_Click(object sender, RadRoutedEventArgs e)
        {
            CreateProcessExplorerPanel(!string.IsNullOrEmpty(_connectionString));
        }
  private void CreateProcessExplorerPanel(bool refreshImmediatly)
        {
            if (_processExplorerRadPane == null)
            {
                _processExplorerRadPane = new RadPane();
                _processExplorerRadPane.Header = HEADER_PROCESSEXPLORER;
                _processView = new ProcessView();
                _processExplorerRadPane.Content = _processView;
                _processPresentationModel = new ProcessPresentationModel(_processView, _statusBarPresentationModel.InitialCatalog, refreshImmediatly);
                _processPresentationModel.OpenProcess += new EventHandler<EventArgs<Ganges.DataContract.Process>>(ProcessModel_OpenProcess);
                _processPresentationModel.NewProcessCreated += new EventHandler<EventArgs<Ganges.DataContract.Process>>(model_NewProcessCreated);
                _processPresentationModel.DeleteSelectedProcess += new EventHandler<EventArgs<Ganges.DataContract.Process>>(model_DeleteSelectedProcess);
                _processPresentationModel.GetNumberOldVersionProcess += new EventHandler<EventArgs<int>>(model_GetNumberOldVersionProcess);
                PropertiesGroup.AddItem(_processExplorerRadPane, DockPosition.Top);
                //miProcessExplorer.IsChecked = IsolatedStorageHelper.ProcessWindowVisible;
                //_processExplorerRadPane.IsHidden = IsolatedStorageHelper.ProcessWindowVisible;
                miProcessExplorer.IsChecked = true;
                _processExplorerRadPane.IsHidden = true;
                //_processExplorerRadPane.IsHidden = !IsolatedStorageHelper.ProcessWindowVisible; //archer code preventing processexplorer to show
                //TODO: restore (Test crash new diagram)
                _processPresentationModel.GetListOfObjects += new EventHandler<EventArgs<int>>(Model_GetListOfObjects);
                _processExplorerRadPane.CanDockInDocumentHost = true;
            }
            else
            {
                if (_processExplorerRadPane.IsHidden)
                {
                    _processExplorerRadPane.IsHidden = false;
                    miProcessExplorer.IsChecked = true;
                    IsolatedStorageHelper.ProcessWindowVisible = true;
                }
                else
                {
                    _processExplorerRadPane.IsHidden = true;
                    miProcessExplorer.IsChecked = false;
                    IsolatedStorageHelper.ProcessWindowVisible = false;
                }
            }
        }

For additional information please look at images below.

Thanks,
PRABAKARAN G.

1 Answer, 1 is accepted

Sort by
0
KARAN
Top achievements
Rank 1
answered on 06 Mar 2012, 09:13 AM
Hii..

I resolved it myself. Kindly forgive me for this small issue.

Thank you,
PRABAKARAN G.
Tags
Menu
Asked by
KARAN
Top achievements
Rank 1
Answers by
KARAN
Top achievements
Rank 1
Share this question
or