Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
179 views
Is there a way that i can trigger the popup by user click on input field (textbox)?  Thank you.
Joseph
Top achievements
Rank 1
 answered on 27 Jun 2014
4 answers
136 views
Hi, im trying to get access to the value from the data that is feed by a webservice. The data is displayed well, but I want that when the page load, the first item must be selected in some case, so I need to feed the selected value for this, but I don't have it. So my problem is that I can't access the radcombobox.items from anywhere.

01.<telerik:RadScriptBlock runat="server">
02.  <script type="text/javascript">
03.    function onClientSelectedIndexChangingAddress(sender, eventArgs)
04.    {
05.      if (!eventArgs.get_item() || eventArgs.get_item().get_value() == "")
06.      {
07.        eventArgs.set_cancel(true);
08.      }
09.    }
10. 
11.    function onClientSelectedIndexChangedAddress(sender, eventArgs)
12.    {
13.      var idTxtLastSelectedItem = sender.get_id();
14.      idTxtLastSelectedItem = idTxtLastSelectedItem.substring(0, idTxtLastSelectedItem.indexOf("oucAddressDropDownExtended") + 26) + "_txtLastSelectedItem";
15.      document.getElementById(idTxtLastSelectedItem).value = sender.get_text();
16.      sender.clearItems();
17.    }
18. 
19.    function onClientItemsRequestingAddress(sender, eventArgs) {
20.      var idTxtLastSelectedItem = sender.get_id();
21.      idTxtLastSelectedItem = idTxtLastSelectedItem.substring(0, idTxtLastSelectedItem.indexOf("oucAddressDropDownExtended") + 26) + "_txtLastSelectedItem";
22. 
23.      var txtUserGroupID = document.getElementById("<%= txtUserGroupID.ClientID %>");
24.      var txtUserID = document.getElementById("<%= txtUserID.ClientID %>");
25.      var txtTermChooseAnAddress = document.getElementById("<%= txtTermChooseAnAddress.ClientID %>");
26.      var txtTermAddressNoMatch = document.getElementById("<%= txtTermAddressNoMatch.ClientID %>");
27.      var txtTermAddressResults = document.getElementById("<%= txtTermAddressResults.ClientID %>");
28.      var txtHidePartnerPrincipalAddress = document.getElementById("<%= txtHidePartnerPrincipalAddress.ClientID %>");
29. 
30. 
31.      var lastItemRequested = document.getElementById(idTxtLastSelectedItem).value;
32.      if (lastItemRequested == sender.get_text()) {
33.        eventArgs._context.Text = "";
34.      }
35. 
36.      if (txtUserGroupID.value != "") {
37.        eventArgs.get_context()["UserGroupID"] = txtUserGroupID.value;
38.      }
39. 
40.      if (txtUserID.value != "") {
41.        eventArgs.get_context()["UserID"] = txtUserID.value;
42.      }
43. 
44.      eventArgs.get_context()["TermChooseAnAddress"] = txtTermChooseAnAddress.value;
45.      eventArgs.get_context()["TermAddressNoMatch"] = txtTermAddressNoMatch.value;
46.      eventArgs.get_context()["TermAddressResults"] = txtTermAddressResults.value;
47.      eventArgs.get_context()["HidePartnerPrincipalAddress"] = txtHidePartnerPrincipalAddress.value;
48.    }
49.    
50.  </script>
51.</telerik:RadScriptBlock>



1.<telerik:RadComboBox ID="lstShippingAddress" runat="server" EnableEmbeddedSkins="false" Skin="eCom" MaxHeight="250px" EnableLoadOnDemand="True" EnableVirtualScrolling="True" ShowMoreResultsBox="True" AllowCustomText="true" DropDownWidth="500px" OnClientItemsRequesting="onClientItemsRequestingAddress" OnClientSelectedIndexChanging="onClientSelectedIndexChangingAddress" OnClientSelectedIndexChanged="onClientSelectedIndexChangedAddress" >
2.  <WebServiceSettings Method="GetAddresses" Path="/EcomUtilsWS.asmx" />
3.</telerik:RadComboBox>
Maxim
Top achievements
Rank 1
 answered on 27 Jun 2014
1 answer
67 views
Hi boss,
Treelist with Repeater control inside the template column of treelist, I want to export to Excel or pdf  but the repeater control is not showing the export file.
Any solution for that, I will be very thankfull to you.

Thankx

Gul Ahmad
Sr. Software Engineer

Kostadin
Telerik team
 answered on 27 Jun 2014
14 answers
342 views
switched to 2010.1.706.35

1. When I export, this column has empty results.

2. Is there a way to suppress exporting of certain columns?  
Answer:  RadGrid1.Columns(Col.Status).Visible= False

                    <telerik:GridTemplateColumn HeaderStyle-Width="100px" UniqueName="Status" HeaderText="Status" DataField="Status" SortExpression="Status"> 
                        <ItemTemplate>  
                            <asp:Label ID="lblStatus" runat="server" Text='<%# Bind("Status") %>'></asp:Label>  
                        </ItemTemplate> 
                        <FilterTemplate> 
                            <telerik:RadComboBox runat="server" ID="StatusFilter" Width="90px" Skin="Simple"  
                                DataSource='<%# (New string() {"", "Active", "Completed", "Error"}) %>' 
                                CollapseAnimation-Type="None" ExpandAnimation-Type="None" 
                                SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("Status").CurrentFilterValue %>' 
                                OnClientSelectedIndexChanged="StatusIndexChanged" >                  
                            </telerik:RadComboBox> 
                             
                            <telerik:RadScriptBlock ID="StatusScriptBlock" runat="server"> 
                                <script type="text/javascript"> 
                                    function StatusIndexChanged(sender, args) { 
                                        var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>"); 
                                        tableView.filter("Status", args.get_item().get_value(), "EqualTo"); 
                                    } 
                                </script> 
                            </telerik:RadScriptBlock>                            
                        </FilterTemplate>                                            
                    </telerik:GridTemplateColumn>    

Kostadin
Telerik team
 answered on 27 Jun 2014
1 answer
85 views
Hi,

In a special scenario, we're using a RadEditor to let the user enter a subject line for sending online emails. We use the editor here because we need the editor toolbar (with some custom made tools) to allow the user to insert some special 'tokens' in that subject line.

Because obviously we only want one line of text in this scenario, and we want to visually discourage the user to enter more than one line, we use the RadEditor with a height set to only 50px (height="50")

This small editor displays fine on eg. computers and Android-tablets, but the Apple iPad displays only a very tiny editor. So tiny in fact, that it is impossible to put a cursor in it to start typing.

Any ideas how to solve this?
Ianko
Telerik team
 answered on 27 Jun 2014
2 answers
125 views
The goal is to take an already finished rad bar chart and change the labels along the x axis to French.  My first thought was to try this:

  private void ProcessXAxis(ChartXAxis xAxis)
        {
            if (xAxis == null || xAxis.Items == null) return;

            foreach (AxisItem item in xAxis.Items)
            {
                var replacementPhrase = GetFilteredReplacementPhrase(item.LabelText);
                if (string.IsNullOrEmpty(replacementPhrase) || string.IsNullOrWhiteSpace(replacementPhrase)) continue;
                item.LabelText = replacementPhrase;
            }
        }

Trouble is, for this particular chart, there are no items in the collection.  Where the chart gets its labels, other than obviously from the data row column names, is beyond me.  Apparently I don't understand the ChartXAxis Item collection enough and assumed incorrectly it represented each data row. It doesn't.

So, this leaves me with the question - how do I find the correct class containing the textblock that is obviously being generated in HTML as a "Text" element under the <g> element?  Please understand that all I have to work with at the point I am doing this processing is an already created chart.  I have no access to the data source and can only use the class trees available from Telerik.

KT
Kerry
Top achievements
Rank 1
 answered on 27 Jun 2014
1 answer
50 views
I have a scenario, pretty classic, where I need to pair up two string items (from two different list) and create a third list that shows the pairing. Basically a creating field mappings. I could use three listbox where what is highlighted in listbox1 and listbox2 and user clicks button to create mapping into listbox3, but thought there might be a better way with drag and drops to do this. Any ideas, recommendations?
Ianko
Telerik team
 answered on 27 Jun 2014
11 answers
393 views
Hi,

I have been playing around with the Rad Grid client side support and I am able to make everything work on the client side using the API except for the grouping.  I tried using the groupColumn method of the master table view but it does not work.  I do my binding on the client using the client side API of the radgrid.  I hope you can help me or do anyone has sample code that I can use.

Thanks,
Ryan
Pavlina
Telerik team
 answered on 27 Jun 2014
5 answers
310 views
Hi, my boss just upgraded from 2008.1.515.35 to the 2009.1.402.35 version of the Telerik ASP.Net AJAX controls (I believe from Q3 2008 to Q1 2009) and now I'm getting the following two problems...

Problem 1

Telerik.Web.UI.GridFilterMenu with ID='rfltMenu' was unable to find embedded skin with name 'ourcustomskin'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

It looks like the rfltMenu is auto generated by the control, as I can't find it.  I rolled things back to the older version of the control and everything works fine.  Did the underlying skin structure change slightly?  Anybody seen this before?  I'm being lazy here, if I dig hard enough I bet I can fix this, but if someone has a quick fix I'm all ears.  Problem two is a little more challenging.

Problem 2

We have a custom implimentation of the templategridcolumn that is stackable (i.e. you can have multiple data items per row).  Usually we stack two data items per custom template column.  Again, with the new version of the controls, filtering no longer works where before it did (could be related to problem 1).  It looks like the Javascript generated by the Telerik will no longer fire the filter event if the first filter column textbox is empty in the column.  In most scenarios that would be fine, but since we have two or more filter texboxes (one per data item in the row) you could be filtering off the second textbox while leaving the first filter text box blank.  Anyone have problems like this?  Is there a decent example of over-riding the default javascript filtering behavior so we can pull this off?

I think I will hold off posting source code for now, probably have to open a ticket.  But if anyone has encountered these issues any help you can offer would be helpful. Thanks.
Bimar
Top achievements
Rank 1
 answered on 27 Jun 2014
2 answers
214 views
Hi all,

I have a pretty large RadGrid with a lot of columns. I'd like to have a column picker outside the grid itself, so that I can show that to the visitor in a more structured way. I know I can enable a ContextMenu for the Grid, but that is not the way I want the user to interact, since it is not that nice (a really long  list with checkboxes).

How can I bind e.g. a CheckboxList or some other control to the available columns on the Grid and hide or show them?

Best,
Daniel
Daniel Plomp
Top achievements
Rank 2
 answered on 27 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?