Telerik Forums
UI for Silverlight Forum
1 answer
89 views
I understand that the focus is defaulted to the OK button for the Confirm dialog (Silverlight RadWindows.Confirm). I want to set focus on the second button (Cancel) but could not get to work.  I played with DefaultPromptResultValue. Is it possible? Thanks.
Kalin
Telerik team
 answered on 13 Aug 2013
8 answers
81 views
When I close or ok my Confirm window I get this error.  If I step through it, it doesn't do it, probably because of timing.
I only noticed this on the latest internal build.

EDIT:
I can confirm, that I went back to the old internal build, and I didn't get this error.  Version 2013.1.220.1050 is ok.  
Versoin 2013.1.403.1050 is broken.  
Of note, I'm opening up this confirm message on a RadWindow.

This is very hard to debug because Visual Studio wasn't able to catch this error in try/catch.
Alek
Telerik team
 answered on 24 Jul 2013
6 answers
98 views

I have used telerik RadWindow and telerik RadMenu in silverlight 4 application and  Telerik RadControls for Silverlight Q1 2010 SP1 having Version- 10.2.4.22..

RadWindow contains Html content (i.e. .aspx page) using RadHtmlPlaceHolder.
When RadWindow is opened and I hover over RadMenu control Html content of RadWindow  overlaps over RadMenuItem's dropdowncontainer.

Is there anyway to overcome this issue.
I have attached a screen shot which explains better..

Kindly do the needful.

Thanks & regards
Pradeep

Miroslav Nedyalkov
Telerik team
 answered on 04 Jul 2013
2 answers
46 views
How to set RadWindow is alway maximized? My code for radwindow is following: ResizeMode="NoResize" CanClose="False" CanMove="False" WindowState="Maximized" -> but when i drag the header of RadWindow, it has been resized.
do
Top achievements
Rank 1
 answered on 01 Jul 2013
16 answers
193 views
Dear all,
I use radwindow on my silverlight application to show data from the users.
i use these code to create new windows.

 

OnClick...
{

RadWindow RadWindow_tmp = new RadWindow ();
RadWindow_tmp.Show();
Object RadWindow_tmp_Content = new Object();
RadWindow_tmp_Content = new uc_Employee("test", 7);
RadWindow_tmp.Content = RadWindow_tmp_Content;

RadWindow_tmp_Content =null;//no need for these line

}

 

when i close the window
i make the following
i make ( before GC.Collect();)

RadWindow MainRadWindow = RadWindow.GetParentRadWindow(this);        
(MainRadWindow.Content as uc_Employee).DataContext = null;
 MainRadWindow.Content = null;

alos i call "GC" (alos i use a timer to call it)

GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();

 

I also use WeakReference to see is the control and the radwindow isAlive.

after i close the window the radwindow is not on the memory
but the control "uc_Employee" still on the memory

on these case after several time the user open new radwindow the application also the computer crash.
please i need some help how i can release the control from the memory.
Is these bug on silverlight4. how i can solve the till we get SL5.

best regards.

Miroslav Nedyalkov
Telerik team
 answered on 05 Jun 2013
0 answers
48 views
A web application's Modal Radwindow Popup, when user right clicks anywhere on the radwindow or on the grayed-out background the context menu of the window behind the popup appears. I have a working fix for right now, but there must be a cleaner way to either make the popup truely modal or to disable the context menu of the parent page when the radwindow popup is up.

Thanks for the help in advance.


public void ShowPopup(string title, FrameworkElement content, double x,
double y, double width, double height, string instanceName,
bool isModal, EventHandler<WindowClosedEventArgs> closedEvent)
{
            if (isModal) { currentPopup = instanceName; }
            PopupRadWindow popupWindow;
            if (popUpWindowDictionary.ContainsKey(instanceName))
            {
                popupWindow = popUpWindowDictionary[instanceName];
                if (popupWindow != null)
                {
                    popupWindow.Close();
                    popUpWindowDictionary.Remove(instanceName);
                }
            }
            Visibility userAccessButtonVisibility = Visibility.Collapsed;
            string moduleName = string.Empty;
            bool enblePermissionEdit = bool.Parse(ServiceProvider.Instance.InitParameters[ParameterNames.EnablePermissionEdit]);
            if (content is PopupModuleContent)
            {
                PopupModuleContent pc = content as PopupModuleContent;
                if (USER_ACCESS_VIEW_NAME != pc.ModuleName && enblePermissionEdit)
                {
                    userAccessButtonVisibility = Visibility.Visible;
                    moduleName = pc.ModuleName;
                    AddParameter(ParameterNames.SilverlightModuleName, moduleName);
                }
            }
            else if (USER_ACCESS_VIEW_NAME != GetModuleName(content) && enblePermissionEdit)
            {
                userAccessButtonVisibility = Visibility.Visible;
                moduleName = GetModuleName(content);
                AddParameter(ParameterNames.SilverlightModuleName, moduleName);
            }
 
            if (RegionManager.Regions[RegionNames.MainRegion] != null
                || RegionManager.Regions[RegionNames.MainRegion].ActiveViews.FirstOrDefault() != null)
            {
                ViewBase vb = RegionManager.Regions[RegionNames.MainRegion].ActiveViews.FirstOrDefault() as ViewBase;
                if (vb != null)
                    AddParameter(ParameterNames.CurrentPageName, vb.PageName);
            }
 
            popupWindow = new PopupRadWindow(userAccessButtonVisibility);
             
            if (closedEvent != null)
            {
                popupWindow.Closed += closedEvent;
            }
 
            if (content is PopupModuleContent)
            {
                PopupModuleContent popupModuleContent = (PopupModuleContent)content;
                if (popupModuleContent.ContentControl != null &&
                    popupModuleContent.ContentControl.Content is IPopupContent)
                {
                    IPopupContent iPopupContent = (IPopupContent)popupModuleContent.ContentControl.Content;
                    iPopupContent.OKButtonClicked += delegate { popupWindow.DialogResult = true;popupWindow.Close(); };
                    iPopupContent.CancelButtonClicked += delegate { popupWindow.DialogResult = false; popupWindow.Close(); };
                }
            }
 
            popupWindow.IsShowModal = isModal;
            popUpWindowDictionary.Add(instanceName, popupWindow);
            if (content is PopupModuleContent)
            {
                popupWindow.ModuleName = moduleName;
            }
            popupWindow.Show(title, content, x, y, width, height);
}
Matthew
Top achievements
Rank 1
 asked on 30 May 2013
0 answers
39 views
Hi,

In my application I am using Rad Window for Multiple purpose.Here I describe Steps  process and let me know how to solve this issues.
1. In my home  page I am having One button. 
2. Now Click the button.
3. Show The Messagebox and Click ok means Open page2.Here I am writing parallel code process means

Page1
----------
Private sub btn_Click()
ABC()
A.ShowDialog()
END SUB

ChilcClass()
-----------------
Sub ABC()
Messagebox.Show("Testing")
EndSub

Now I customize MessageBox into MsgBox (Using Rad Window).Now If Again Am doing the same steps ( Above i have mentioned) 
1. In my home  page I am having One button. 
2. Now Click the button.
3. Show Messagebox and Open page2.Now MessageBox is Behind of Page2. If I close the Page 2 means we can able to see the Messagebox.Here I want to set Always Top for MsgBox (Rad Window).

Purushothaman
Top achievements
Rank 2
 asked on 21 May 2013
2 answers
48 views
I am trying to render a 3d scene inside a RadWindow. But the draw event of the DrawingSurface is not getting called. where as the same code inside an usercontrol works. So Is it a bug in RadWindow that we cannot render 3d scene within a RadWindow?
Renien
Top achievements
Rank 1
 answered on 17 May 2013
7 answers
43 views
Hi,

I recently upgrade from 2012 Q2 SP1 version to current version (2013 Q1 SP1). After the upgrade, RadConfirm Accept/Cancel buttons appear disabled whenever a dialog is shown.

Does anybody faced this same issue and can share a workaround? It's a bit urgent as Test Team may not perform their tasks...

Thanks
George
Telerik team
 answered on 09 May 2013
2 answers
141 views
 
Simply put, if two (non-modal) RadWindows are open, and one does not have focus, I have to click on that one's RadButton twice to trigger a click event. 
 
Apparently when the non-focused window is clicked, it eats the click event and does not pass it to the buttons. 
 
However, what is weird is that this only goes wrong for *some* controls.  For example, Silverlight radio buttons and ListBoxes only need one click to work.
 
Can this be solved?  This problem tricks our users into thinking they've clicked on buttons when they really haven't, causing big mistakes in input. 
 
Thanks,
John
 
 
Vladi
Telerik team
 answered on 09 May 2013
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?