Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
261 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
528 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
1.0K+ 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
117 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
4 answers
342 views
Which could be a simple way to limit the AutoCompleteColumn suggestion to say 10 or 50 or whatever on a large dataset and how to apply this filtering for the AutoCompleteColumn server side so that the "TOP n" clause is injected in the SELECT retrieving data for the autocomplete column? (with an objectdatasource for example or other method)
I think this is quite a common scenario together with the minimum character required to trigger suggestion.

Another question is if it is possible to retrieve an bind an IQueryable(of String) to the AutoCompleteColumn thus avoid specifying data text and data value. Let's say I'm filtering a user name, I would just retrieve the UserName field in my datasource and passa back an array/iqueryable/list of string and not a complex object.

Thanks in advance.
Massimiliano
Top achievements
Rank 1
 answered on 19 Jul 2013
0 answers
133 views
Hi guys,

Please examine the following poll and cast your vote in order to make the choice whether this change should be implemented: http://feedback.telerik.com/Project/108/Feedback/Details/53978-poll-the-default-value-of-the-newlinemode-property-in-radeditor-should-be-p.

The RadEditor team
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 19 Jul 2013
1 answer
63 views
Hi,


I'm using RadComboBox  while typing the letter it pull out exact match it is working in Firefox but it will not support IE .

Example type In - >populate India working in Firefox not in IE .



<telerik:RadComboBox ID="radSpeakerAlignment1" EmptyMessage="Please select ..." OnClientDropDownClosing="onSpeakerAlignment1Closing"
                                    HighlightTemplatedItems="true" AllowCustomText="true" TabIndex="-1" OnClientBlur="onMultiSelectBlur"
                                    SkinID="combo" runat="server" Width="180px" Height="120px"  Style="display: block !important;" MarkFirstMatch="true">
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                    <ItemTemplate>
                                        <div onclick="StopPropagation(event)">
                                            <asp:CheckBox Width="100%" ID="chkSpeakerAlignment1" runat="server" onclick="onSpeakerAlignment1CheckBoxClick(this)"
                                                Text='<%#DataBinder.Eval(Container.DataItem, "UserName")%>' />
                                           <asp:Label ID="lblchkAlignment1" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "FirstNameLastName")%>'  style="display:none"/>
                                        </div>
                                    </ItemTemplate>
                                </telerik:RadComboBox>
Kate
Telerik team
 answered on 19 Jul 2013
1 answer
205 views
Hi,
  
We are using Radgrid and defining columns along with widths at design time like this:
  
<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" GroupingEnabled="False" Height="215px" Width="99%" OnItemCommand=" RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound" OnPreRender="RadGrid1_PreRender" OnUnload="RadGrid1_Unload" OnBiffExporting="RadGrid1_BiffExporting">
            <ExportSettings ExportOnlyData="True" HideStructureColumns="True" OpenInNewWindow="True" FileName="TransactionSummary">
                <Excel Format="Biff" AutoFitImages="True" />
            </ExportSettings>
            <ClientSettings AllowExpandCollapse="False" AllowGroupExpandCollapse="False">
                <Selecting EnableDragToSelectRows="False" />
                <Scrolling AllowScroll="True" />
                <Resizing AllowColumnResize="True" ShowRowIndicatorColumn="False" />
            </ClientSettings>
            <MasterTableView DataKeyNames="TransactionID" AllowNaturalSort="false">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>                 
                <Columns>
                    <telerik:GridBoundColumn AllowFiltering="False" DataField="TransactionID" Groupable="False" HeaderText="ID" ReadOnly="True" Reorderable="False" ShowFilterIcon="False" UniqueName="TransactionID" HeaderStyle-Width="5%" HeaderTooltip="Transaction ID Number" HeaderButtonType="None">
                        <HeaderStyle Width="5%" />
                        <ItemStyle HorizontalAlign="Left" Wrap="false" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AllowFiltering="False" DataField="Status" Groupable="False" HeaderText="Status" ReadOnly="True" Reorderable="False" ShowFilterIcon="False" UniqueName="Status" HeaderStyle-Width="8%" HeaderTooltip="Status" HeaderButtonType="None">
                        <HeaderStyle Width="8%" />
                        <ItemStyle HorizontalAlign="Left" />
                    </telerik:GridBoundColumn>
  
My grid has around 13 columns, but only 10 are set to display true. Out of 3 (display – false), one column gets to be shown when user clicks on button to show it.
Some of the column’s display property is set to false. So, initially when grid is loaded which ever the columns are displayed, we made sure their total width comes to 99%. At run time based on some conditions, we are setting one of the column to be displayed. In order to display, we are adjusting the widths of columns by taking total visible columns like this:
  
double colPercentChange = (double)13 / colCnt;
  
 foreach (GridColumn col in pRgdTrans.Columns)
                    {
     if (col.Display == true)
     {
        double colWidthPercent = (double)col.HeaderStyle.Width.Value; // gridWidth;
        col.HeaderStyle.Width = Unit.Percentage(colWidthPercent - colPercentChange);
        col.ItemStyle.Width = Unit.Percentage(colWidthPercent - colPercentChange);
     }
  }
  
For all the columns it is working fine except TrnsactionID which is DataKey. The column width is getting doubled every time I click on button to make that column visible. All the columns are gridbound columns or template columns.
  
I appreciate your response.
Thanks,
Katta
Venelin
Telerik team
 answered on 19 Jul 2013
10 answers
233 views
When I create a one hour appointment on a single day in scheduler, in Day and Week Views it shows up correctly. In Month and Timeline Views however, it shows the appointment extending past it's actual date into the next day - as if it were an appointment from 9/3/08 10:30 AM to 9/4/08 10:30 AM for example. I've tried several different skins and they all have this problem. Is this a bug in the Scheduler control? 

Thanks,

Kevin Sanborn
Hall Data Inc. 
Boyan Dimitrov
Telerik team
 answered on 19 Jul 2013
3 answers
115 views
hai
  i have donunt chart in that i use seriesitems for pieseries ,seriesitems is common for all chart ,but in vs2010 if open in code behind it will show error with underline green color .if i move cursor to seriesitem it show error like " SeriesItems not support in Donutchart in telerik radhtml chart...." like that it show.
The error is comming when i use upgrade wizard in vs2101.
why? in vs2012 if i open code behind it not show any error.

in both visual studio i try upgrade wizard also ,both are same telerik version.

pls reply me asap
   Aravind
Danail Vasilev
Telerik team
 answered on 19 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?