Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
1.3K+ views
Hello,

I'm new in using the Telerik Controls and have a question regarding the use of the RadListBox.

I have a RadListBox on my page with the CheckBoxes set to "true". How can you set the RadListBox that when a user selects an item, the checkbox is set as well and when a user checks a CheckBox, the item gets selected.

Or is there a way to just have the CheckBoxes enabled in a RadListBox and disable the selection method.

Thanks

Regards

Degenhardt Gerrit
Nahwin
Top achievements
Rank 1
 answered on 22 Jul 2013
3 answers
312 views
I have two EntityDataSources. One for grid and second for column filter:

<asp:EntityDataSource ID="dsTasks" runat="server" ConnectionString="xxx" DefaultContainerName="xxx" EnableFlattening="False" EntitySetName="Tasks" EntityTypeFilter="Task" Include="Type">
</asp:EntityDataSource>
<asp:EntityDataSource ID="dsType" runat="server" ConnectionString="xxx" DefaultContainerName="xxx" EnableFlattening="False" EntitySetName="Types" EntityTypeFilter="Type">

I want to sort and filter grid by type name:

<telerik:GridTemplateColumn DataField="TypeId" HeaderText="Type" SortExpression="Type.Name" UniqueName="TypeId">
        <ItemTemplate>
            <asp:Label ID="lbl" runat="server" Text='<%# Eval("Type.Name") %>'></asp:Label>
        </ItemTemplate>
        <FilterTemplate>
            <telerik:RadComboBox ID="cmb" DataSourceID="dsType" DataTextField="Name"
                DataValueField="Id" Height="200px" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("TypeId").CurrentFilterValue %>'
                runat="server" OnClientSelectedIndexChanged="TypeIdIndexChanged">
            </telerik:RadComboBox>
            <telerik:RadScriptBlock ID="rsb" runat="server">
                <script type="text/javascript">
                    function TypeIdIndexChanged(sender, args) {
                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                        tableView.filter("TypeId", args.get_item().get_value(), "EqualTo");
                    }
                </script>
            </telerik:RadScriptBlock>
        </FilterTemplate>
    </telerik:GridTemplateColumn>

In my code filtering work fine, but I can't sort. I have "Invalid input string format." error.

When I changed "DataField" value to "Type.Name" sorting works fine, but filter always show empty grid.
Andrey
Telerik team
 answered on 22 Jul 2013
3 answers
97 views
Is there a way to have the RadAutoCompleteBox select the top most item when the user tabs out of the field?  
Bozhidar
Telerik team
 answered on 22 Jul 2013
1 answer
147 views
We are using the Radgrid and the problem is lines are sorted by the number in the textbox.

Somehow the text in the box gets left aligned and we need it to be right aligned even though in the code we have made right aligned. On mouse over the text starts getting right aligned but when page is reloaded it gets left aligned again.

We are using .net 4 and IE9.
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Jul 2013
2 answers
215 views
i had a combo box near the radmenu, there is a overlay problem when i click the combo box...

how can i set the combo box on top of the radmenu ? thanks

 

<telerik:RadComboBox AutoPostBack="true" Width="200"
AppendDataBoundItems="true" ID="cb_personal" runat="server" Skin="Sunset" EnableOverlay="true" HighlightTemplatedItems="true">
<%--<Items><telerik:RadComboBoxItem Text="-- Select --" Value="-1" /></Items>--%>
</telerik:RadComboBox>
  
 
 
<telerik:RadComboBox runat="server" ID="RadComboBox_Project" EnableOverlay="true"
                      DataTextField="DisplayName"  DataValueField="ProjectID" Skin="Sunset"
                              EnableLoadOnDemand="True" DataSourceID="ObjectDataSource2"
                      OnSelectedIndexChanged="RadComboBox_Project_SelectedIndexChanged" AutoPostBack="True"
                              HighlightTemplatedItems="true" Label="" Width="100%" NoWrap="True">

Joe
Top achievements
Rank 1
 answered on 22 Jul 2013
3 answers
389 views
Dear All,

I have the following code to print QR Code dynamically:
     TableRow rw = new TableRow();

            RadBarcode barcode1 = new RadBarcode();
            barcode1.Type = BarcodeType.QRCode;
            barcode1.Attributes.Add("Width","50px");
            barcode1.Attributes.Add("Height", "50px");
     
            barcode1.ShowText = true;
            barcode1.Text = "ABCDE";
           
            TableCell cell = new TableCell();
            cell.Controls.Add(barcode1);
            cell.Attributes.Add("Width","150px");
            cell.RowSpan = 8;
            rw.Cells.Add(cell);

I have specify the width and height at 50px. however, the actual output always at 159px no matter what size i specify.

The following is the output:
<tr><td Width="120px" rowspan="8"><span id="ctl02" class="RadBarcode" Width="100px" Height="100px" style="display:inline-block;height:150px;width:300px;"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="159px" height="159px" viewBox="0 0 106 106" >

can any one tell me how to change the svg width and height attributes? or any other work around?

greatly appreciate for any helps.

regards,
Richard

Richard
Top achievements
Rank 1
 answered on 22 Jul 2013
1 answer
220 views
I am using VS2012, C#, .Net 4.5, and the just-released version of Telerik controls in a Visual Studio project (.sln).

Prior to installing the new release today, I was receiving the error shown in the attached screen capture when my code behind file was executing.  I have been converting a VB page to run in C# in this new project and it was running fine (not complete, but compiling clean and executing).  Now all of a sudden, I am receiving the attached error message about being unable to load a previous version of the AJAX controls.

About that time I received a notification that a new release was available.  I thought this might be a convenient method out of this problem so I downloaded and installed the release, re-opened the Visual Studio 2012 project and ran the Telerik upgrade procedure which ran fine with no errors.  I have included a screen capture of the Telerik library on my hard drive so you can see what it is currently installed.

I have also included a screen capture of the solution explorer from Visual Studio showing the version number of the referenced Telerik .dll.

The error message (dll_issue.png) says it is being asked to load 2013.1.220.45.  I have searched this project repeatedly for any reference to this version or to the public key token referenced in the error message to no avail.

Questions:
(1) Why is this version being called for?
(2) What can I do to eliminate this problem?

I am completely unable to test any code in this solution with this problem.  This project is my highest priority.  Any help would be most appreciated!

Lynn

Lynn
Top achievements
Rank 2
 answered on 21 Jul 2013
4 answers
181 views
Hi,
I want to select specific tab in code behind.
Thanks in advance
Beshoy
Top achievements
Rank 1
 answered on 21 Jul 2013
0 answers
132 views
Hi All,

I just want to ask if its possible to customize the RadSlidingPane Header. Reason I want to do this is I wanted to add more buttons and other controls like RadCombo etc. Is there a template that can be added to customize the header or just simply hide the header, and I will just make my own header with my buttons to control the ducking of pane. 

Thanks in advance,
Rj
RJ
Top achievements
Rank 1
 asked on 20 Jul 2013
1 answer
137 views
Hi,

We are facing a very unusual problem in our solution,We are using a rad-combo-box inside Raddock where the autopostback property is true. When ever we are selecting any item from the combo,the grid column alignments are  rearranged.

Below is our code for reference:-
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Purchase_summary.aspx.cs" Inherits="Purchase_Purchase_register" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="MS_Control/MultipleSelection.ascx" TagName="MultipleSelection" TagPrefix="uc1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Purchase Summary</title>
</head>
<body>
    <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
     <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" EnableLinqExpressions="false"
            AllowSorting="true"  Skin="Sunset"
            ShowFooter="True" AllowFilteringByColumn="true" ShowGroupPanel="true"
             onneeddatasource="RadGrid1_NeedDataSource" >
            <ExportSettings HideStructureColumns="true" IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true" />
            <MasterTableView CommandItemDisplay="Top" ShowGroupFooter="true" GroupLoadMode="Client" TableLayout="Fixed" Width="600px">
            <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true"
                ShowExportToCsvButton="true" ShowExportToPdfButton="true" ShowAddNewRecordButton="false" />
                 <Columns>
                 
                    <telerik:GridBoundColumn  DataField="AcName"  HeaderText="PartyName" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="80px" ItemStyle-HorizontalAlign="Left" FooterText="TOTAL " />
                    <telerik:GridBoundColumn  DataField="iQty" HeaderText="Quantity" HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="50px" ItemStyle-HorizontalAlign="Right" Aggregate="Sum" FooterText=" " FooterStyle-HorizontalAlign ="Right"  />
                     <telerik:GridBoundColumn  DataField="iAmount" HeaderText="Amount" HeaderStyle-HorizontalAlign="Right" HeaderStyle-Width="50px" ItemStyle-HorizontalAlign="Right" Aggregate="Sum" FooterText=" " FooterStyle-HorizontalAlign ="Right"   />
                    
                    
                     
                </Columns>               
            </MasterTableView>
            <ClientSettings  AllowKeyboardNavigation="true"  EnableRowHoverStyle="true" AllowGroupExpandCollapse="true" ReorderColumnsOnClient="True" AllowDragToGroup="true" AllowColumnsReorder="True">
              <Resizing AllowColumnResize="true" />           
            </ClientSettings>
            <GroupingSettings ShowUnGroupButton="true" />
             <FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid> 
        </div>
        <div>
         
        </div>
       <div>
        <telerik:RadDock ID="RadDock1" runat="server" Width="470px" Left="10" Top="40"
             Title="Search Companion"  DefaultCommands="ExpandCollapse">
            <ContentTemplate>
                <table  style="width: 430px" >
                  <tr>
                     
                        <td> From</td>
                        <td>
                            <telerik:RadDatePicker ID="rdpFrom" runat="server" Width="100"  Culture="(Default)">
                                <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="Outlook"></Calendar>
 
                                <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
 
                                <DateInput DisplayDateFormat="dd/MM/yyyy"   ></DateInput>
                            </telerik:RadDatePicker>
                        </td>
                        <td> To</td>
                        <td>
                            <telerik:RadDatePicker ID="rdpTo" runat="server" Width="100"  Culture="(Default)">
                                <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" Skin="Outlook"></Calendar>
 
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
 
                                    <DateInput DisplayDateFormat="dd/MM/yyyy"   ></DateInput>
                            </telerik:RadDatePicker>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            Select Billing Term
                        </td>
                        <td align="left">
                                <telerik:RadComboBox ID="ddlbillterm" runat="server" Width="120px" DataMember ="BTermNm"
                                   DataTextField ="BTermNm" DataValueField="Code"    AutoPostBack ="true" 
                                    onselectedindexchanged="ddlbillterm_SelectedIndexChanged" >
                                 
                                                                 
                                                </telerik:RadComboBox>
                         
                                
                        </td>
                        <td align="left">
                           Select Party
                        </td>
                        <td align="left">
                            <asp:CheckBox ID="ChkAll" runat="server" Checked="True" Text="All"
                                AutoPostBack="true" oncheckedchanged="ChkAll_CheckedChanged1" />
                            <br/>
                           <uc1:MultipleSelection ID="chkCustomer" runat="server" width="700px"/>                             
                        </td>
                      </tr> 
                         
                     
                   
                     
                     
                     
                       
                            </table>
                    <table >
                        
                    <tr>
                         
                        <td colspan="4" align="center">
                            <telerik:RadButton ID="rbtShow" runat="server" Text="Preview"
                                onclick="rbtShow_Click">
                            </telerik:RadButton>
                            
                             
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </telerik:RadDock>
                        
                       
                         </div>
     
     
    </form>
</body>
</html>
We tried to use UPDATE PANEL also..But is making no change...Please check also the attached snapshots.

Thanks
Purojit



Purojit
Top achievements
Rank 1
 answered on 20 Jul 2013
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?