Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
hi all:
   I added dock dynamically to the three zones.I set up different skin for each Zone. After user log back in and reloaded the docks which  have been saved, the skin setting doesn't work.  how could I fix this issue?

what I need is that every dock in the same zone have the same color. I also wonder how could I set up each dock has it own title bar color?

Thanks
Helena


 

 <telerik:RadDockLayout runat="server" ID="RadDockLayout1"   
               EnableViewState="true">  
                 <table style="width:100%" border="0" > 
                 <tr > 
                  <td style="width:30%">  
                     <telerik:RadDockZone runat="server" ID="RadDockZone1" Height="100%"   
                       FitDocks="true" Width="100%" MinHeight="0" BorderWidth="0" Orientation="Vertical" Skin="Outlook">  
                         
                    </telerik:RadDockZone> 
                  </td> 
                  <td style="width:30%" > 
                       <telerik:RadDockZone runat="server" ID="RadDockZone2" Height="100%"   
                           Width="100%"    
                           Style="_height:100%;border-color:lightgray;float:  right; margin-right: 0px"   
                           Orientation="Vertical" FitDocks="true" Skin="WebBlue">  
                        </telerik:RadDockZone> 
                    </td> 
                   <td style="width:30%">  
                       <telerik:RadDockZone runat="server" ID="RadDockZone3" Height="100%"   
                           Width="100%"  Style="_height:100%;border-color:lightgray;float: right; margin-right: 0px"   
                           Orientation="Vertical" FitDocks="true" Skin="Vista">  
                       </telerik:RadDockZone> 
                   </td> 
                </tr> 
                </table>   
 
 
 
vb.net codes:  
 Private Sub CreateDefaultRadDock()  
        Dim index As Integer  
        Dim DockList As New ArrayList()  
        Dim intCount As Integer = 0 
        Dim intReminder As Integer  
        Dim dock As RadDock  
        If Not Me.chkWidgetList.Items Is Nothing Then  
            intCount = Me.chkWidgetList.Items.Count  
        End If  
 
        For index = 0 To intCount - 1  
            dock = CreateRadDock(chkWidgetList.Items(index).Text)  
            intReminder = index Mod 3  
            Select Case intReminder  
                Case 0  
                    RadDockZone1.Controls.Add(dock)  
                    dock.Skin = "Web20" 
 
                Case 1  
                    RadDockZone2.Controls.Add(dock)  
                    dock.Skin = "Vista" 
                Case 2  
                    RadDockZone3.Controls.Add(dock)  
                    dock.Skin = "Outlook" 
            End Select  
            Me.chkWidgetList.Items(index).Selected = True 
            'We want to save the dock state every time a dock is moved.         
            CreateSaveStateTrigger(dock)  
            'Load the selected widget         
            dock.Tag = WidgetFolder + "/" + chkWidgetList.Items(index).Value  
 
            LoadWidget(dock)  
        Next index  
 
        Me.btnAdd.Enabled = False 
        Me.btnReset.Enabled = False 
 
        'don't need to reload Dock   
        isNeedReload = False 
 
    End Sub  
         
Petio Petkov
Telerik team
 answered on 06 May 2010
0 answers
90 views
Good morning,
I need Progress Bar for entire page but not AjaxLoadingPanel.I do have AjaxLoadingPanel when I click on first radgrid and gives me a data on the second radgrid but I need again for entire page.The following code is include search button .I want click search button and progress bar is displayed and I also need progress bar when value is change in RadComboBox.CFNList is a user control and I have two RadComboBox in there.

 

 

<asp:Panel ID="Job_Report" runat="server" Width="805px">

 

<

 

fieldset>

 

<

 

legend>Search Bulk Job</legend>

 

 

<table>

 

 

<tr>

 

 

<td>

 

 

<uc1:CFNList id="CFNList1" runat="server">

 

 

</uc1:CFNList>

 

 

</td>

 

 

 

<td>

 

Job:

 

 

<br />

 

 

<telerik:RadTextBox ID="JobTextBox" runat="server" Width="100px" MaxLength="5"></telerik:RadTextBox>

 

 

 

</td>

 

 

<td>

 

Title:

 

 

<br />

 

 

<telerik:RadTextBox ID="TitleTextBox" runat="server" Width="100px" MaxLength="5"></telerik:RadTextBox>

 

 

</td>

 

 

 

<td>

 

 

 

 

<br />

 

 

<asp:Button ID="SearchJob" runat="server" Width="95px" Height="24px" CssClass="Button" Text="Search" OnClick="Search_Job_Click" OnClientClick="JavaScript: return ValidateData();" />

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td class="tbtxtbox" colspan="3" style="height:20px;">

 

 

<asp:Label ID="lblError" runat="server" Height="10px" Font-Size="Small" ForeColor="red" >

 

 

</asp:Label>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</fieldset>

 

 

</asp:Panel>

 

 
As always you are big help for me.Thanks so much.
Vasya Ivanov
Top achievements
Rank 1
 asked on 06 May 2010
0 answers
186 views

How to register a postback in a RadscriptManager, to preserve the value of a FileUpload that is contained in a RadAjaxLoadingPanel.

This in an example using ScripManager and UpdatePanel:

Protected Sub BtnSubirFoto_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnSubirFoto.PreRender

        Dim btn1 As Button = DirectCast(sender, Button)
        Dim rsm As RadScriptManager = DirectCast(MyMaster.FindControl("RadScriptManager1"), RadScriptManager)
        rsm.RegisterPostBackControl(btn1)

End Sub
Enrique Gonzalez
Top achievements
Rank 1
 asked on 06 May 2010
2 answers
98 views
Hi,

We have a three tiered hierarchy and we are utilizing the OwerTableView.Name property to determine which section we are working on within ItemDataBound (where we are changing colors, adding links, etc, depending on values).

In our top level table (dataset with 3 tables is returned via sql), we have a status flag - Cancel, Refund, etc.

In the DetailTables we need to turn on/off different options such as Editing, when the status of the top most table is 'Cancel'

So my question is this - is there a way to reference values in the MasterTableView, in ItemDataBound, when the current tableView is one of the detailtables?

Put another way, is it possible to traverse up the grid's data structure within ItemDataBound? Hopefully my question makes sense. Thanks.
Karl Wilkens
Top achievements
Rank 1
 answered on 06 May 2010
3 answers
127 views
Hi,

Any one can tell me. Is there any control like treeview in telerik where we can grids inside the treeview.


Plz Help me.
Nikolay Tsenkov
Telerik team
 answered on 06 May 2010
3 answers
106 views
Hello,

In RadComboBox component can we change its shape to become oval for example? .
Thanks
 
Yana
Telerik team
 answered on 06 May 2010
1 answer
69 views
Hi,

I just wonder if its possible to scroll subtabs as well? I have 4 levels tabstip with quite lengthy text, and would be nice if each level only take one line of space. Thx in advance.

Regards,
Trn.
Yana
Telerik team
 answered on 06 May 2010
1 answer
95 views
I have one rad combo box which is configured for ondemand and has AutoPostBack set to true and two rad grids. I am loading these two grids on the SelectedIndex changed of the rad combo.

If i type and select different items in the combobox then everything works fine without any problem. But if i type the text that is same as the ondemand loaded item(Say for eg: initally you typed xyz and the combo loaded this item ondemand and loaded the grids. now delete the text from the combo and again type the same xyz) then the second grid items are vanished from the view port of the browser but grid rows remain the same then if i click the edit button on the grid then all the items are displaying again.

Please see the attached screen shot
Yana
Telerik team
 answered on 06 May 2010
1 answer
97 views
Just recently bought the suite from Telerik and we're having some difficulties in the GridView:
Later add a second new line in a grid with a BindingSource, after changing the information of the first column and capture that change by PropertyChanged, I can not get the line ((BE.RegraICMSClassificacaoFiscal) _bsClassificacaoFiscal.Current. When I do that she gets the information first line and not the new line. It seems to me that the BindingSource is not repositioned.

Other issues:

- What are the equivalent properties in the columns:

Fill and displayorder
Svett
Telerik team
 answered on 06 May 2010
1 answer
292 views

I need to set the radwindow height as 100% to the form window in IE,Chrome,Mozilla.When I am using the following code the radwindow is displayed as an attached file. Please help me to solve this issue.



Default.aspx page


<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default2" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head runat="server">

 

 

 

 

 

<title></title>

 

 

 

 

 

<style type="text/css">

 

 

 

 

 

html, body, form

 

 

 

 

{

 

height: 100%;

 

 

width: 100%;

 

 

margin: 0px;

 

 

padding: 0px;

 

 

overflow: hidden;

 

}

 

</style>

 

</

 

head>

 

<

 

body>

 

 

 

 

 

<form id="form1" runat="server">

 

 

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 

 

<script type="text/javascript">

 

 

 

 

 

function onWindowResize(oWindow)

 

{

setWinSize(oWindow);

}

 

function setWinSize(oWindow) {

 

 

 

var realBounds = $telerik.getBounds(oWindow.get_popupElement()); // The true size ;

 

 

 

 

 

var contentFrame = oWindow.get_contentFrame();

 

contentFrame.style.height = realBounds.height +

"px"; // Set the true height ;

 

 

 

 

 

if (realBounds.height < 150) {

 

contentFrame.style.height = realBounds.height +

"px"; // Set the true height ;

 

 

 

 

 

}

 

else {

 

contentFrame.style.height =

"100%";

 

 

}

}

 

 

function OnClientShow(oWindow, args)

 

{

setWinSize(oWindow);

}

 

</script>

 

 

 

 

 

<div>

 

 

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

 

 

 

 

 

<Windows>

 

 

 

 

 

<telerik:RadWindow ID="RadWindow1" runat="server" Width="600" Height="800"

 

 

 

 

 

KeepInScreenBounds="true" OnClientShow="OnClientShow" OnClientResize="onWindowResize" VisibleOnPageLoad="true"

 

 

 

 

 

NavigateUrl="Popup.aspx">

 

 

 

 

 

</telerik:RadWindow>

 

 

 

 

 

</Windows>

 

 

 

 

 

</telerik:RadWindowManager>

 

 

 

 

 

 

 

</div>

 

 

 

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Svetlina Anati
Telerik team
 answered on 06 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?