Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
304 views
Hi support,

I had added the TableLayoutCssFile property to the <telerik:RadEditor ID="Editor" Runat="server" ...> to customize the "Css Class Layout" dropdown (according to http://www.telerik.com/community/forums/aspnet-ajax/editor/table-wizard-css-style-selector.aspx). Everything works good, but this classes are visible in the "Apply Css" dropdown.

I don't want them to be visible but at the same time I want to have an opportunity to customize the "Apply Css" dropdown.

I found a workaround. It is modification of the <classes> section, but using this method meaning that there are 2 places that I need to edit, which is outside the requirement.

Please advise.
Rumen
Telerik team
 answered on 17 Oct 2012
1 answer
174 views
Hello!  I am using the RadOrgChart with Group Items Overlap to display some information based on our hierarchy.  I have it functioning correctly however the rows are too wide for the screen as shown in the snapshot NoGroupColumnCount.png.  I tried setting the GroupColumnCount to 3 and that resulted in the group items restricted to 3 per line within the nodes as shown in WithGroupColumnCount.png.  Is there a way to limit the number of nodes per line instead of the overlapped group items?
Plamen
Telerik team
 answered on 17 Oct 2012
1 answer
254 views
Hi All,

Here's what I got:

I have a RadCombobox that has three specific challenges:  (1) the recordset is so large that I need LoadOnDemand-style functionality and (2) the combobox needs to be inside a asp.net repeater.  Since it needs to be in a repeater, I do not see this demo working: http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultvb.aspx

Here is the technique I'm currently attempting:

1.  Here is the RadCombobox declaration:

<telerik:RadComboBox ID="PositionRCB" Runat="server" OnClientItemsRequesting="onItemsRequesting" DataSourceID="PositionDS" DataTextField="Info" DataValueField="PK" MarkFirstMatch="True" Width="125px" ShowToggleImage="True" Filter="Contains" EnableAutomaticLoadOnDemand="True" ItemsPerRequest="15">
</telerik:RadComboBox>

2. When the user types, OnClientItemsRequesting fires:

<script type="text/javascript">
 
    function onItemsRequesting(sender, eventArgs) {
 
        var positionText = eventArgs.get_text();
        document.getElementById("<%= HiddenTB_Position.ClientID %>").value = positionText
         
    }
 
</script>  


3.  The JS above writes the user's typing to the following hidden textbox:

<asp:TextBox ID="HiddenTB_Position" runat="server" Text="Grot"></asp:TextBox>


4. Then, I'm trying to get the following DS declaration to update my RadCombobox:

<asp:SqlDataSource ID="PositionDS" runat="server" ConnectionString="<%$ ConnectionStrings:DatabaseCargoMM1 %>" SelectCommand="usp_PickCity" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:ControlParameter ControlID="HiddenTB_Position" PropertyName="Text" Type="String" Name="Param1" />
    </SelectParameters>
</asp:SqlDataSource>

So, the bottom line is that the EnableAutomaticLoadOnDemand the property does not seem to be "re-firing" my datasource with the users typed values.  I'm wondering if (1) their is a way to force these RadComboboxes in the repeaters to fire when the JS above fires or (2) their is another technique that might work.

Thanks a ton for the help!

Jim
Kalina
Telerik team
 answered on 17 Oct 2012
5 answers
200 views
<MasterTableView AutoGenerateColumns="False" DataKeyNames="CustomerID">
                                <RowIndicatorColumn>
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn>
                                    <HeaderStyle Width="20px"></HeaderStyle>
                                </ExpandCollapseColumn>                                 
                                <CommandItemTemplate>
                               <asp:Button ID="LinkButton1" runat="server" ButtonCssClass="button" Text="Print Selected" OnClientClick="PrintRadGrid(); return false;" />         
                                </CommandItemTemplate>                              
                                <Columns>
                                    <telerik:GridBoundColumn HeaderText="Customer ID" DataField="CustomerID" UniqueName="CustomerID">
                                    </telerik:GridBoundColumn>  
                                     <telerik:GridBoundColumn HeaderText="Invoice #" DataField="InvoiceNumber" UniqueName="InvoiceNumber">
                                    </telerik:GridBoundColumn>                                  
                                    <telerik:GridBoundColumn HeaderText="Ship To Terms" DataField="ShipToTerms" UniqueName="ShipToTerms">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Ship Via" DataField="ShipVia" UniqueName="ShipVia">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="OrderStatus" DataField="OrderStatus" UniqueName="OrderStatus">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridButtonColumn CommandName="Print" ButtonType="PushButton" ButtonCssClass="button" UniqueName="Print" Text="Print" />                                                    
                                 </Columns>       


 protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == "Print")
        {
            CODE
        }
}

I want to Print the row data when i click the button

 can anyone help with this code it..............

Thanks in advance
Suren

Daniel
Telerik team
 answered on 17 Oct 2012
0 answers
68 views
The Q3 2012 release brought a major improvement in the databinding of RadHtmlChart and the price is a breaking change:

The DataField property of each series is now DataFieldY.

This is done to provide better databinding options for the rest of the series (e.g. Scatter and ScatterLine got a DataFieldX and Pie got NameField).

More information about the improvements and new features is available in
Q3 2012 Release Notes page
New Features of RadHtmlChart for ASP.NET AJAX Ship a Month Ahead of Schedule blog post
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 17 Oct 2012
1 answer
135 views
Hello
Is there a way to have a multi-column combox box in a GridDropdownColumn instead of a GridTemplateColumn?

Thanks

Cheryl
Eyup
Telerik team
 answered on 17 Oct 2012
1 answer
69 views
Hi ,

I want to show RadAjaxLoadingPanel clientside using following but it seems in new version (v4.30319) show and hide methods are removed.
http://www.telerik.com/help/aspnet-ajax/ajax-show-hide-loadingpanel.html

My requirement is as following

I am binding RadGrid Clientside using 
 <DataBinding Location="~/ResourceManagement/ManageResources.aspx" SelectMethod="wmBindResourcesById" />
<ClientEvents OnRowSelected="RowSelected" OnRowDeselected="RowSelected" OnDataBinding="rgResourceList_DataBinding"
                            OnDataBound="rgResourceList_OnDataBound" OnRowContextMenu="RowContextMenu" OnDataSourceResolved="rgResourceList_OnDataSourceResolved">
                        </ClientEvents>
I want to show RadAjaxLoadingPanel in rgResourceList_DataBinding event and hide in rgResourceList_OnDataSourceResolved
event.

Please suggest for the same.

Maria Ilieva
Telerik team
 answered on 17 Oct 2012
4 answers
259 views
I have a RibbonBar button that when click a RadWindowManager.RadConfirm window opens up. After the "Ok" button is 
click the RadAjaxManager1_AjaxRequest in the code behind is not being fired. However, the javascript is being fired
and returns no errors

the HTML markup and javascript is setup as follows:

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="DailyReportsControl.ascx.vb" Inherits="FXWB.DailyReportsControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        //<![CDATA[
        function alertCallBackFn(arg) {
            return false;
        }
 
        function confirmCallBackFn(arg) {
            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
            if (arg != null) {
                //If user confirms they want to clear all signatures, call server side method   
                if (arg == true) {
                    if (ajaxManager != null) {
                        ajaxManager.ajaxRequest(1);
                        return false;
                    }
                }
                //If user cancels the clear all signatures, then simply return   
                else if (arg == false) {
                    if (ajaxManager != null) {
                        return false;
                    }
                }
            }
        }
        //]]>                                                                        
    </script>
</telerik:RadCodeBlock>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
</telerik:RadWindowManager>

The code-behind loads up other controls dynamically on the page (there is another page identical to this one and the AjaxRequest is firing on that one).
The code-behind for the Request is as follows:

    Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As ObjectByVal e As Telerik.Web.UI.AjaxRequestEventArgsHandles RadAjaxManager1.AjaxRequest
        Select Case e.Argument
            Case "1"
                MyBase.OnDelete(ucFolderList.ListType, ucFolderList.ucFolderControl.objFolder.strFolderType, ucFolderList.SelectedItems)
                MyBase.OnDelete(ucSubfolders.ListType, ucSubfolders.ucFolderControl.objFolder.strFolderType, ucSubfolders.SelectedItems)
                Response.Redirect(Request.Url.ToString())
        End Select
    End Sub


Why is the RadAjaxManager1_AjaxRequest not firing after the confirm button click?
 
Marin Bratanov
Telerik team
 answered on 17 Oct 2012
1 answer
378 views
Hello,
I am using rad grid and opening edit form in popup. The grid have many columns so edit form's height is very high because each rows in edit form have only one text box.   I want to show multiple text boxes in a row for edit. How I will do that.I am using item templates and edit item templates for displaying data.
Kostadin
Telerik team
 answered on 17 Oct 2012
1 answer
88 views
Hi all member
I have a RadWindow which is url to a WebForm .there is a radgrid in webform .so when radwindow is in maximum state i can not to write in radgrid when radgrid is in insert mode
I use RadControls for ASP.NET AJAX Q1 2012 SP1
this problem is when

RestrictionZoneID value set to a div tag
please helpt


Maria Ilieva
Telerik team
 answered on 17 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?