Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
203 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
346 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
201 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
158 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
123 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
124 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
13 answers
221 views
I have several ComboBoxes employing the EnableLoadOnDemand mode.

If the user chooses an item where the ItemDescriptionShort and ItemDescriptionLong fields are different lengths, the selection is not saved. The ComboBox.SelectedValue gets set to blank in this case.

On the server side: User start typing or scrolling the ComboBox. We pull data from the database and set each item's value (ItemCode), then set the item's text (ItemDescriptionLong). Then add 2 attributes to the item, DescShort (ItemDescriptionShort), and Code (ItemCode).

On the client side: User selects an item. We pull the aforementioned attributes (DescShort, Code) and use them to set the ComboBox's text and value. Setting ComboBox's text = DescShort (ItemDescriptionShort), and setting the ComboBox's value to ItemCode.

Somewhere after this, ComboBox's SelectedValue becomes blank if the user has selected an item where the ItemDescriptionShort and ItemDescriptionLong differ in length.


This worked without issue until we upgraded to Telerik version 2013.1.403.40.

Is this a breaking change that I missed, is it a bug, or am I doing something wrong employing the EnableOnDemand mode? There is a lot of code to change.

Thanks,
Robert
Robert Helm
Top achievements
Rank 1
 answered on 19 Jul 2013
6 answers
496 views
Maybe someone can help me with this one.  I have a grid for which I am trying to create a pop-up window with RadWindowManager opening a page which will allow entry for certain invoice and billing information that will get written to all selected records.  I want to pass the selected record datakey IDs to the window's page as a query string.  Everything is working great, window opens, see what I want, except for actually getting the selected detail table records.  Below is the the client side script I've cobbled together from several differrent examples:

            function GetSelectedIDs() {                  
                var grid = $find("RadGrid1");  
                var MasterTable = grid.get_masterTableView();  
                  
                var selectedRows = MasterTable.get_selectedItems();  
                var selIDs = new Array(selectedRows.length);  
                for (var i = 0; i < selectedRows.length; i++) {  
                    var row = selectedRows[i];  
                     selIDs[i] = MasterTable.getCellByColumnUniqueName(row, "ID").innerHTML                   
                }  
                var oWnd = radopen("BilledUpdate.aspx?PosIDs=" + selIDs.join(","), "BilledUpdate");  
                oWnd.center();  
                return false;  
            } 

This works great to get selected records in the master table (which I disabled record selecting in the master), but isn't helping at all for the selected detail records.  I am calling the snippet above from a custom command item template button, shown below:

                        <CommandItemTemplate> 
                            <asp:LinkButton ID="cmdBillSelect" runat="server" OnClientClick="GetSelectedIDs();" CommandName="BillSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" /> Bill Selected</asp:LinkButton> 
                            <asp:LinkButton ID="cmdNonBillable" runat="server" CommandName="NonBillable"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" /> Mark Non-Billable</asp:LinkButton> 
                        </CommandItemTemplate> 

Any suggestions?  Thanks.
Tommy
Top achievements
Rank 1
 answered on 19 Jul 2013
2 answers
995 views
Hello everyone,

Our marketing department has asked us to evaluate RadControls for them.  They appear to be under the impression that RadControls is a Sitefinity enhancement that will give them more "plug and play"-like options.  However, everything I've been able to find indicates that this is actually closer to an SDK than anything else.  I don't have an extensive amount of time to play around or develop anything using RadControls at this time, so I was hoping someone here could give me the "RadControls for Dummies" overview.

That being said, are RadControls just additional tools for development within Visual Studio?

Sincerely,
Will
Will
Top achievements
Rank 1
 answered on 19 Jul 2013
2 answers
109 views
I'm trying to show a simple modal notification on page load but I get an error when I call show() on the window. can someone tell me what I'm missing?

TypeError: wnd is null
wnd.show();

Thanks

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<telerik:RadWindow ID="Window1" runat="server" Width="360px" Height="260px">
    <ContentTemplate>
        <p>Thank you for requesting a free issue.</p>
    </ContentTemplate>
</telerik:RadWindow>
 
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        var key = "magazine"
 
        var regex = new RegExp("[\\?&]" + key + "=([^&#]*)");
        var qs = regex.exec(window.location.href);
   
        if(qs != null) {
            if (qs[1] == "confirmed") {
                ShowMagazineSubscriptionConfirmed();
            }
        }
 
        function ShowMagazineSubscriptionConfirmed() {
            var wnd = $find("<%=Window1.ClientID %>");
            wnd.show();
        }
    </script>
</telerik:RadCodeBlock>
Jeff
Top achievements
Rank 1
 answered on 19 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?