Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
218 views
hi, i have a combobox with filtering, i want to make sure that the text entered in combobox is item in list so i'm using SelectedValue method. Lets say i have database with ID : CUST01, when i type "CUST01" in combobox and hit check button it displays correctly "Item in list", but when i type "cust01" in combobox it displays "not item in list". I didn't turn on the case-sensitive property, neither did i have allowed custom text property. I'm using 2011 Q1 version, i don't know if this problem exist in the latest version, code belows

ASPX
<telerik:RadComboBox ID="cboCust" Runat="server" Width="178px"
    DropDownWidth="500px" HighlightTemplatedItems="True"
    EmptyMessage="Select Customer" EnableLoadOnDemand="True" Filter="Contains"
    Height="250px" MarkFirstMatch="True" AutoPostBack="True">
    <HeaderTemplate>
        <table style="width:415px; text-align:left">
            <td style="width:50px;">ID</td>
            <td style="width:200px;">Name</td>
            <td style="width:200px;">Address</td>
        </table>
    </HeaderTemplate>
    <ItemTemplate>
        <table style="width:415px; text-align:left">
            <td style="width:50px;">
                <%# DataBinder.Eval(Container.DataItem, "ID")%>
            </td>
            <td style="width:200px;">
                <%# DataBinder.Eval(Container.DataItem, "Name")%>
            </td>
            <td style="width:200px;">
                <%# DataBinder.Eval(Container.DataItem, "Address")%>
            </td>
        </table>
    </ItemTemplate>
</telerik:RadComboBox>

VB
Protected Sub cboCust_ItemsRequested(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles cboCust.ItemsRequested
    cSQL = "SELECT * FROM Customer"
    With cboCust
        .DataSource = FillDataset(cSQL)
        .DataTextField = "ID"
        .DataValueField = "ID"
        .DataBind()
    End With
End Sub
 
Protected Sub btnCheck_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCheck.Click
    If cboCust.SelectedValue = "" Then
        lblMsg.Text = "Not item in list"
    Else
        lblMsg.Text = "Item in list"
    End If
End Sub
Silver
Top achievements
Rank 1
 answered on 14 Dec 2011
2 answers
91 views
Would it be possible to plot XY line with marker as follows?

Where each series has an individual set of x and y values.
e.urj
Top achievements
Rank 2
 answered on 14 Dec 2011
2 answers
107 views
I have a problem with Internet Explorer 9 with Rad List Box's extending to the bottom of the page on first load. See attached image.
I have tested this with Firefox, Chrome and older versions of IE and IE 9 does this everytime on first load on any of my Rad List Box's. I have also removed any custome CSS sheets from the project with the same results.

Here is the code for the Rad List Box;
<table>
    <tr>
    <td>
        <telerik:RadListBox ID="countiesRLB" runat="server" DataKeyField="county_name" AllowTransfer="true" TransferToID="selectedcountiesRLB" AllowTransferOnDoubleClick="true" DataSortField="county_name" DataTextField="county_name" DataValueField="county_name" Height="200px" Width="175px" Visible="false" SelectionMode="Multiple" Sort="Ascending" ontransferred="countiesRLB_Transferred" AutoPostBackOnTransfer="true">
            <HeaderTemplate> Counties</HeaderTemplate>
        </telerik:RadListBox>
    </td>
    <td>
        <telerik:RadListBox ID="selectedcountiesRLB" runat="server" Height="200px" Width="150px" Visible="false" SelectionMode="Multiple">
            <HeaderTemplate> Selected Counties</HeaderTemplate>
        </telerik:RadListBox>
    </td>
    </tr>
</table>
Scott Marx
Top achievements
Rank 1
 answered on 14 Dec 2011
1 answer
134 views
Hi all, I have a custom WCF service hosted in Sharepoint layouts folder, and I'm trying to do something like this:

http://demos.telerik.com/aspnet-ajax/combobox/examples/loadondemand/wcf/defaultcs.aspx

The service is effectively invoked but the context is empty (the dictionary doesn't contain any item).
Also, if I also "hardcode" the list of results to be returned, the combobox doesn't bind anything (seems the context is also empty on its way back to the page).

My interface is defined as follows:

    [ServiceContract]
    public interface IACT
    {
        [OperationContract]
        RadComboBoxData GetCustomerOrderHistoryTelerik(RadComboBoxContext context);
    }

The class is currently a copy of what's in the sample to make it work (with the following attributes applied to it):

    [BasicHttpBindingServiceMetadataExchangeEndpoint]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class ACT : IACT
    {
        public RadComboBoxData GetCustomerOrderHistoryTelerik(RadComboBoxContext context)
        {
            //The RadComboBoxData object contains all required information for load on demand:
            // - the items 
            // - are there more items in case of paging
            // - status message to be displayed (which is optional)
            RadComboBoxData result = new RadComboBoxData();
            ...

The svc file contains the following definition to allow for automatic endpoint exposure via Sharepoint (using the Factory):

<%@ ServiceHost Language="C#" Debug="true"
    Service="ACT, $SharePoint.Project.AssemblyFullName$"  
    CodeBehind="ACT.svc.cs"
    Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

And the layout of my page contains a combobox such as:

                                    <telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px"
                                        AllowCustomText="true"
                                        LoadingMessage="Loading, please wait..."
                                        EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                        EmptyMessage="Type here ..." ItemsPerRequest="10">
                                        <WebServiceSettings
                                            Path="~/_layouts/Sample/Services/ACT.svc"
                                            Method="GetCustomerOrderHistoryTelerik" />
                                    </telerik:RadComboBox>

The only thing I have in the web.config of the Sharepoint application regarding WCF is this, as the endpoints are exposed automatically:

  <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
  </system.serviceModel>

Currently the master page contains a regular ScriptManager, but I've tried replacing it with a RadScriptManager and the results are the same.

The problem with the above method is that when debugging the code, the context doesn't contain anything, 
And the service works normally for other methods via Ajax requests, etc...

What am I missing here? Any hint would be greatly appreciated.

Thank you very much.
Cat Cheshire
Top achievements
Rank 1
 answered on 13 Dec 2011
0 answers
133 views
NEVER-MIND, it worked, my fault
//
Hi,

Here is my scenario:
  1. I've created two custom controls (ascx)
  2. I've created custom aspx page to host my two custom controls
  3. On main page, I've created RadWindow that is pointing to page created in step 2 and I've bind event to open a window

Result:
RadWindow does not shows my two custom controls.

Example code for custom control:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DemoDummyControl.ascx.cs" Inherits="X.DemoDummyControl" %>
 
<p>
Dummy Control
</p>
 
<p>
To test RadWindow
</p>
 
<p>
    <asp:Button runat="server" ID="test" OnClick="Click" />
</p>

page to show control:

<%@ Page Title="" Language="C#" MasterPageFile="~/Popup.Master" AutoEventWireup="true" CodeBehind="demo.aspx.cs" Inherits="X.demo" %>
<%@ Register Src="~/DemoDummyControl.ascx" TagName="Dummy" TagPrefix="uc" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="Scripts" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
<p>
 
<uc:DemoDummyControl runat="server" />
 
</p>
 
</asp:Content>

Question:

Is there a way to display ascx controls on page that will be showed in radWindow? And is there a way to do it globally without truly thinking about, as I need to host more then 10 custom controls on that page and doing that manually is just a waste of time.

Cheers,
   Jakub G

thanks

Jakub Gutkowski
Top achievements
Rank 1
 asked on 13 Dec 2011
5 answers
204 views
Is ther a way to remove the border around the commandItem?

<

 

CommandItemStyle BorderStyle="None"/>

 

doesn's seem to work.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 13 Dec 2011
2 answers
115 views
Is there a list of system colors or css or template or cheat sheet that lists what the fill colors are for a given (Vista) series pallet?

I have two charts on the same page and on one of them I need to set the fill color programmatically. I figured this out and it works great. However, I need the colors to be similar to the other chart using the Office2007 skin and the Vista pallet colors for the series.

I would really like to get the list of main and secondary colors for each item in the "Vista" pallet. Is this available?

Thanks,
Craig
Craig
Top achievements
Rank 1
 answered on 13 Dec 2011
2 answers
136 views
Hello Telerik Team,

We have updated our Telerik controls to 2011.3.1115.40 from 2008.3.1314.20 this week. Until last week the RadGrids and DetailGrids(1 or 2 secs) were loading quick. But now, it takes quite a while for the DetailGrids(8 to 10 secs) to load.
We are using Webservices to load the Data to the grids. What could be the possible reason for the delay. Are there any techniques to improve the speed.
Also I have gone through your links as suggested in this link :  http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-and-performance-intended-usage.aspx , but could not find any solution.

We are currently using .Net Framework 4.0  and AjaxToolkit : 3.0.20820.16598

I tried to upgrade the AjaxToolkit to 4.1.51116.0 after I installed the new Telerik controls, but one of my pages throws a javascript error saying " Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll."

 I have tried giving both ScriptManager & ToolkitScriptManager , but none of them solved my problem.

It will be really great if someone could help me regarding this.

Thankyou,
Swetha
Swetha
Top achievements
Rank 1
 answered on 13 Dec 2011
1 answer
93 views
I have a 3 tier radgrid with sql data source.RecipeTypes-->Recipes-->RecipeIngredients.My problem is that the Calories in the Recipes Table isn't updated when I inserted a new record(Ingredient to the Recipe) to a RecipeIngredients Table.In other words,when I inserted a new records to the child table,parent table will be rebinded.
I've searched in the forum and looked similar problems but I couldn't  modify into my application.Any Ideas?

Thanks,Emre
Emre
Top achievements
Rank 1
 answered on 13 Dec 2011
1 answer
89 views
How do I use a customValidator With RadGrdi to validate ALL of the editable fields in a grid when in-line editing is used. In such a case, I don't set ControlToValidate in the CustomValidator, so in my ServerValidate Event, I don't know how to obtain the values being updated. The example shown in

http://www.telerik.com/help/aspnet-ajax/grid-validation.html

only pertains to validating a single field.

Private Sub custVal_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles custVal.ServerValidate
            args.IsValid = ValidatedConfiguration()
        End Sub
 
Private Sub ValidatedConfiguration()
' How do I access the updated values here?
End Function

Iana Tsolova
Telerik team
 answered on 13 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?