Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
141 views
Hi - I have a raddock that is not retaining its state after a postback.
Scenario: I expand the dock, do some operation that triggers a postback, and when the page loads again, the dock is collapsed.
Expected: I want the dock to retain state, and load expanded.

I was using rad controls version 2009.1.402.20 and this was behaving fine. I'm currently updating to version 2011.3.1115.35 and I'm facing this problem.

Here's a sample of the code that I'm using -

<telerik:RadDockLayout runat="server" ID="[DUMMYID-1]">
    <telerik:RadDockZone runat="server" ID="[DUMMYID-2]" Orientation="vertical" Skin="Vista" Width="99.7%">
        <telerik:RadDock runat="server" ID="[DUMMYID-3]Title="More"
            Style="min-height0pxmargin0px autovisibilityhidden;" Collapsed="true"
            DefaultCommands="ExpandCollapse" Skin="Vista" EnableDrag="false"
            DockHandle="None" Width="99.5%" BorderStyle="None">
            <ContentTemplate>
             ...... [some code here]
            </ContentTemplate>
    </telerik:RadDock>
</telerik:RadDockZone>

I tried adding the following to the raddocklayout attributes but this doesn't help. 
EnableViewState="true" StoreLayoutInViewState="true"

Appreciate any help. Thanks.

ps: Also if you could point to me some documentation that would help me migrate from older version to newer version of rad controls for asp.net ajax.
Slav
Telerik team
 answered on 21 Dec 2011
1 answer
156 views
I would like to see RadAlert on top of radwindow modal window and not inside. Is this possible?
Z-index and css overriding was already tried.
Princy
Top achievements
Rank 2
 answered on 21 Dec 2011
1 answer
90 views
radajaxmanager q2 2011 update old versions controls ?

hello sir im using rade ajaxmanger in my project  now i update my old version of radajax with New ajaxcontrol that is q2 2011 .
my question is that ajaxmanager is update the oldcontrols in the updatecontrol tag.
does it update the oldversion of controls in update controls ?

<rada:radajaxmanager id="RadAjaxManager1" runat="server">

<AjaxSettings>

<rada:AjaxSetting AjaxControlID="cboCategory">

<UpdatedControls>

<rada:AjaxUpdatedControl ControlID="cboOffice"/></UpdatedControls>  its my old ajaxcontrol code

nw i replace this with my new version ajax
<telerik:radajaxmanager id="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="cboCategory">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="cboOffice"/>

 

</UpdatedControls>

so that gives error so please tell me the solution for that

Mira
Telerik team
 answered on 21 Dec 2011
6 answers
524 views
Hi!
I have a general problem when binding my data to a grid and getting all functionality to work smoothly without to much hands on.

What I do is that I have data that I want to display and use built in functionality like sorting, filtering and grouping.
My data is not always in a presentable shape so I need to format the data output before presenting it in a column. This is not a problem since I can use templates or FormatDataValue in a derived GridBoundColumn. The problem is that the sorting, filtering and grouping will not work without lot's of specific coding.

I would like to find out a way to in one place (like a derived GridBoundColumn) take care of the conversion/presentation of the data value in a way that it will more or less automatically be mirrored in filtering, sorting and grouping.

As an example I sometimes store time as an integer for minutes. When showing the data value I convert it to "mm:ss". The problem is now that the GroupHeaderItem is showing the integer and the filter box is working with the integer as well.

Any suggestions on how to solve this in a generic way?

Thanks
Mats
Veli
Telerik team
 answered on 21 Dec 2011
0 answers
52 views
Hi,

In a ContextMenu how do I make this:

- Show only "Group" option when the column is ungrouped (not for all the column, just for the column that is ungrouped).

- Show only "Ungroup" option when the column is grouped.

 

 

I tried this:

But this hides both (group/ungroup options)
void HeaderContextMenu_GroupsChanging(object sender, GridGroupsChangingEventArgs e)
{
    if (e.Action == GridGroupsChangingAction.Group)
            this.MasterTableView.GetColumn(e.Expression.GroupByFields[0].FieldName).Groupable = ...;
    else if (e.Action == GridGroupsChangingAction.Ungroup)
        this.MasterTableView.GetColumnSafe(e.Expression.GroupByFields[0].FieldName).Groupable = ...;
}

Any help?
Borralis
Top achievements
Rank 1
 asked on 21 Dec 2011
4 answers
94 views
Hi,

I need to select a combobox item programatically via javascript.

This does not work for an auto complete combo box which get its items from a web service:

ddlDriverA.trackChanges();
            var item = ddlDriverA.findItemByValue(driverName);
            item.select();
            ddlDriverA.commitChanges();

I'm working with version 2011.1.413.40
I tried several options with no luck...
Ivana
Telerik team
 answered on 21 Dec 2011
1 answer
80 views
Hi,

I have a RadPanelBar in a RadPane which is part of a Rad Splitter.  I have one vertical splitter, thus one left pane and one right pane.  The panel bar is in the left pane and should resize to maintain the width of the left pane as the left pane resizes.

In my attempt to accomplish this, I have caught the OnClientBeforeResize event on the RadPane.  I then set the width of the PanelBar accordingly.  I have used the http://www.telerik.com/help/aspnet-ajax/panelbar-resize-to-the-width-of-the-widest-radpanelitem.html for guidance.  I try to retrieve the current width of the bar then add the value from args.get_delta() on the BeforeResize event but I am not getting any joy here since panelBar.width() returns null and panelbar.width(500) (for example) simply doesn't resize the bar.

This is in IE8 and I notice that the documentation guidance linked to above specifically tests for IE6 and IE7.

Please help!

Thanks

function RadPaneMainNavigation_OnClientBeforeResize(sender, Args) {
    alert(Args.get_delta());
    var panel = $telerik.$("<%= PanelBarNavigation.ClientID %>");
    alert(panel.width());
    panel.width(500);
}

Kate
Telerik team
 answered on 21 Dec 2011
3 answers
291 views
Panel and Data below, some where I read that the root must have null values so I wrote a stored proc to convert the root ParentIDs to nulls (please see below)
But I still get the error '

These columns don't currently have unique values. '

<

 

 

telerik:RadPanelBar ID="RadPanelBar1" runat="server" Height="600px"

 

 

 

Width="200px" ExpandMode="FullExpandedItem"

 

 

 

DataFieldID="LectureID"

 

 

 

DataFieldParentID="SectionID"

 

 

 

DataSourceID="SqlDataSource1" DataTextField="Name">

 

</

 

 

telerik:RadPanelBar>

 

SectionID LectureID label LecturesID Name
NULL 1 NULL 329 1:1
NULL 2 NULL 330 1:2
NULL 3 NULL 331 1:3
NULL 4 NULL 332 1:4
NULL 5 NULL 333 1:5
NULL 6 NULL 334 1:6
NULL 7 NULL 335 1:7
NULL 8 NULL 336 1:8
NULL 9 NULL 337 1:9
NULL 10 NULL 338 1:10
NULL 11 NULL 339 1:11
NULL 12 NULL 340 1:12
2 1 NULL 341 2:1
2 2 NULL 342 2:2
2 3 NULL 343 2:3
2 4 NULL 344 2:4
2 5 NULL 345 2:5
2 6 NULL 346 2:6
2 7 NULL 347 2:7
3 1 NULL 348 3:1
3 2 NULL 349 3:2
3 3 NULL 350 3:3
3 4 NULL 351 3:4
3 5 NULL 352 3:5
4 1 NULL 353 4:1
4 2 NULL 354 4:2
4 3 NULL 355 4:3
4 4 NULL 356 4:4
4 5 NULL 357 4:5
4 6 NULL 358 4:6
4 7 NULL 359 4:7
4 8 NULL 360 4:8
4 9 NULL 361 4:9
4 10 NULL 362 4:10
4 11 NULL 363 4:11
4 12 NULL 364 4:12
5 1 NULL 365 5:1
5 2 NULL 366 5:2
5 3 NULL 367 5:3
5 4 NULL 368 5:4
5 5 NULL 369 5:5
6 1 NULL 370 6:1
6 2 NULL 371 6:2
6 3 NULL 372 6:3
6 4 NULL 373 6:4
6 5 NULL 2602 6:5
Kate
Telerik team
 answered on 21 Dec 2011
5 answers
317 views
I have been working on this for two days and cannot get passed this error message when working with the RadFileExplorer.
I have read almost every post I can find on this topic.
The issue is after setting the viewpaths and uploadpaths, the RadFileExplorer displays the data just find. But when I click on the refresh button, I get the error "Invalid Characters in Folder Name". I also get this error If I try to programmatically set the path after a click event somewhere else on the page. 

Do I need to set the initial path attribute? Any value I set seems to result in the same error. Please help me find a fix for this. I am using version 2010.2.836.35, but also tried version 2010.3.1109.35

My code is very similar to the example posted at this link:

http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx

Any help is appreciated.

I have also tried the fix recommend here: http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/change-initialpath-not-working.aspx

...but to no avail.....
Marin Bratanov
Telerik team
 answered on 21 Dec 2011
7 answers
144 views

Hi, i have problem with RadUpload control version 2011.1.519.35. In SharePoint 2010 progress bar don't increase when i using yours sample code in my WebPart. I have registered the RadUploadProgressHandler etc.

My code:

<telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
 
<telerik:RadUpload ID="RadUpload1" runat="server" MaxFileSize="100000000" >
</telerik:RadUpload>
 
<telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="True" >
</telerik:RadProgressArea>
 
<asp:Button ID="Button1" runat="server" Text="Upload" onclick="Button1_Click">
</asp:Button>

and

protected void Page_Load(object sender, EventArgs e)
{
 if (!IsPostBack)
 {
  RadProgressArea1.ProgressIndicators &= ~ProgressIndicators.SelectedFilesCount;
 }
 RadProgressArea1.Localization.UploadedFiles = "Completed Steps: ";
 RadProgressArea1.Localization.CurrentFileName = "Step: ";
 RadProgressArea1.Localization.TotalFiles = "Total Steps:";
}
   
protected void Button1_Click(object sender, EventArgs e)
{
 UpdateProgressContext();
}
 
private void UpdateProgressContext()
{
 const int total = 100;
 
 RadProgressContext progress = RadProgressContext.Current;
 progress.Speed = "N/A";
 
 for (int i = 0; i < total; i++)
 {
  progress.PrimaryTotal = 1;
  progress.PrimaryValue = 1;
  progress.PrimaryPercent = 100;
 
  progress.SecondaryTotal = total;
  progress.SecondaryValue = i;
  progress.SecondaryPercent = i;
 
  progress.CurrentOperationText = "Step " + i.ToString();
 
  if (!Response.IsClientConnected)
  {
   //Cancel button was clicked or the browser was closed, so stop processing
   break;
  }
 
  progress.TimeEstimated = (total - i) * 100;
  //Stall the current thread for 0.1 seconds
  System.Threading.Thread.Sleep(100);
 }
}
Kalina
Telerik team
 answered on 21 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?