Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
246 views
Hi,
I am using RadComboBox with template as described in the demo:

As a dropdown list i have items with item template of checkbox and label:

<ItemTemplate> 
       <div onclick="StopPropagation(event)"> 
            <asp:CheckBox runat="server" ID="chk1" Checked="false" onclick="onCheckBoxClick(this)" /> 
            <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1" Text='<%#Eval("DisplayName") %>'></asp:Label> 
       </div> 
</ItemTemplate> 

Is there a way to support keyboard using item template in combobox? i.e. to select some checkboxes in the drop down list using the keyborad?

Thanks,
Ruth

Nencho
Telerik team
 answered on 19 Apr 2013
3 answers
384 views
Is it possible to display the NameField value in the Tooltip on a RadHtmlChart?

On mouse over I want it to show: "ABC County: 50".

Thanks

   
<telerik:RadHtmlChart runat="server" ID="CaseCountyPieChart" Width="300"
        DataSourceID="CaseCountyByDateRangeLinqDataSource" Transitions="true">
    <Appearance>
        <FillStyle BackgroundColor="White"></FillStyle>
    </Appearance>
    <ChartTitle Text="Cases by Case County">
        <Appearance Align="Center" BackgroundColor="White" Position="Top"></Appearance>
    </ChartTitle>
    <Legend>
        <Appearance BackgroundColor="White" Position="Bottom" Visible="true" />
    </Legend>
    <PlotArea>
        <Appearance>
            <FillStyle BackgroundColor="White"></FillStyle>
        </Appearance>
         
        <Series>
            <telerik:PieSeries NameField="county" DataFieldY="caseCount" StartAngle="90">
                <LabelsAppearance Position="Circle" DataFormatString="{0}" />
                <TooltipsAppearance DataFormatString=" NameField Here:  {0}" />                       
            </telerik:PieSeries>
        </Series>
    </PlotArea>
</telerik:RadHtmlChart>
Danail Vasilev
Telerik team
 answered on 19 Apr 2013
1 answer
133 views
How can I do my chart wor un full screen. 

I need my chart title center.

My code

radChart1.Height = 400;
radChart1.Width = 1200;
radChart1.ChartTitle.TextBlock.Text = bl.nomeTituloChart;
radChart1.ChartTitle.TextBlock.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Center;
Peshito
Telerik team
 answered on 19 Apr 2013
3 answers
149 views
Hi folks,

Is it possible to create a RadSlider control using Javascript?

Thanks
Henry Gibbs
Princy
Top achievements
Rank 2
 answered on 19 Apr 2013
1 answer
141 views
HI Team,

When click on the legend Selected item, I am able to Navigate to other page with respect/Selected ID, but I am unable to get the Hand Shape when mouse hover on the Items(Unable to apply the CSS/ Styles to legend).

I am using Rad chart in Asp.net application with C#.

Thanks in advance.
Petar Kirov
Telerik team
 answered on 19 Apr 2013
3 answers
137 views
Hi folks,

How to set the Radslider orientation from C#? I tried giving RadSlider1.Orentation = "Vertical" but I am getting
an error.

Thanks
Henry GIbbs
Princy
Top achievements
Rank 2
 answered on 19 Apr 2013
6 answers
176 views
I have a RadToolTipManager set to AutoToolTipify my page, however, there are many controls on the page with a Title attribute set that I do not want tooltipped. Is there a way to cancel the tooltip creation based on the TargetControlID?

My thinking would be I could do something along these lines:

If e.TargetControlID.Contains("HyperLink1") Then
    'Do actions for tooltip
Else
    e.cancel()
End If

Is there any way to do what I'm hoping to do, or a good way to specify what to Tooltipify based on what the Title attribute is set to?

-Thanks
Marin Bratanov
Telerik team
 answered on 19 Apr 2013
6 answers
210 views
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using Telerik.Web.UI;
using System.Threading;
 
namespace RadTestApp
{
    public partial class SnippetHttpPanel : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
 
        protected void XmlHttpPanel_ServiceRequest(object sender, RadXmlHttpPanelEventArgs e)
        {
            Thread.Sleep(1000);
 
            rgSearchResults.DataSource = GetData();
            rgSearchResults.DataBind();
        }
 
        protected void rgSearchResults_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridHeaderItem)
            {
                GridHeaderItem gridHeader = e.Item as GridHeaderItem;
 
                RadComboBox sortoptions = (RadComboBox)gridHeader.FindControl("cboSortOptions");
                sortoptions.SelectedIndex = 1;
 
                DropDownList ddl = (DropDownList)gridHeader.FindControl("sortOptions");
                ddl.SelectedIndex = 1;
            }
        }
 
        private List<SnippetResult> GetData()
        {
            List<SnippetResult> results = new List<SnippetResult>();
 
            results.Add(new SnippetResult { DocSequenceNumber = 1, Title = "Title 1", Snippet = "This is a snippet view text repeated three times.This is a snippet view text repeated three times.This is a snippet view text repeated three times." });
            results.Add(new SnippetResult { DocSequenceNumber = 2, Title = "Title 1", Snippet = "This is a snippet view text repeated three times.This is a snippet view text repeated three times.This is a snippet view text repeated three times." });
            results.Add(new SnippetResult { DocSequenceNumber = 3, Title = "Title 1", Snippet = "This is a snippet view text repeated three times.This is a snippet view text repeated three times.This is a snippet view text repeated three times." });
            results.Add(new SnippetResult { DocSequenceNumber = 4, Title = "Title 1", Snippet = "This is a snippet view text repeated three times.This is a snippet view text repeated three times.This is a snippet view text repeated three times." });
            results.Add(new SnippetResult { DocSequenceNumber = 5, Title = "Title 1", Snippet = "This is a snippet view text repeated three times.This is a snippet view text repeated three times.This is a snippet view text repeated three times." });
            results.Add(new SnippetResult { DocSequenceNumber = 6, Title = "Title 1", Snippet = "This is a snippet view text repeated three times.This is a snippet view text repeated three times.This is a snippet view text repeated three times." });
 
            return results;
        }
    }
 
    public class SnippetResult
    {
        public int DocSequenceNumber { get; set; }
        public string Title { get; set; }
        public string Snippet { get; set; }
    }
}
The RadCombobox does not show the selected item in the drop down after a http post using xmlhttp control from telerik. The same works fine with ASP.Net combo box.
Please let me know I can paste sample code.
Boyan Dimitrov
Telerik team
 answered on 19 Apr 2013
6 answers
313 views

Hi,

I am using RADGrid for my application to improve the performance. I am updating the List<Class1> in Webeservice and returning to the client fuinction , But in client script while executing the following line of code in    the   "function updateGrid(result)" - 

set_dataSource(result)

;   throwing error inside Telerik dynamic created script file as 'null object'.

In JavaScript

<script type="text/javascript">  
function bind()  
{  
 
    xtenzasolutions.WebService2.HelloWorld(updateGrid,OnError);  
 
}  
 
function OnError(result)   
    {  
    alert("Error : "+result.get_message());  
    }    
 
 function updateGrid(result)  
    {  
        var tableview= $get('<% = rgDetails.MasterTableView.ClientID %>');  
                 
        tableview.set_dataSource(result);  
             tableview.dataBind();  
                
             GetFirstDataItemKeyValues();  
    }  
      
    function GetFirstDataItemKeyValues()  
 {  
   
   var firstDataItem = $find("<%=rgDetails.ClientID %>").get_masterTableView().get_dataItems()[0];  
   var keyValues =  
     'DisplayStatus: "' +  
      firstDataItem.getDataKeyValue("disp_id") + '"' +  
      ' \r\n' +  
      'RuleName: "' +  
      firstDataItem.getDataKeyValue("url") + '"';  
      alert(keyValues);  
     
 }  
</script> 

In UserControl Page.
<table>  
<tr>  
<td>  
<asp:ScriptManager ID="scrp" runat="server">  
<Services>  
<asp:ServiceReference Path="~/WebService2.asmx" />  
</Services>  
</asp:ScriptManager>  
 
<telerik:RadGrid ID="rgDetails" runat="server" GridLines="None" Skin="Office2007" 
                                    EnableClientKeyValues="true" AutoGenerateColumns="False" AllowMultiRowSelection="false" Height="200px" Width="500px">  
                                    <HeaderContextMenu EnableTheming="True">  
                                      
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
                                    </HeaderContextMenu>  
                                    <MasterTableView>  
                                      
                                        <RowIndicatorColumn>  
                                            <HeaderStyle Width="20px"></HeaderStyle>  
                                        </RowIndicatorColumn>  
                                        <ExpandCollapseColumn>  
                                            <HeaderStyle Width="20px"></HeaderStyle>  
                                        </ExpandCollapseColumn>  
                                        <Columns>  
                                          
                                            <%--<telerik:GridBoundColumn UniqueName="MessageType" SortExpression="MessageType" HeaderText="" DataField="MessageType"></telerik:GridBoundColumn>--%>  
                                            <telerik:GridTemplateColumn HeaderText="" UniqueName="Image">  
                                                <ItemTemplate>  
                                                    <asp:Image runat="server" ID="ImageThumbnail" AlternateText="image" ImageUrl='' Height="25" 
                                                        Width="25" Style="border-width: 0px;" />  
                                                </ItemTemplate>  
                                            </telerik:GridTemplateColumn>  
                                            <telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" UniqueName="Activity" SortExpression="Activity" 
                                                HeaderText="Activity" DataField="u_id">  
                                             <ItemStyle HorizontalAlign="Left" />  
                                            </telerik:GridBoundColumn>  
                                            <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="Install" HeaderText="Status">  
                                                <ItemTemplate>  
                                                     
                                                        <%#DataBinder.Eval(Container.DataItem, "disp_id")%></a></ItemTemplate>  
                                            </telerik:GridTemplateColumn>  
                                            <telerik:GridBoundColumn UniqueName="InstallStatus" SortExpression="InstallStatus" 
                                                HeaderText="" DataField="url" Visible="false">  
                                            </telerik:GridBoundColumn>  
                                        </Columns>  
                                    </MasterTableView>  
                                    <FilterMenu EnableTheming="True">  
                                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
                                    </FilterMenu>  
                                </telerik:RadGrid>  
 
</td>  
</tr>  
<tr>  
<td>  
<asp:Button runat="server" ID="butt" te="click" OnClientClick="bind()" />  
</td>  
</tr>  
</table> 

In Webservice
public List<Class1> HelloWorld()  
 
{  
 
string constr = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;  
 
SqlConnection con = new SqlConnection(constr);  
 
con.Open();  
 
SqlDataAdapter adp = new SqlDataAdapter("select *from urlTable", constr);  
 
DataSet ds = new DataSet();  
 
adp.Fill(ds, "tab");  
 
con.Close();  
 
List<Class1> obj = new List<Class1>();  
 
int i = 0;  
 
foreach (DataRow rw in ds.Tables[0].Rows)  
 
{  
 
Class1 ser = new Class1();  
 
ser.UID = rw["u_id"].ToString();  
 
ser.DISPID = rw["disp_id"].ToString();  
 
ser.URL = rw["url"].ToString();  
 
obj.Add(ser);  
 
}  
 
return obj;  
 
}  
 
Tsvetoslav
Telerik team
 answered on 19 Apr 2013
3 answers
417 views
Hi,

I am developing telerik asp.net ajax proejct using .net 4.0 and vs 2012. All the controls are working fine in development environment, but it is working same (esp RadSlider & RadRadialGuage controls) after i deploy in the testing server(Windows server 2008 r2, iis 7.5). Find below my web.config file.
I really appreciate your help.

Thanks,
Jay

<?xml version="1.0"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
    <connectionStrings>
      <add name="AppConStr" connectionString="Server=xxx.xxx.x.xx,1433;Database=xxxDb;User ID=xx;Password=xx;Trusted_Connection=True;Integrated Security=False" providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
      <customErrors mode="Off">
        <!--<customErrors mode="On" defaultRedirect="ConstructionsPage.html" >
            <error statusCode="403" redirect="ConstructionsPage.html"/>
            <error statusCode="404" redirect="ConstructionsPage.html"/>-->
      </customErrors>
      <globalization enableClientBasedCulture="true" culture="auto:en-GB" uiCulture="auto:en" />
      <compilation debug="true" targetFramework="4.0">
        <assemblies>
          <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
          <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
          <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        </assemblies>
        <buildProviders>
          <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
        </buildProviders>
      </compilation>
      <pages>
        <controls>
          <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
        </controls>
      </pages>
      <httpHandlers>
        <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" />
        <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
        <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
        <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
        <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      </httpHandlers>
      <httpModules>
        <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
        <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
      </httpModules>
    </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
      <remove name="RadCompression" />
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
    </modules>
    <handlers>      
      <remove name="ChartImage_axd" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />      
    </handlers>
    <directoryBrowse enabled="true" />
    <staticContent>
      <mimeMap fileExtension=".kml" mimeType="application/vnd.google-earth.kml+xml" />
      <mimeMap fileExtension=".kmz" mimeType="application/vnd.google-earth.kmz" />
    </staticContent>
    <defaultDocument>
      <files>
        <clear />
        <add value="index.html" />
        <add value="Login.aspx" />
        <add value="iisstart.htm" />
        <add value="default.aspx" />
        <add value="index.php" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>

Marin Bratanov
Telerik team
 answered on 19 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?