Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
357 views
Hi ,
I have a RawindowManager in MasterPage
a Radwindow in it's Windows collection
In the content page, i have an imagebutton.
I want to open the rad window in server side.
So i added this into imagebutton handle:
//doing some server side stuff here.
RadWindowManager 
man = (RadWindowManager)Master.FindControl("WindowsManager"); 
        RadWindow win = new RadWindow(); 
        win.NavigateUrl = "path"
        win.VisibleTitlebar = true
        win.VisibleOnPageLoad = true
        man.Windows.Add(win); 
running without any error but the radwindow is not open. What am i missing?
This is the post continues with the one i made in the support ticket. However, there is no reply or post back option in the thread so i could not post over there.
Thank you
This button is placed inside a RadPageView. Also the content page uses RadAjaxmanagerProxy
James Wofford
Top achievements
Rank 1
 answered on 29 Nov 2010
5 answers
750 views

Hi Veli,

I am using the Telerik RadGrid in our application,

our requirement is to Bind the columns and data to the grid dynamically .

including this based on the parent grid's selected row i need to show the related say 3tables of data either using Detai table grid or a NestedView template

I will describe the issues i faces on using these two options in breif now and also attached the screenshots for the related issues

1.Using Detail Table Data

    Adding columns and binding data is no problem...

        a).     First thing is the appearance 
         b).     Is it more flexible to have add,edit and one more button to redirect to some other page funtionalities with in all the  GridTableViews.
    passing the selected row as parameter
         c)    . If i resize the column extensively the RadGrid control automatically intiates the scroll
    option where i fill the screen gets so clumsy to differentiate the Parent grid and the Gridtableview

2.Using Nested View template
 
 In this template i took a panel and a tabstrip with in that panel.that tabstrip consists of
 three tabs for the three different related tables as explained above.
 
 Using this also adding columns and binding the data is no problem
 
     a).  The main problem is the columns and the data are not getting binded for the first click of expand column
    Inorder to over come this problem i used the HierarchyLoadMode as Client for this even for the first expand column click also data is gettind binded.
    but if i click for the next page of parent grid,then i am not able to view get the data binded to the child grids of the tabcontrol

     b).  In this also i need flexibility to have add,edit and even to redirect to some other page from the childgrids passing the selected row as parameter

Now coming to an end , I need the best solution among the two and also the solutions to over come the problems

Thanks in Advance
chaitanya.E
chaitanya.elluru@cosmonetsolutions.com

Milind Raje
Top achievements
Rank 1
 answered on 29 Nov 2010
2 answers
97 views
How can I access the value of a READONLY control in a RadGrid?

I tried the code below but it could not find the control.

RadGrid1.items.FindControl("controlename")

However, when I remove the READONLY  property, I am able to find the control.

I will appreciate any help asap.

Thanks
Jeff
Jeffrey
Top achievements
Rank 1
 answered on 29 Nov 2010
1 answer
186 views
When the field is set to ReadOnly=true the set_value not work!

Enabled cannot use because the user needs access to the field to copy the information.
How do I fix this?
Dimo
Telerik team
 answered on 29 Nov 2010
1 answer
171 views
I've seen the examples showing how to use
AllowAutomaticLoadOnDemand="true" 
for the GridDropDownColumn, but it seems these examples simply do a lazy load of the list and don't allow for auto complete type lookup from the user.

What I am getting at, if they lookup contains 100,000 items, I don't believe there is a way to used the built in load on demand features to allow the user to type a few characters and get back only the items that match their search.

As a work around we've been using a item template with a RadComboBox and the
OnItemsRequested
option used to query the database with the users typed in value as the search parameter.

I am just writing to verify that there is no simpler way to do this with the GridDropDownColumn.
Veli
Telerik team
 answered on 29 Nov 2010
2 answers
180 views
Hi,
I've had a RadnumericTextbox on my page :

<telerik:RadNumericTextBox runat="server" ID="txbOCCCplafond" SkinID="txbEntier" NumberFormat-decimalSeparator=',' MinValue="0" />

As you can see the decimal separator is the comma (french format).

I would like to allow the user to press ',' or '.' (as a result the '.' becomes ',')

For example setting NumberFormat-DecimalSeparator= ',.'

Hope you understand my poor english

Could you help me ?



 

 



 

Anthony
Top achievements
Rank 1
 answered on 29 Nov 2010
3 answers
714 views
I'm relatively new to the Telerik controls, so bear with me.

Working in VS2010, in a Telerik project... styles and CSS seem to wire up no problem, all is working as it should.

Trouble is - it seems like a huge pain to insert a series of inputs and get things to line up.  Meaning, I'd like a two-column layout with the label for the input say 200px, and the input to be 300px.  With padding and whatnot, the overall box would be about 525px.

I think I'm missing something conceptually about how to do this quick.  Right now, I'm dropping in a ASP Panel control, then adding RadTextBoxes.  You can set the width of the overall control (RadTextBox that is), but the width of each input area and each label is different.

What's the best practice way to accomplish a nice looking input form with everything aligned in a couple columns?  I'd rather not use tables, and I've done fieldsets in other projects, and tables too.  I thought the Skins might fix it, but it doesn't appear to assign a width, AND it's using tables for the layout.

I'm sure there's something simple, but I've been combing the how-to's for a couple hours.

<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All"
    Skin="Web20" DecorationZoneID="ContentPlaceholder1" />
<h1>
    Search Attendee Records</h1>
<p>
    Enter a value or a partial value in any of the fields below. Your search will return
    all matches or partial matches. For example if you enter "A" for last name, your
    search will return all names beginning with "A".</p>
<asp:Panel ID="Panel1" runat="server" GroupingText="Search Data" Width="450px">
    <telerik:RadTextBox ID="txtRegistrantID" runat="server" Label="RegistrantID" 
        Width="400px" Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadTextBox ID="txtLastName" runat="server" Label="Last Name" 
        Width="400px" Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadTextBox ID="txtFirstName" runat="server" Label="First Name" 
        Width="400px" Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadTextBox ID="txtCompany" runat="server" Label="Company" 
        Width="400px" Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadTextBox ID="txtCity" runat="server" Label="City" Width="400px" 
        Wrap="False">
    </telerik:RadTextBox><br />
    <telerik:RadButton ID="btnSubmit" runat="server" Text="Submit">
    </telerik:RadButton>
</asp:Panel>
Dimo
Telerik team
 answered on 29 Nov 2010
4 answers
221 views
Hi all,

I think the answer to this is no, but, I just wanted to double check, since it's a useful feature that RadGrid has. With RadGrid you can handle the OnNeedDataSource event to do a query to get the list of items for the grid. However, RadComboBox doesn't have this event. I'm wondering if there is an equivalent event, or, why RadComboBox doesn't have that event? Right now, I'm just setting the DataSource in the page's Page_Load event (with !IsPostBack).

I'm using Entity Framework and have been using a mix of EntityDataSources using ESQL as well as some LINQ to Entities code in the code behind files. It would be nice to do the queries in a consistent fasion. Using an EntityDataSource has some benefits, but, so does LINQ, for example, everything is strongly typed and compiler checked.

Jon
Yana
Telerik team
 answered on 29 Nov 2010
2 answers
58 views
I have a radpanelbar  that I use to call a radwindow during an itemclick event. This works as advertised, the problem is that the itemclick event seems to happen again if I cause another postback.

For example, if the user clicks the radpanelbar and fires the itemclick event which opens window1--I then close window1. Now I click on a radtreeview control which causes another postback and for some reason, the radpanelbar itemclick event fires again which opens window1 again even though button1 does not call for window1 to open.

    Private Sub RadTreeView1_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles RadTreeView1.NodeClick
        Dim clickedNode As RadTreeNode = e.Node
        'RadPanelBar1.DataBind()

        If clickedNode.ParentNode.Text = "Other Approvals" Then
            abview1.Visible = True
            abview1.idAgendaBills = clickedNode.Value
            abview1.DataBind()
        Else
            hideControls()
end sub
        End If

Obviously I don't want that to happen. Are there any workarounds to this? Thanks!
PJ Rodriguez
Top achievements
Rank 1
 answered on 29 Nov 2010
4 answers
368 views
I am having a problem with RadMenu staying in a fixed position  on the screen.  The problem seems to plague IE6, and IE7 (I haven't tested IE8).  It does not affect FireFox or Chrome.

Basically, I have a page that uses RadPanes to split the screen into 3 parts (navigation - left side, main screen - right, footer - across the bottom).  Within the main screen I have a table, which contains 2 rows, 1 cell each row.  Top cell contains a RadMenu, and the bottom cell contains a RadTreeView.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
<%@ 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"
    <style type="text/css">    
        html, body, form    
        {    
            height: 100%;    
            padding: 0px;    
            margin: 0px;    
        }    
    </style> 
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%" HorizontalAlign="Center"
        <telerik:RadSplitter ID="RadSplitter1" runat="server" HeightOffset="50" Height="100%" Width="100%" LiveResize="true" SplitBarsSize="4px" EnableEmbeddedBaseStylesheet="true" ResizeMode="EndPane"
            <!-- Left web --> 
            <telerik:RadPane ID="RadPane_MainLeft" runat="server" Width="225" Scrolling="Both"
                   Navigation goes here 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward"></telerik:RadSplitBar> 
            <!-- Right web --> 
            <telerik:RadPane ID="RadPane_MainRight" runat="server" Scrolling="Y">        
        <asp:Panel runat="server" ID="pnlEdit"
        <p> 
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam nisl lorem, luctus id aliquet ut, luctus ut purus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc in diam lorem, quis rutrum risus. Pellentesque scelerisque orci eget eros luctus posuere. Morbi interdum semper diam non porttitor. Donec in orci sed odio eleifend dictum sed vitae leo. Morbi porttitor, ante et commodo aliquet, magna orci convallis mauris, eu pellentesque elit tortor et nulla. Donec non lacus orci. Vestibulum luctus metus a tellus blandit convallis. Donec suscipit, arcu hendrerit tempus blandit, nisl elit sollicitudin diam, a luctus mi sapien vel mi. Curabitur tempus hendrerit eros vulputate vulputate. Maecenas aliquam ultrices eros, id ornare lectus posuere eu. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Phasellus vehicula tempor leo eget facilisis. Suspendisse feugiat bibendum massa id semper. Etiam pellentesque eleifend tellus sed interdum. Maecenas pharetra risus ut velit molestie egestas. Sed vitae lacus mattis eros malesuada dignissim eget at diam. Curabitur sollicitudin lectus a felis gravida blandit. Cras quis augue in est facilisis convallis sit amet at dui. 
        </p> 
            <table width="100%" cellpadding="3" cellspacing="3"><tr><td align="left" valign="top" width="100%"
                <telerik:RadMenu ID="mnuSel" Runat="server"
                    <Items> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem2"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem3"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem4"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem5"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem6"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem7"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                    <Items> 
                                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                        </telerik:RadMenuItem> 
                                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                        </telerik:RadMenuItem> 
                                    </Items> 
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem8"
                        </telerik:RadMenuItem> 
                        <telerik:RadMenuItem runat="server" Text="Root RadMenuItem9"
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2"
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3"
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                    </Items> 
                    <DefaultGroupSettings RepeatColumns="2" RepeatDirection="Vertical" /> 
                </telerik:RadMenu> 
            </td></tr
            <tr> 
            <td align="left" valign="top" width="100%"><telerik:RadTreeView ID="treeSel" Runat="server"
                <Nodes> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode1"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode2"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode3"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode4"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode5"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode6"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode7"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode8"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode9"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode10"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode11"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode12"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode13"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode14"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode15"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode16"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode17"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode18"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode19"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode20"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode21"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode22"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode23"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode24"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode25"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode26"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode27"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode28"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode29"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode30"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode31"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode32"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode33"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode34"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode35"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode36"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode37"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode38"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode39"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode40"
                    </telerik:RadTreeNode> 
                    <telerik:RadTreeNode runat="server" Text="Root RadTreeNode41"
                    </telerik:RadTreeNode> 
                </Nodes> 
                </telerik:RadTreeView></td></tr> 
            </table> 
         </asp:Panel> 
            </telerik:RadPane> 
             
        </telerik:RadSplitter> 
         
        <!-- Footer --> 
        <div style="height: 50px; text-align: center; background-color: White;"
             
            Footer goes here 
             
        </div> 
        </telerik:RadAjaxPanel> 
    </div> 
    </form> 
</body> 
</html> 
 

When the page is scrolled, the RadMenu stays fixed and does not move within the screen.  I've also experienced the RadMenu disappearing entirely, if placed at the top of the screen (to see that, remove the "<p>Lorem ipsum...</p>" content from the top of the page in my example above).

I've tried the following, with no success:

1 - set up a style with "position: absolute; z-index: 0;" and attached it to menu only, menu and tree, tree only.  This did not help.
2 - tried setting up a "position: relative;" for each of the items.  This had an even worse effect.

Any help in resolving this is greatly appreciated.  I am attaching 2 screenshots that demonstrate the problem. I'm using the latest version of the Telerik controls.

Thanks,
Alex

T. Tsonev
Telerik team
 answered on 29 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?