Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
134 views
Hi, 

I use following combobox

<telerik:RadComboBox ID="rcbDaysOfWeek" runat="server" Width="150px"
    CheckBoxes="true" EnableCheckAllItemsCheckBox="true"
    EmptyMessage="No day selected">
    <Localization AllItemsCheckedString="All days" CheckAllString="Select all"  />
    <Items>
        <telerik:RadComboBoxItem Text="Monday" Value="1" Checked="true" />
        <telerik:RadComboBoxItem Text="Tuesday" Value="2" Checked="true" />
        <telerik:RadComboBoxItem Text="Wednesday" Value="3" Checked="true" />
        <telerik:RadComboBoxItem Text="Thursday" Value="4" Checked="true" />
        <telerik:RadComboBoxItem Text="Friday" Value="5" Checked="true" />
        <telerik:RadComboBoxItem Text="Saturday" Value="6" Checked="true" />
        <telerik:RadComboBoxItem Text="Sunday" Value="7" Checked="true" />
    </Items>
</telerik:RadComboBox>

Could you advice me how can I manage to have my custom message if I select 4 days - I want to have "1347" instead of "4 items checked". I want to have values of those selected checkboxed written in the message... 

Thanks a lot... 
Kalina
Telerik team
 answered on 17 Oct 2012
4 answers
115 views
I have created and added tabs in code behind, yet the javascript on tab selected does not show the attribute.

Here is my code:
            var tabPanel = new RadTabStrip();
            tabPanel.OnClientTabSelected = "onTabSelected";
            var newTab = new RadTab() {Text = "All", Selected = true};
            newTab.Attributes["type"] =  "0";
            tabPanel.Tabs.Add(newTab);
 
....
....
            foreach (var department in deparmentsDt)
            {
                var newTab = new RadTab() {Text = department.strDepartmentGroup_Name};
                newTab.Attributes["type"] = department.intDepartmentGroup_ID.ToString();
                tabPanel.Tabs.Add(newTab);
            }


And then my javascript is simply:
function onTabSelected(sender, args) {
    var tab = args.get_tab();
    var attr = tab.get_attributes();
    alert(attr.get_count()+" - " +attr.getAttribute("type") + " - " + tab.get_text());
}


count is always 0 and getattribute is always undefined.

Any help would be appreciated.

Thanks
Loren 
Kate
Telerik team
 answered on 17 Oct 2012
0 answers
40 views
wouh sexy :p

Very nice job
arnaud
Top achievements
Rank 1
 asked on 17 Oct 2012
5 answers
270 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
145 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
230 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
170 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
49 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
103 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
45 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?