Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
116 views
Hello,

I am trying to build MegaDropDown, which is a combination of RadMenu and RadSiteMap and RadSiteMapNodes.
I have 15 menuitems.Each menuitem has Radsitemap.
Basically i have to click on the arrow button on the rightmost side of the menu inorder to see the last menu.
I was able to see Radsitemap for first few menuitems.But if i scrool to the last menuitem and click on the menuitem, i can see the site map
but , its missing styles for the header in the radsitemap.
But this is working in firefox and ie8.

Please see the attachments for more details.
In WrongStyles.png  "PC Administration" and "Customer Documents" and "Others"   are headings.
But its missing styles.

Please Advise.
Kate
Telerik team
 answered on 26 Oct 2011
1 answer
119 views
Hello,

I have a Ajaxified Grid that populates a sub grid using the OnRowSelected ClientEvent. It also opens a modal edit control with Javascript. This MasterRadGrid is rather large and takes a couple of seconds to load. The OnRowSelected even calls the rowSelected function.

function rowSelected(senders, args) {
    var ajaxManager = $find('<%= RadAjaxManager1.ClientID %>');
    var selectedIndex = args.get_itemIndexHierarchical();
    ajaxManager.ajaxRequestWithTarget('<%= MasterRadGrid.UniqueID %>', selectedIndex);
}

Which calls the RaisePostBackEvent...

protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
{
    try
    {
        viewstateColumnSequence = 0;
 
        base.RaisePostBackEvent(sourceControl, eventArgument);
        var grid = sourceControl as RadGrid;
 
        if (grid != null)
        {
            try
            {
                var gridItem = grid.Items[eventArgument];
                gridItem.FireCommandEvent(RadGrid.SelectCommandName, String.Empty);
            }
            catch { }
        }
    }
    catch (Exception ex)
    {
    }
}

Which fires the CommandEvent for select...

protected void MasterRadGrid_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
    //Needed to reset the column created column names
    viewstateColumnSequence = 0;
 
    try
    {
        if (e.Item != null && e.Item.ItemIndex >= 0)
        {
            if (e.CommandName == "Select")
            {
                string tempCiIdHidden = ChildTabControl.myCiIdHidden.Value;
                HiddenField myCiIdHidden = (HiddenField)e.Item.FindControl("CiIdHidden");
                if (tempCiIdHidden != myCiIdHidden.Value)
                {
                    LoadChildGrid(myCiIdHidden.Value);
                }
 
                //Needed to persist the custom column template changes
                MasterRadGrid.Rebind();
            }
        }
    }
    catch (Exception ex)
    {
    }
}

My issue is that every time the row is selected, it raises a postback event that reloads the MasterRadGrid, whether the data needs refreshed or not. I'm stumped on how to raise the postback event to load the child grid but prevent the MasterRadGrid from reloading. Any ideas on what I'm missing or a direction you can point me in?

Thanks for taking a look.

Smith

Maria Ilieva
Telerik team
 answered on 26 Oct 2011
3 answers
165 views
Hi,

I have a hierarchical grid. The 2nd level grid contains a column with an editItemTemplate, that editItemTemplate contains a RadComboBox. The DataSource of the RadComboBox returns over 30,000 rows, I am therefore using an additional parameter to pass in the first letter of the name which is entered into the RadComboBox.

I'm tring to do this on the OnSelecting event for the SqlDataSource:
protected void names_selecting(object sender, SqlDataSourceSelectingEventArgs e)
{
RadComboBox rcb = (RadComboBox)editItem.FindControl("rcb_name");
                        e.Command.Parameters["@starts_with"].Value = rcb.Text;
}

Can you tell me how I can find the RadComboBox within the edit template of the 2nd level grid and also if this is the right place to alter the parameter value?


Thanks in Advance,
Ryan
Veli
Telerik team
 answered on 26 Oct 2011
1 answer
169 views
I've been playing around with the RadNotificaiton and got most of my website using it now. However, I have a glitch and I was wondering if someone could help me out. I'm getting a blank notification with only the icons... just no text is visible. The only time this behavior is noticed is when there is bound data. The page works correctly in the sense that I can Insert/Edit/Delete, just getting the blank notification. Any help would be greatly appreciated.

William
Marin Bratanov
Telerik team
 answered on 26 Oct 2011
1 answer
188 views
Hi, i have a RadSlider with a  RadToolTip attached. But i need to format the text that is being sent to the tooltip.

Eg: "1000" to "1,000".


How can i achieve this?


Best Regards,
Vitor Monteiro
Marin Bratanov
Telerik team
 answered on 26 Oct 2011
1 answer
117 views
Hi,

I am binding my radgrid through WCF. when i am trying to hide the column from client side.
Blank space is getting added in to the grid.

I used both hideColumn(0); and set_visible("ID"); Both are not working

Can anyone help me.

Thanks
Veli
Telerik team
 answered on 26 Oct 2011
1 answer
142 views
Setup:  (this is based on one of Telerik's example scenarios)
  • One RadTabStrip with 3 tabs
  • Each tab has a single PageView
  • Each PageView is dynamically loaded with a UserControl
  • Each UserControl contains a RadGrid
  • Each RadGrid contains a "clientselectcolumn" and allows client-side row selection

Scenario:
  • Select a row in grid on Tab1
  • Select Tab2
  • Select Tab1


Problem:
  • If I were performing this operation server-side I would use code similar to the following to find the grid:
    RadGrid rg = RadTabStrip1.SelectedTab.PageView.Controls[0].FindControl("RadGrid1")
  • Client-side, I have been able to obtain the PageView via the onTabSelected event:
    args.get_tab().get_pageView().  Unfortunately, there isn't a "findControl" method so I cannot find "RadGrid1".

Question:
  • How do I find the grid on Tab1 via client-side code?
Terry
Top achievements
Rank 1
 answered on 25 Oct 2011
1 answer
61 views
How can I make a hierarchical grid (grid with header, details information) fully expanded when the page is loaded?
Jayesh Goyani
Top achievements
Rank 2
 answered on 25 Oct 2011
4 answers
253 views
hi my dear friends:
i have two radcombobox on my page and i am controling their focus by jquery...
also i have some code on their OnClientFocus , therefore focus and blur are so important ...
my aspx and jquery code are like this : (without RadComboBox -> OnClientFocus )

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs" Inherits="Darman.WebForm4" %> 
 
<!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> 
        <script src="../JQuery/jquery-1.4.1.js" language="javascript" type="text/javascript"></script> 
 
    <script type="text/javascript"> 
        $(function() { 
        $('input[id$=RadComboBox1_Input]').focus(); 
        $('input[id$=RadComboBox1_Input]').select(); 
        $('input[id$=RadComboBox1_Input]').bind('keyup', function(e) { 
                var code = (e.keyCode ? e.keyCode : e.which); 
                if (code == 13) { 
                    $('input[id$=RadComboBox1_Input]').blur(); 
                    $('input[id$=RadComboBox2_Input').focus(); 
                    $('input[id$=RadComboBox2_Input]').select(); 
                } 
            }); 
            $('input[id$=RadComboBox2_Input]').bind('keyup', function(e) { 
                var code = (e.keyCode ? e.keyCode : e.which); 
                if (code == 38) { 
                    $('input[id$=RadComboBox2_Input]').blur(); 
                    $('input[id$=RadComboBox1_Input').focus(); 
                    $('input[id$=RadComboBox1_Input]').select(); 
                } 
            }); 
        }); 
            </script> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadComboBox ID="RadComboBox1" runat="server" Skin="Outlook"> 
            <Items> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"  
                    Value="RadComboBoxItem1" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2"  
                    Value="RadComboBoxItem2" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3"  
                    Value="RadComboBoxItem3" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4"  
                    Value="RadComboBoxItem4" /> 
            </Items> 
        </telerik:RadComboBox> 
        <telerik:RadComboBox ID="RadComboBox2" runat="server" Skin="Office2007"> 
            <Items> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"  
                    Value="RadComboBoxItem1" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2"  
                    Value="RadComboBoxItem2" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3"  
                    Value="RadComboBoxItem3" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4"  
                    Value="RadComboBoxItem4" /> 
            </Items> 
        </telerik:RadComboBox> 
    </div> 
    </form> 
</body> 
</html> 
 

it seems that radcombo box can not foreget it's focus and stick with that , therefore when i play with 2 buttons (enter=13 and upper key=38 as you see in the upper code - Jquery) For Changing Their Focus so RadComboBox OnClientFocus does not fire until i click on my page and Click On the RadComboBox Again...
These Lines do not work:
1-$('input[id$=RadComboBox1_Input]').blur(); 
2-$('input[id$=RadComboBox2_Input]').blur();
how can i take focus off from radcombo box and  destroy it's highlight?
thanks a lot




John
Top achievements
Rank 1
 answered on 25 Oct 2011
4 answers
150 views
I have RadGrid control on my page, when I look at it in design view it shows the pager. When I compile the project I see no pager at the bottom of the grid.

Here is my code for the grid.

<telerik:RadGrid ID="rgResults" runat="server" Skin="WebBlue" AllowPaging="true"
            AllowSorting="true" PageSize="20" ShowFooter="true" GridLines="None"
            AutoGenerateColumns="false" onpageindexchanged="rgResults_PageIndexChanged"
            onpagesizechanged="rgResults_PageSizeChanged" EnableViewState="true"
            onsortcommand="rgResults_SortCommand">
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" ShowPagerText="false" />
            <MasterTableView>
                <Columns>
                    <telerik:GridBoundColumn DataField="U_Prefix" HeaderText="Prefix" UniqueName="U_Prefix" SortExpression="U_Prefix"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CardCode" HeaderText="Card Code" UniqueName="CardCode" SortExpression="CardCode"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="U_LastName" HeaderText="Last Name" UniqueName="U_LastName" SortExpression="U_LastName"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="U_FirstName" HeaderText="First Name" UniqueName="U_FirstName" SortExpression="U_FirstName"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Phone1" HeaderText="Phone 1" UniqueName="Phone1" SortExpression="Phone1"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Phone2" HeaderText="Phone 2" UniqueName="Phone2" SortExpression="Phone2"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="E_Mail" HeaderText="Email" UniqueName="E_Mail" SortExpression="E_Mail"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Frozenfor" HeaderText="On Hold" UniqueName="Frozenfor" SortExpression="Forzenfor"></telerik:GridBoundColumn>
                    <telerik:GridHyperLinkColumn DataNavigateUrlFields="CardCode" Text="Edit" DataNavigateUrlFormatString="Customer.aspx?cc={0}"></telerik:GridHyperLinkColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
Blake
Top achievements
Rank 1
 answered on 25 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?