Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
90 views
Looking at the demo (@ http://demos.telerik.com/aspnet-ajax/panelbar/examples/functionality/panelbarbehavior/defaultcs.aspx) it seems the default behavior of a RadPanelBar in SingleExpandedItem mode does not allow you to click on a selected (and thus expanded) item to re-collapse it.

I just watched our customer click on the bar a dozen times trying to collapse it so they could view items below more easily.... they seemed to think that bar was broken :)

I'd like to give them the expected behavior - basically exactly like how the PanelBar work in MultipleExpandedItems mode, except of course clicking on a different item collapses the currently expanded item like in SingleExpandedItem mode, so only one item at a time is displayed.


Is there any easy way to accomplish this? I was kinda of surprised it's not the default behavior, given the expand/collapse button on the right of the bar.


Thanks,
-Adam
Peter
Telerik team
 answered on 24 Oct 2011
3 answers
103 views
In my project, I use a popup to upload files. Because i have to do some codebehind calculations to see if the popup should be shown, I have to run the window like this:

 

 

 

 

 

Dim sScript As String = "radopen('FileUpload.aspx?CusID=" & lID & "', 'InfoPopup');"
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "FileUpload", sScript, True)

In the FileUpload.aspx, the user can upload files. When he does, my DB is updated with the uploaded files.
In the original page, i have a RadTreeView with all existing files in a hierarchy. This treeview is updated through codebehind, and does not have any datasource. After the fileupload window is closed, I need to refresh this list, but as far as I can tell, there is no event that is fired when the window is closed. And in the codebehind of FileUpload.aspx, i cannot make a call to update the list in the original page. How can I get my list to refresh after the upload?

Jostein
Top achievements
Rank 1
 answered on 24 Oct 2011
1 answer
126 views
Hi guys,
We are using RadEditor on one of our pages.
After clicking on Image Editor button within Image Manager of RadEditor we receive the followin error:

Any idea why it happen?

 

Server Error in '/' Application.

Could not find the specified key "ImageEditor_Reset" or class id "RadEditor.Dialogs".

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Could not find the specified key "ImageEditor_Reset" or class id "RadEditor.Dialogs".

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[ArgumentException: Could not find the specified key "ImageEditor_Reset" or class id "RadEditor.Dialogs".]
   Telerik.Sitefinity.Localization.Resource.GetString(ResourceDataProvider provider, String classId, String key, CultureInfo culture, Boolean falback, Boolean throws) +475
   Telerik.Sitefinity.Localization.Res.Get(String classId, String key, CultureInfo culture, Boolean fallback, Boolean throws) +216
   Telerik.Sitefinity.Localization.Res.Get(String classId, String key, CultureInfo culture) +44
   Telerik.Sitefinity.Localization.GlobalResourceProvider.GetObject(String resourceKey, CultureInfo culture) +74
   System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName) +23
   System.Web.HttpContext.GetGlobalResourceObject(String classKey, String resourceKey, CultureInfo culture) +26
   Telerik.Web.GlobalResourceLocator.GetString(String classKey, String resourceKey, CultureInfo culture) +39
   Telerik.Web.GlobalResourceLocator.GetString(String resourceKey, CultureInfo culture) +48
   Telerik.Web.GlobalResourceLocator.GetString(String resourceKey) +67
   Telerik.Web.LocalizationProvider.GetString(String resourceKey) +40
   Telerik.Web.LocalizationStrings.GetString(String key, Boolean throwErrorIfMissing) +137
   Telerik.Web.LocalizationStrings.GetString(String key) +47
   Telerik.Web.UI.Editor.DialogControls.DialogLocalizationStrings.InitializeDialogStrings() +247
   Telerik.Web.UI.Editor.DialogControls.DialogLocalizationStrings..ctor(LocalizationProvider localization, String dialogName, Boolean errorOnMissing) +99
   Telerik.Web.UI.Editor.DialogsStrings..ctor(LocalizationProvider localization, String dialogName, Boolean errorOnMissing) +45
   Telerik.Web.UI.Dialogs.UserControlBase.UpdateChildControls(Control currentControl) +1037
   Telerik.Web.UI.Dialogs.UserControlBase.CreateChildControls() +458
   System.Web.UI.Control.EnsureChildControls() +102
   Telerik.Web.UI.Dialogs.UserControlBase.OnInit(EventArgs e) +47
   Telerik.Web.UI.Editor.DialogControls.ImageEditorDialog.OnInit(EventArgs e) +37
   System.Web.UI.Control.InitRecursive(Control namingContainer) +140
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +197
   System.Web.UI.ControlCollection.Add(Control child) +79
   Telerik.Web.UI.DialogHandlerNoSession.AddDialogControl(Control dialogControl, DialogParameters dialogParameters) +387
   Telerik.Web.UI.DialogHandlerNoSession.LoadDialogControl() +886
   Telerik.Web.UI.DialogHandlerNoSession.CreateChildControls() +349
   System.Web.UI.Control.EnsureChildControls() +102
   Telerik.Web.UI.DialogHandlerNoSession.OnPreLoad(EventArgs e) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2099

 
[ArgumentException: Could not find the specified key "ImageEditor_Reset" or class id "RadEditor.Dialogs".] Telerik.Sitefinity.Localization.Resource.GetString(ResourceDataProvider provider, String classId, String key, CultureInfo culture, Boolean falback, Boolean throws) +475 Telerik.Sitefinity.Localization.Res.Get(String classId, String key, CultureInfo culture, Boolean fallback, Boolean throws) +216 Telerik.Sitefinity.Localization.Res.Get(String classId, String key, CultureInfo culture) +44 Telerik.Sitefinity.Localization.GlobalResourceProvider.GetObject(String resourceKey, CultureInfo culture) +74 System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName) +23 System.Web.HttpContext.GetGlobalResourceObject(String classKey, String resourceKey, CultureInfo culture) +26 Telerik.Web.GlobalResourceLocator.GetString(String classKey, String resourceKey, CultureInfo culture) +39 Telerik.Web.GlobalResourceLocator.GetString(String resourceKey, CultureInfo culture) +48 Telerik.Web.GlobalResourceLocator.GetString(String resourceKey) +67 Telerik.Web.LocalizationProvider.GetString(String resourceKey) +40 Telerik.Web.LocalizationStrings.GetString(String key, Boolean throwErrorIfMissing) +137 Telerik.Web.LocalizationStrings.GetString(String key) +47 Telerik.Web.UI.Editor.DialogControls.DialogLocalizationStrings.InitializeDialogStrings() +247 Telerik.Web.UI.Editor.DialogControls.DialogLocalizationStrings..ctor(LocalizationProvider localization, String dialogName, Boolean errorOnMissing) +99 Telerik.Web.UI.Editor.DialogsStrings..ctor(LocalizationProvider localization, String dialogName, Boolean errorOnMissing) +45 Telerik.Web.UI.Dialogs.UserControlBase.UpdateChildControls(Control currentControl) +1037 Telerik.Web.UI.Dialogs.UserControlBase.CreateChildControls() +458 System.Web.UI.Control.EnsureChildControls() +102 Telerik.Web.UI.Dialogs.UserControlBase.OnInit(EventArgs e) +47 Telerik.Web.UI.Editor.DialogControls.ImageEditorDialog.OnInit(EventArgs e) +37 System.Web.UI.Control.InitRecursive(Control namingContainer) +140 System.Web.UI.Control.AddedControl(Control control, Int32 index) +197 System.Web.UI.ControlCollection.Add(Control child) +79 Telerik.Web.UI.DialogHandlerNoSession.AddDialogControl(Control dialogControl, DialogParameters dialogParameters) +387 Telerik.Web.UI.DialogHandlerNoSession.LoadDialogControl() +886 Telerik.Web.UI.DialogHandlerNoSession.CreateChildControls() +349 System.Web.UI.Control.EnsureChildControls() +102 Telerik.Web.UI.DialogHandlerNoSession.OnPreLoad(EventArgs e) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2099 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

Rumen
Telerik team
 answered on 24 Oct 2011
1 answer
148 views
Hi Telerik Team,

I there is any way to create Avatars in the ASP.net using the telerik.
      

My requirement is as follows:
1) 
 In my Web Page I have link when user clicks the link, user should able to upload his desired image and create a simple avatar for it and at finally when user ends with creation of the Avatar and click on the submit, I should be able to save it in the database.
2) 
 So that when the user visits the page next time, he should be able to see avatar that he has previously designed.
3)
  Will you please tell me where can I get the API or sample code that can be used in the c#.net.
Please help me in doing this, it’s very Urgent.

Thanks & Regards

--------------------------------------------------------

Aravinda Chary N

Manamai

Sebastian
Telerik team
 answered on 24 Oct 2011
1 answer
124 views

Hi all,

 How to  avoid postback on the Click event of  RadTreeList Expand (+) ,collapse (-) button?

Thanks
Sindu
Princy
Top achievements
Rank 2
 answered on 24 Oct 2011
1 answer
318 views
Hi Admin/Moderator ,

I have recently converted By Web Application from ASP.Net 2.0 to Asp.Net 3.5 to use the Telerik Version 2011.I have used the Telerik Version 2008 previously.After conversion the Ajax Version also converted from 1.0 to 3.5But getting the following error during application debugging.
Microsoft JScript runtime error: Unable to get value of the property 'PageRequestManager': object is null or undefined
I have used the property 'PageRequestManager in the Splitter control of Telerik Version 2008.
Could you please reply a solution?

Thanks,
Tinoy
Dobromir
Telerik team
 answered on 24 Oct 2011
3 answers
140 views

         When i used ajax modal pop up extender in radschedule, calander and dropdownlist in RadSchedulerRecurrenceEditor is  going beyond the pop up. Please find attached to under stand my problem as much as clearly.
Ivana
Telerik team
 answered on 24 Oct 2011
2 answers
190 views
Hi All

I have a basic Grid with 13 bound cols, based on value at databound I want to change the text in the cell. 

if (e.Item is GridDataItem)
          {
              StockPurchasingVehicle v = (StockPurchasingVehicle)e.Item.DataItem;
              GridDataItem item = (GridDataItem)e.Item;
 
              if (v.OffHireDate == DateTime.MinValue)
              {
                  item.Cells[6].Text = "";
              }
          }

my "OffHireDate" should be index my 4th column, however 6 is the correct index, this seems to be the same for all columns, i.e first index Cells[0] is actually Cells[2].??

I have no hidden cols, or templates.  Not sure how it is counting index, should i use Column Name to access it? rather than index.

Thanks


Sebastian
Telerik team
 answered on 24 Oct 2011
1 answer
196 views
I am having a problem when I hover off the selected tab, it reverts to the standard, non-selected css class.  When the page loads the selected tab has a yellow background image, the other tabs have a blue background.  When I hover over the selected tab it remains yellow, when I move the mouse off the selected tab (hover off) its background becomes blue.

Here's the code:

Code behind:
RadTab tab = new RadTab();
                tabStripMain.Tabs.Add(tab);
 
                switch (myswitch)
                {
                    case 1:
                         tab.Text = node.SelectSingleNode("TAB_TITLE").ChildNodes[0].Value;
                         tab.Font.Size = 12;
                         tab.CssClass = "results_tab_off";
                         tab.SelectedCssClass = "results_tab_on";
                         tab.HoveredCssClass = "results_tab_on";
break;
                    default:
                        tabStripMain.EnableEmbeddedSkins = true;
                        tabStripMain.Skin = "Outlook";
                    break;
 
                }

And the css:

.results_tab_off
{
    background:white url(/images/medica/results_tab_off.png) no-repeat 0 100%;
    height: 40px;
    width: 211px;
    color: White;
    padding: 10px 0px 0px 0px !important;
    text-align: left !important;
    border-left: 1px solid white;
}
 
.results_tab_on
{
    background:white url(/images/medica/results_tab_on.png) no-repeat 0 100%;
    height: 40px;
    width: 211px;
    color: #999;
    padding: 10px 0px 0px 0px !important;
    text-align: left !important;
    border-left: 1px solid white;
}
 
.RadTabStrip .rtsTxt {
   padding-left: 5px !important;
   padding-top: 13px !important;
Kate
Telerik team
 answered on 24 Oct 2011
1 answer
136 views
Hi,
 We have two different IIS 6 servers (Windows 2003 sp2) serving the same website with one page being different. In the site having the non-telerik version we typically see 500-600 MB of memory usage by the w3wp process. In the telerik radajax control server the memory load is around 700 mb. All other parameters are same between the servers including the load distribution. I was wondering if its common for the telerik controls to boost memory usage on the server and if anyone else is experiencing that? The page uses the RadAjaxManager along with the rad nav bar and the radgrid.

Thanks,
Ximor.
Maria Ilieva
Telerik team
 answered on 24 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?