Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
138 views
Is there any way to populate a row of second grid from first grid, via clicking row of first grid.
I know i can achieve same using drag & drop rows, but i want to do it by clicking rows.
Please suggest. 
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2010
1 answer
188 views
Hi,
I need to add a "Delete" button to a RadPanelItem programmatically

The Panel Items are added dynamically to the RadPanelBar in the Page_Load method. At this time, I want to add a template or a delete button to the PanelItem (in the header itself, so that the delete button can be clicked without having to expand the item).

Is there a way to do it in the code behind ? Your help would be much appreciated.

Thanks
Shinu
Top achievements
Rank 2
 answered on 30 Nov 2010
1 answer
72 views
I am trying to require an item to be selected in a radcombobox if you click on a tab on the radtabstrip.  Code below:
<telerik:RadComboBox ID="cbProject" runat="server" AutoPostBack="True" OnSelectedIndexChanged="cbProject_SelectedIndexChanged"
                    Height="120px" Sort="Ascending"  EmptyMessage="Enter Project" MarkFirstMatch="true" ValidationGroup="ClassValidationGroup">
                </telerik:RadComboBox>
                <asp:RequiredFieldValidator ID="reqCategory" ControlToValidate="cbProject"
                    runat="server" ErrorMessage="Please Select A Project" ValidationGroup="ClassValidationGroup"
                    InitialValue="" Display="Dynamic">
                </asp:RequiredFieldValidator>
  
<telerik:RadTabStrip ID="rpdTabStrip" Skin="Web20" runat="server" ClickSelectedTab="True"
                    AutoPostBack="True" SelectedIndex="0" CausesValidation="true">

I do not get any error if I click a tab.
Princy
Top achievements
Rank 2
 answered on 30 Nov 2010
1 answer
94 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
93 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
61 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
36 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
220 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
101 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
101 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
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?