Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
204 views
Hi,

I am using a PanelBar to create a vertical menu for the left-hand side of a page. It works fine until I add an IFrame - the panels no longer expand. Please help!

ASPX as follows; the panelBar is populated when it loads on server - just a series of panels with a few icons in each. Commenting the IFrame makes the panelBar work again.

<table width="100%">

 <tr style="height:100%;">

 <td align="left">

<telerik:RadPanelBar ID="LHSMenu" Height="800px" runat="server" Skin="Outlook" BackColor="#4682B4" ExpandMode="FullExpandedItem" />

 </td>

 <td style="height:100%; vertical-align:top; width:90%;">

 <!--Main frame -->

 <iframe id="MainFrame" src="htmlpage.htm" height="800px" frameborder="0" width="100%" scrolling="no" />

 </td>

 </tr>

 </table>

 Thanks,

Simon

laolu olapegba
Top achievements
Rank 1
 answered on 31 Aug 2009
1 answer
66 views
Dear Telerik,

Thanks so much for making such a great product. My question is kind of puzzling. I have a number of combo boxes and other ui elements in a form. Based on the users selections, I enable or disable certain combo boxes. I do that by putting a div around a set of combo boxes so I don't have to disable each one.

The problem is that the text in the combo boxes gets skewed in IE 7. If I could upload a screenshot, I could show how it looks.

Have you heard of anything like this?

Eric
Yana
Telerik team
 answered on 31 Aug 2009
1 answer
109 views
I have 2 tabs in tabstrip:

1st pageview contains an ajax updatepanel (not telerik) covering a radgrid
2nd pageview contains an ajax updatepanel (not telerik) covering a form to insert new data.

On success insert in the 2nd pageview, i want to auto switch the tab to the first pageview, so that the user can see the newly inserted data in the grid.

My current approach does not work as the view stays on 2nd pageview even after success insert. Any workable solution is appreciated, i need separate updatepanel for each pageview to reduce loading time.

Thanks
Paul
Telerik team
 answered on 31 Aug 2009
1 answer
101 views
I make a linkbutton visible when appointment form is created:


protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) 
        { 
LinkButton1.visible = true

I want to hide the LinkButton1 when the insert or update is finished and RadScheduler1 returns to calendar view. is this possible? thanks in advance
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2009
1 answer
114 views

Good afternoon!

I have a page that opens many pop-ups with different sizes from a RadWindow, but when I close the first one, the next opened pop-up gets the same size of the last one until it's completely loaded, you can see the code below:

Origin page code:

        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2007"
            ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" Behavior="None"
            Modal="True" Style="z-index: 90000;">
            <windows>
                <telerik:RadWindow runat="server" ID="RadWindow1" Width="10" Height="10" Modal="true"
                    OnClientClose="OnClientClose" Behavior="Move" />
            </windows>
        </telerik:RadWindowManager>

        function openWin(tela) {
                    var menu = $find('RadMenu1');
                    menu.close;
                    $find('Timer1')._stopTimer();
                    var oManager = GetRadWindowManager();
                    oManager.open(tela, "RadWindow1");
                }

Code to open up the RadWindow:

        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
        function Entrar() {
            GetRadWindow().setSize(200, 200);
        }

Thanks in advance!

Georgi Tunev
Telerik team
 answered on 31 Aug 2009
1 answer
80 views
Hi,

   I Need Validation controls at TemplateForm of Grid using Custom Validators. How get the controls by javasript function?

<EditFormSettings ColumnNumber="2" CaptionDataField="CodigoProduto"  CaptionFormatString="Edit properties of Product {0}">                                                 
                                                <FormTemplate> 
                                                    <table style="width:100%;">  
                                                        <tr> 
                                                            <td><asp:Label ID="lblProduto" runat="server" Text="Código do produto:" CssClass="cad-lbl" /></td>  
                                                            <td colspan="5">  
                                                                <asp:TextBox ID="txtProdutoCodigo" runat="server" ReadOnly="true"></asp:TextBox> 
                                                                <asp:HiddenField ID="hdfProdutoCodigo" runat="server"   
                                                                    onvaluechanged="hdfProdutoCodigo_ValueChanged" /> 
                                                                  
                                                                <button onclick="openWin(); return false;" class="btn">  
                                                                    Buscar</button>   
                                                            </td>                                                              
                                                        </tr> 
                                                        <tr> 
                                                            <td> 
                                                                <asp:Label ID="lblQuantidade" runat="server" Text="Quantidade (m):" CssClass="cad-lbl"/>  
                                                                <asp:RequiredFieldValidator ID="rfvQuantidade" ValidationGroup="Produto" runat="server" 
                                                                    ControlToValidate="ntxtQuantidade" ErrorMessage="O campo Quantidade Ã© obrigatório." 
                                                                    Text="*"></asp:RequiredFieldValidator> 
                                                            </td> 
                                                            <td> 
                                                                <vm2:NumericTextBox ID="ntxtQuantidade" runat="server" MinValue="0" onblur="onblurQuantidade()"  CssClass="cad-txt" EnableEmbeddedSkins="false" Skin=""/>                                      
                                                            </td> 
                                                            <td> 
                                                                <asp:Label ID="lblLances" runat="server" Text="Lances:" CssClass="cad-lbl"></asp:Label> 
                                                                <asp:RequiredFieldValidator ID="rfvLances" ValidationGroup="Produto" runat="server" 
                                                                    ControlToValidate="ntxtLances" ErrorMessage="O campo Lances Ã© obrigatório." Text="*"></asp:RequiredFieldValidator> 
                                                            </td> 
                                                            <td> 
                                                                <vm2:NumericTextBox ID="ntxtLances" NumberFormat-DecimalDigits="0" onblur="onblurLance()" 
                                                                    runat="server" MinValue="0"  CssClass="cad-txt" EnableEmbeddedSkins="false" Skin=""/>  
                                                            </td> 
                                                            <td> 
                                                                <asp:Label ID="lblMetragem" runat="server" Text="Metragem:" CssClass="cad-lbl"></asp:Label> 
                                                            </td> 
                                                            <td> 
                                                                <asp:TextBox ID="txtMetragem" runat="server" ReadOnly="true" CssClass="cad-txt"></asp:TextBox> 
                                                                <asp:HiddenField ID="hdfMetragem" runat="server" /> 
                                                            </td> 
                                                        </tr> 
                                                        <tr> 
                                                            <td> 
                                                                <asp:Label ID="lblPrecoAplicado" runat="server" Text="Preço Aplicado:" CssClass="cad-lbl"></asp:Label> 
                                                            </td> 
                                                            <td> 
                                                                <asp:TextBox ID="txtPrecoAplicado" runat="server" ReadOnly="true" CssClass="cad-txt"></asp:TextBox> 
                                                                <asp:HiddenField ID="hdfPrecoAplicado" runat="server" /> 
                                                            </td> 
                                                            <td> 
                                                                <asp:Label ID="lblAcondicionamento" runat="server" Text="Acondicionamento:" CssClass="cad-lbl"></asp:Label> 
                                                                <asp:CompareValidator ID="cpvAcondicionamento" runat="server" ValueToCompare="-- Selecione --" 
                                                                ValidationGroup="Produto" ControlToValidate="ddlAcondicionamento" Operator="NotEqual" 
                                                                ErrorMessage="O campo Acondicionamento Ã© obrigatório." Text="*"></asp:CompareValidator>                      
                                                            </td> 
                                                            <td> 
                                                                <vm2:Combobox ID="ddlAcondicionamento" runat="server" Skin="Office2007" CssClass="cad-ddl" 
                                                                    ZIndex="9000" OnItemDataBound="ddlAcondicionamento_ItemDataBound">  
                                                                </vm2:Combobox> 
                                                            </td> 
                                                            <td colspan="2">  
                                                                <asp:Button ID="btnAdicionarProduto" runat="server" Text="Adicionar" ValidationGroup="Produto" 
                                                                    OnClick="btnAdicionarProduto_Click" CssClass="btn" /> 
                                                            </td>                                                              
                                                        </tr>                                                          
                                                    </table> 
                                                </FormTemplate> 
                                            </EditFormSettings> 
Princy
Top achievements
Rank 2
 answered on 31 Aug 2009
1 answer
88 views
Hello I am kind of new with the Date picker. I need to have a calendar that selects a week and display that work week, that can only start on Monday, so the user can only click monday dates only, and then i want to take the values and display them in a text box. I've looked around the site and was not able to find anything.
Princy
Top achievements
Rank 2
 answered on 31 Aug 2009
2 answers
127 views
I have a project need dynamic create multiple grids based on a value in collection object. I need use Grid_NeedDataSource to bind grid. In Grid_NeedDataSource event I call a method BindGrid(). In OnInit event I have following code:

protected override void OnInit(EventArgs e)
{
Collection categories = GetCategories();
foreach (String category in categories)
{
  DefindGridStructure(category);
}
}

The method DefindGridStructure(category) will create a datagrid based on category value. 

void rgGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
        BindGrid(CategoryKey);
    }

My question is how can I get Category value in rgGrid_NeedDataSource event. I can't use viewstate value since it will be always the last value of the collection. 
Veli
Telerik team
 answered on 31 Aug 2009
1 answer
139 views
Hello,

i got a problem and it's importent so find a comfortable and quick solution. i hope to get help.

i got a radgrid and a htmltable on a page. the htmltable got a basic style.. so it doesnt look very well and i want to skin the htmltable like the skin i used for my radgrid.

so is there any possibility to skin a htmltable with telerik skin?


Many Tanks

Chris
Shinu
Top achievements
Rank 2
 answered on 31 Aug 2009
1 answer
335 views
hi all.
my problem is about the grid client event, i have a RadGrid, RadAjaxManager in this manager , i chose radgrid and i want to update the text box.
when i wrote a javascript for client event OnRowDoubleClick in pages aspx. i wrote a function
             function RowDblClick(sender,args){....}      
and i double click on Row , it's happened
    But when i wrote it in code behind (because i want to take a data in my database to update the testbox) i have the problem.if i don't have 2 parameters sender and args i sure the event  onrowdlouble click would not happen and i don't know how to chose the type for sender and args. could you give me a right function with right parameter to make the row double click on grid happen in code behind please.
thank you for listening.

Shinu
Top achievements
Rank 2
 answered on 31 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?