Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
193 views
Hello,

I've built a "portal" interface, combining dynamic TabStrip and RadDockLayout/Zone/Dock controls, fed from a database.

When the user clicks on a different tab, I want to show a different set of docks.  On the postback, though, the docks from the soon-to-be-previous tab are still in viewstate and get reattached to their Zones.  I added a method to clear them:

    ''' <summary> 
    ''' Clear all docks from a given raddocklayout 
    ''' </summary> 
    ''' <param name="rdLayout">given raddocklayout</param> 
    ''' <remarks></remarks> 
    Public Sub ClearAllDocks(ByVal rdLayout As RadDockLayout) 
        Dim rdZones As ReadOnlyCollection(Of RadDockZone) = rdLayout.RegisteredZones() 
        For Each rdZone As RadDockZone In rdZones 
            rdZone.Docks.Clear() 
            'For Each rdDock As RadDock In rdZone.Docks() 
            '    rdDock.Closed = True 
            'Next 
        Next 
    End Sub 

The .Clear() method isn't working.  It just plain doesn't clear the Zone.  The Docks are still there, before and after the .Clear() call.

I changed to the (commented out) .Closed = True option, but that seems slow and klunky to me. 

a) is there a reason that .Clear() wouldn't work?  I do realize I'm using a readonly collection to access them, but RegisteredZones only returns readonly. 

b) is there a better way of clearing all the Docks in a Layout? 

Thanks!
skysailor
Top achievements
Rank 1
 answered on 19 Nov 2009
2 answers
237 views
Hi All. Is it possible to change the EditText on a GridEditCommandColumn to a different value for each row? For example, I'd like to enter edit mode by click on a persons name. I'm doing all this in the code behind (C#). I can set the 'text' property but then I loose the link button. Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 19 Nov 2009
2 answers
381 views
Hi,
I am using Telerik RadControls for ASPNET AJAX Q3 2008 on my current project.

I would like to disable the zebra effect on the grid on one of the web forms.

According to http://www.telerik.com/help/aspnet-ajax/grdcreatingnewskins.html I can do so by setting the ClientSettings -> EnableAlternatingItems property of the grid to false.

However the property does not seem to exist, and it is not possible to do this 

1. At design-time as follows:
    <telerik:RadGrid ID="radGrid" runat="server">
        <ClientSettings EnableAlternatingItems="false">
            <Scrolling UseStaticHeaders="true" />
        </ClientSettings>
    </telerik:RadGrid>

2. Programmatically as follows:
    this.radGrid.ClientSettings. EnableAlternatingItems  = false;

Can you please tell me how to do this?

Thanks & regards,
Herman Gouw
Herman Gouw
Top achievements
Rank 2
 answered on 19 Nov 2009
3 answers
183 views
Hi

I want to look like Sub tabs as looking in attachment. Now my Sub tabs are looking same as Main tabs. Any one can help?

Thanks
Muhammad Imran
Top achievements
Rank 1
 answered on 19 Nov 2009
1 answer
90 views
I'm using a SQL Datasource for my treeview in a master page.  I would like to know how to maintain the selected state after postback?  Is it possible to define this by the datsource primary key (TreeView - DataFieldID) of the selected item?
Ryan
Top achievements
Rank 1
 answered on 18 Nov 2009
3 answers
149 views

Hi ,

 

I have a pie chart containing large amount of data, thus when the chart is rendered the labels overlap each other (see attached image). So, how can I show label of pie slice so it appears readable ? Is there any way to provide line connectors from pie slice to Labels…or may be something similar to this?

 
The project is being developed in asp.net 3.5 with C# as scripting language.

 

Your quick response will be appreciated.

Schlurk
Top achievements
Rank 2
 answered on 18 Nov 2009
0 answers
149 views
It was not clear to me, but apparently the "UploadPaths" and "DeletePaths" must be directories under the "ViewPaths" directory.  I could not get the other two directories to display until I made the "ViewPaths" directory the parent of the other two.

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

 

 

 

'/==> Directory structure (?)

 

 

'/==>~/App_Files/

 

 

'/==>~/App_Files/App_Views/

 

 

'/==>~/App_Files/App_Uploads/

 

 

'/==>~/App_Files/App_Deletes/

 

 

Dim sPath1 As String = "~/App_Files/" '/==>Parent directory (Views)

 

 

Dim sPath2 As String = "~/App_Files/App_Uploads/" '/==>Child of Parent (Uploads)

 

 

Dim sPath3 As String = "~/App_Files/App_Deletes/" '/==>Child of Parent (Deletes)

 

 

 

Dim saViewPaths As String() = New String() {sPath1}

 

 

Dim saUploadPaths As String() = New String() {sPath2} '/==>or {sPath2, sPath3}

 

 

Dim saDeletePaths As String() = New String() {sPath3} '/==>or {sPath2, sPath3}

 

 

rfe1.Configuration.ViewPaths = saViewPaths

rfe1.Configuration.UploadPaths = saUploadPaths

rfe1.Configuration.DeletePaths = saDeletePaths

rfe1.Configuration.SearchPatterns =

New String() {"*.*", "*.JPG"}

 

 

rfe1.Grid.Columns(1).HeaderStyle.CssClass =

"sizeColumn"

 

 

 

End Sub

 

Maybe, it will save someone else a little time.

Joe

 

 

 

 

sys1jal
Top achievements
Rank 1
 asked on 18 Nov 2009
0 answers
111 views
I am trying to add the Rad Spell check to a RadTextBox.  I followed the instructions carefully and have succes IF I create a page with just the javascript SpellcheckDone function and the RadTextBox and the RadSpell.  If, however, I add this code to an existing page, it will build with no errors; but when I try to bring up the page with the spell check javascript function on it, I get the following error:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

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.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

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:

[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
   System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +8668018
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +214

[HttpException (0x80004005): Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error.]
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +279
   Telerik.Web.UI.RadAjaxControl.PerformRender() +502
   Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1849
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +158
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

Nevermind ... I finally figured out that the RadCodeBlock could go around the <script></script> code; and then it works without errors.

 

 

 

Nancy Moore
Top achievements
Rank 1
 asked on 18 Nov 2009
2 answers
176 views
Hello,

I have 2 comboboxes with the same skin, height, and other attributes.
 ComboBox 1 : on page 1, inside a radwindow
 ComboBox 2 : on page 2, on a normal page

ComboBox 1's items spill out of the drop down, and there is no scrollbar.
ComboBox 2 works fine.

At first I thought it might be something to do with the radwindow, but when I opened that page (page 1) in just a browser window, the problem's still there.

Page 1 and page 2 are quite different however... May I know what possible causes are for this issue so I can track it down?

Screenshot attached.

PS:
Came across this upgrading from Q3 2008 to Q3 2009... This is not a problem with Q3 2008 on IE8
This is not a problem on IE7 or Firefox.. Haven't confirmed on other browsers yet
 

Thanks!
~xh
Xhrei
Top achievements
Rank 1
 answered on 18 Nov 2009
4 answers
130 views
Hi,

I have a RadGrid that I am manually controlling data for using the NeedDataSource event.  Everything has been working fine, until I added a RadComboBox outside of the grid which allows the user to select a value for filtering the grid.  I'm calling Rebind() to re-query my data, and it's calling NeedDataSource correctly.  I query my data, bring back new values based on the filter, and assign it to the DataSource property of the grid.  However the grid display never updates so the user is left seeing the records from before the filtering.

Any ideas?

Thanks,
Neil.
Neil Mercer
Top achievements
Rank 1
 answered on 18 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?