Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
I have a TreeView nested inside of a ComboBox. I need to raise a server side event when the drop down is closed. What is the best way to achieve this?
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2010
2 answers
91 views
Hi all,

Now, i want to set focus first item in each pages of Grid. My grid is below:
1. ASPX page:
            <telerik:RadGrid  
            Width="99.8%" ID="radGridControl"
            runat="server"
            AutoGenerateColumns="true"
            AllowPaging="True"  
            AllowMultiRowSelection="True"  
            CellPadding="0" PageSize="10"  
            AllowFilteringByColumn="true"
            OnPreRender ="radGridControl_PreRender"
            >
            <MasterTableView IsFilterItemExpanded="false" Font-Bold="False" TableLayout="Fixed">
                <Columns>
                <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkItem" runat="server" />
                    </ItemTemplate>
                    <HeaderTemplate>
                        <asp:CheckBox ID="headerChkbox" runat="server" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True"/>                      
                    </HeaderTemplate>
                </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings  EnableRowHoverStyle="True">
                <Selecting AllowRowSelect="True" />
                <ClientEvents  OnRowSelected="RowSelected" />
                <Scrolling
                            AllowScroll="True"
                            ScrollHeight="320"  
                            EnableVirtualScrollPaging="True"
                            UseStaticHeaders="True" />
            </ClientSettings>
            <AlternatingItemStyle    Height="20px" />
            <ItemStyle  Height="20px"  />
            <HeaderStyle Height="20px"  CssClass="hoanguyen-GridStyleRow" Font-Bold="True"  />
            </telerik:RadGrid>
2. Code-behid:

protected void Page_Load(object sender, EventArgs e)
{
        if (!IsPostBack)
        {
            radGridControl.Rebind();
            if (radGridControl.MasterTableView.Items[0] != null)
            {
                radGridControl.MasterTableView.Items[0].Focus();
            }
        }
}
3. I only focus first item with "CheckBox" column of first page. This column can't focus when page Scrolling is next page.
Can you help me to implement this problem?

Thank you!

Mr PhuongLD

Le Danh
Top achievements
Rank 1
 answered on 30 Nov 2010
0 answers
56 views
When using combox filter, when type english, is is ok, but when type chinese, it show the result 1 or 2 seconds and then dispeare and show not match?
kk
Top achievements
Rank 1
 asked on 30 Nov 2010
0 answers
35 views
When use auto complete in your rad combobox, search english is ok, but when search chinese, the result show about 1 or 2 seconds, then dispeared and show not match??
kk
Top achievements
Rank 1
 asked on 30 Nov 2010
4 answers
212 views
Hi,

I'm using the classic AJAX controls (as required by the project upon which I am working - not negotiable).

I have a CheckBox which, when clicked, calls a javascript method setPostalAddressInRed()
In that method, a the text of a RadComboBox needs to be toggled between red and black i.e. if checked, red, if not checked black.
Paraphrasing my code, I have this:
setPostalAddressInRed() {
var isChecked = document.getElementById('AddressInactiveCheckBox').checked;
var
postState = document.getElementById('StatesComboBox');

if(isChecked == true) {
postState.style.color =
'red';}
else {
postState.style.color =
'black';
}
}

Unfortunately, that code is not working. It works for TextBoxes, but not RadComboBoxes.

Any help would be appreciated.

Cheers!
David
Top achievements
Rank 1
 answered on 30 Nov 2010
2 answers
93 views
When selecting a menu child I will like the parent menu to be bold.  (see screenshot - Calendars should be bold). After selecting one of the calendars  I would like the user to be able to tell what menu item they are on.

Menu Def (front end)

<Telerik:RadMenuItem Text="Home" AccessKey="H">
                        <Items>
                            <Telerik:RadMenuItem  Text="User Dashboard" ImageUrl="https://wac.edgecastcdn.net/0017BD/User_16.gif" NavigateUrl="MyProfileView.aspx?cmd=resetall" />
<Telerik:RadMenuItem  Text="My User Dashboard" ImageUrl="https://wac.edgecastcdn.net/0017BD/User_16.gif" NavigateUrl="MyProfileView.aspx?cmd=resetall" />
                            <telerik:RadMenuItem IsSeparator="True" />
                        </Items>
                    </Telerik:RadMenuItem>

On the vacation calendar page

        'Set Selected Tab
        If Not Page.IsPostBack Then
            Dim rMnu As Telerik.Web.UI.RadMenu
            rMnu = CType(Page.Master.FindControl("FLSRadMenu"), Telerik.Web.UI.RadMenu)
            If Not rMnu Is Nothing Then
                rMnu.Items(5).Selected = True
            End If
        End If 

CSS

.RadMenu_FLSMenu a.rmFocused,
.RadMenu_FLSMenu a.rmSelected
{
    background-color: #fff;
        font-weight: bold;
}

The backgound color is getting picked up.  But not he font weight.

Marc
Top achievements
Rank 1
 answered on 30 Nov 2010
3 answers
96 views
Hi there

I open a radwindow using the radwindow.open(url, radwindowmanagerid) method.

Inside the page that is shown in the opened window  I need to maximize the window from codebehind.  How can that be done?
Ole Albers
Top achievements
Rank 2
 answered on 29 Nov 2010
7 answers
348 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
734 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
95 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?