Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
126 views
hello,
This should be simple, i have a combobox with AllowCustomText="true"   and EmptyMessage="Select.." , i am providing a clear button[server side code] on the page and the combobox should go to "Select.."  onButton clicked. i have tried a lot of things and it just does not work. how do i do this ?

works with 

 

 

rcb.ClearSelection()

 

 

rcb.Text = String.Empty

 


AR
Top achievements
Rank 1
 asked on 07 Oct 2009
1 answer
126 views
Hi,

On the pie chart, when we mouse hover an  area, can  we display the series names(X and Y column names)


How can do the mouse hover option on the pie chart?

Thanks for your reply
Schlurk
Top achievements
Rank 2
 answered on 07 Oct 2009
1 answer
235 views
Hello,

We are using Telerik Controls Version 2009.2.826.20 in our application and we are experiencing difficulties with RAD TreeView Node in the Context Menu Item.

Below is the set of RAD Controls we are using in the Application:
  1. Toolbar control. (This renders the functioanlity very fine)
  2. RAD Splitter Control.
  3. Left Pane we got RAD TreeView Control. (Implement Load on Demand using Page Behind Method)
  4. Right Pane we got sub Panels using DIV Controls. We are show/hide the Div's depending on the items selected in the Context Menu of the Tree View Control.

When we run the application, we are able to expand or collapse the Nodes. When the User right click a Node and select an item from the Context Menu, the event for the Context menu throws Object Reference Error. Sometimes it works and some times it doesnt work.

Why is the behavior as such? Can you help us to resolve this issue?

Below is the Code we have in our application for the Context Menu Item Event:
(We are accessing the node using e.Node and if the e.Node is present it works. In so many cases e.Node is becoming NULL and this is giving us the error Object Reference not set to an instance of an Object)
(The application works if we use the button from the ToolBar. Because in ToolBar event, we are accessing the Node using SelectedNode property and that works)

    Protected Sub RdTViewPerspective_ContextMenuItemClick(ByVal sender As System.Object, ByVal e As Telerik.Web.UI.RadTreeViewContextMenuEventArgs) Handles RdTViewPerspective.ContextMenuItemClick
        Try
            Select Case e.MenuItem.Value.ToUpper()
                Case "SAP_INFO"
                    HideAllPanels()
                    DisplayGeneralInformation(e.Node)
                    DisplaySAPInfoPanel(e.Node)
                    ReSetToolBarButtons(e.Node)
                Case Else
                    'Nothing to do.
            End Select
        Catch ex As Exception
            log.Info(ex.Message.ToString())
            Response.Redirect("CustomError.aspx?Msg=" + Server.UrlEncode(ex.Message.ToString()) + "&ErrorSource=" + Server.UrlEncode(ex.Source.Replace(Environment.NewLine, "-----><BR>").ToString()) + "&ErrorStack=" + Server.UrlEncode(ex.StackTrace.ToString()), False)
        End Try
    End Sub


Thanks
Sri K Gamini.
Sri
Top achievements
Rank 1
 answered on 07 Oct 2009
1 answer
96 views
sorry,i have poor english ,would like to read .

vs2010 ,ie8
aspx:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Admin.Master" AutoEventWireup="true" 
    CodeBehind="OperRecord.aspx.cs" Inherits="tc_xmc_web.Admin.OperRecord" Theme="Admin" %>  
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">  
    <script src="../Js/Calendar/WdatePicker.js" type="text/javascript"></script>  
</asp:Content>  
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
    <div class="divmenu_title">  
        操作记录  
    </div>  
    <div class="pdefault">  
<telerik:RadAjaxManager runat="server">  
        <AjaxSettings>  
            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
        </AjaxSettings>  
    </telerik:RadAjaxManager>  
 
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource_OperationRecord_SP" 
            GridLines="None" AllowPaging="True" PageSize="2" PagerStyle-AlwaysVisible="false">  
            <MasterTableView DataSourceID="SqlDataSource_OperationRecord_SP">  
                <Columns>  
                    <telerik:GridBoundColumn DataField="Operation" UniqueName="oper">  
                    </telerik:GridBoundColumn>  
                </Columns>  
            </MasterTableView>  
        </telerik:RadGrid>  
      </div>  
<asp:SqlDataSource ID="SqlDataSource_OperationRecord_SP" runat="server" ConnectionString="<%$ ConnectionStrings:tc_xmc_dbConnectionString %>" 
</asp:SqlDataSource>  
</asp:Content> 

web.config  (i doubt there are problems ) :
<?xml version="1.0"?>  
<configuration>  
 
 
 
  <configSections>  
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>  
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
        </sectionGroup>  
      </sectionGroup>  
    </sectionGroup>  
  </configSections>  
 
 
  <appSettings/>  
  <connectionStrings>  
    <add name="tc_xmc_dbConnectionString" connectionString="Data Source=192.168.23.4;Initial Catalog=tc_xmc_db;User ID=sa" providerName="System.Data.SqlClient"/>  
    <add name="NorthwindConnectionString" connectionString="Data Source=192.168.23.16;Initial Catalog=Northwind;User ID=sa;PassWord=123789" providerName="System.Data.SqlClient"/>  
  </connectionStrings>  
 
  <system.web>  
    <compilation debug="true" targetFrameworkMoniker=".NETFramework,Version=v4.0">  
      <assemblies>  
        <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
        <add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
        <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
 
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>  
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
        <add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>  
      </assemblies>  
 
    </compilation>  
    <!--  
            The <authentication> section enables configuration   
            of the security authentication mode used by   
            ASP.NET to identify an incoming user.   
        -->  
    <authentication mode="Windows"/>  
    <!--  
            The <customErrors> section enables configuration   
            of what to do if/when an unhandled error occurs   
            during the execution of a request. Specifically,   
            it enables developers to configure html error pages   
            to be displayed in place of a error stack trace.  
 
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">  
            <error statusCode="403" redirect="NoAccess.htm" />  
            <error statusCode="404" redirect="FileNotFound.htm" />  
        </customErrors>  
        -->  
 
 
    <pages>  
      <controls>  
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add tagPrefix="AjaxControlToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=3.0.30512.29188, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>  
        <!--Telerik-->  
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>  
        <!--Telerik-->  
 
      </controls>  
    </pages>  
 
    <httpHandlers>  
      <remove verb="*" path="*.asmx"/>  
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
      <!--Telerik-->  
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>  
      <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>  
      <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"></add>  
      <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>  
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>  
      <!--Telerik-->  
    </httpHandlers>  
    <httpModules>  
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <!--Telerik-->  
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>  
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>  
      <!--Telerik-->  
    </httpModules>  
 
  </system.web>  
 
 
  <system.codedom>  
    <compilers>  
      <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">  
        <providerOption name="CompilerVersion" value="v4.0"/>  
        <providerOption name="WarnAsError" value="false"/>  
      </compiler>  
    </compilers>  
  </system.codedom>  
 
  <!--   
        The system.webServer section is required for running ASP.NET AJAX under Internet  
        Information Services 7.0.  It is not necessary for previous version of IIS.  
    -->  
  <system.webServer>  
    <validation validateIntegratedModeConfiguration="false"/>  
    <modules>  
      <remove name="ScriptModule"/>  
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
    </modules>  
    <handlers>  
      <remove name="WebServiceHandlerFactory-Integrated"/>  
      <remove name="ScriptHandlerFactory"/>  
      <remove name="ScriptHandlerFactoryAppServices"/>  
      <remove name="ScriptResource"/>  
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
    </handlers>  
  </system.webServer>  
 
 
</configuration> 

please help  ,thanks.

-------------

without ajax runing ok!

why?
Pavlina
Telerik team
 answered on 07 Oct 2009
3 answers
166 views
I have a combo box in my grid, when I edit the underlying data I want the current data item to be selected in the combo box

<telerik:GridTemplateColumn UniqueName="CastMember" HeaderText="Cast Member" DataField="CastMemberName" 
                        SortExpression="CastMember" ItemStyle-HorizontalAlign="Left">  
                          
                        <ItemTemplate> 
                            <%#DataBinder.Eval(Container.DataItem, "CastMemberName")%> 
                        </ItemTemplate> 
                        <EditItemTemplate> 
                            <telerik:RadComboBox DataTextField="CastMemberName" Skin="Vista" 
                                DataValueField="CastMemberName"   
                                ID="RadComboBoxCastMember"   
                                runat="server"   
                                Width="220px" > 
                            </telerik:RadComboBox> 
                        </EditItemTemplate> 
 
<ItemStyle HorizontalAlign="Left"></ItemStyle> 
                    </telerik:GridTemplateColumn> 

in my codebehind I have this

protected void RadGridCastList_ItemCreated(object sender, GridItemEventArgs e)  
        {  
            if (e.Item is GridDataItem)  
            {  
                if (e.Item.IsInEditMode)  
                {  
                    GridEditableItem editItem = e.Item as GridEditableItem;  
                    RadComboBox combo = (RadComboBox)editItem.FindControl("RadComboBoxCastMember");  
                    combo.DataTextField = "CastMemberName";  
                    combo.DataValueField = "CastMemberName";  
                    combo.DataSource = castmanager.CastNames();  - a list of cast member names
                    combo.DataBind();  
                    try  
                    {  
                        combo.FindItemByValue(DataBinder.Eval(e.Item.DataItem, "CastMemberName").ToString()).Selected = true;  
                    }  
                    catch (NullReferenceException ex)  
                    {  
                        combo.SelectedIndex = 0;  
                    }  
 
                    RadNumericTextBox rntb = (RadNumericTextBox)editItem.FindControl("RadNumericTextBoxDisplayOrder");  
                    try  
                    {  
                        rntb.DbValue = (int)DataBinder.Eval(e.Item.DataItem, "DisplayOrder");  
                    }  
                    catch (Exception ex2)  
                    {  
                        //  
                    }  
                }  
                else  
                {  
 
                }  
            }  
              
 
        } 


this line
combo.FindItemByValue(DataBinder.Eval(e.Item.DataItem, "CastMemberName").ToString()).Selected = true;

should select the current name in the combo, but it doesnt.  The first item in the the combo is always set.
Ive used this method many, many times before and its always worked, yet in this case it wont !

Ive checked the value in CastMemberName and its a valid name that is in  the data bound to the combo.
Can anyone see what the problem is ?
Parth
Top achievements
Rank 1
 answered on 07 Oct 2009
12 answers
256 views
Ever since Q2 (and the skin redesigns), any time I have a two line label in my column heading, the label shifting is quite ugly when sorting. In previous versions, both lines of the label (if you had a two line heading label) would shift together to make room for the sort symbol. Now only the bottom line shifts to make room. I'm thinking this must be a bug because it doesn't make any sense to do this and it's awkward to look at. And being that previous versions did not have this problem, I am hoping that it is not an intentional change.

Is there any way I can fix this? Also will you guys please consider changing this in the next release.

Levi
Top achievements
Rank 1
 answered on 07 Oct 2009
0 answers
70 views
Dear Telerik,

Which is the best option for web application development? WPF, ASP.NET AJAX or Silverlight 
I am confused and not sure where to start reading to understand the strengths and weaknesses of the various options.
Help me out please!

Regards,
Flippie
Flippie
Top achievements
Rank 1
 asked on 07 Oct 2009
3 answers
175 views
Hi,

I know how to change the filter icon for one column in the grid.  Is there a property to change all of the filter icons in the grid?  I'd prefer to change it once for all columns rather than have to remember to set it on each relevant column.

Regards,

Jon
onkar
Top achievements
Rank 1
 answered on 07 Oct 2009
1 answer
208 views
Does the Telerik chart offers of the speedometer type?

Regards,
Rafael
Schlurk
Top achievements
Rank 2
 answered on 07 Oct 2009
2 answers
567 views
Does anyone know how to integrate Alex Gorbatchev's Syntax Highlighter with the RadEditor?

http://alexgorbatchev.com/wiki/SyntaxHighlighter


King Wilder
Top achievements
Rank 2
 answered on 07 Oct 2009
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?