Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views
We have .net framework 2.0 Ajax extension 1.0.  If I install .net framework, will it cause problem?
Stanimir
Telerik team
 answered on 07 Oct 2010
3 answers
73 views

Refering to the demo:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx?product=grid

and using the Hierarchical data feature of RadGrid, I am trying to have context menu on the master and the details, but i wasn't able to get the selected index and the selected ID.

function CarModel_RowContextMenu(sender, eventArgs) {
                var menu = $find('UC_Splitter_CarModel_List_Content_CarModel_RadContextMenu');
                var evt = eventArgs.get_domEvent();
  
                if (evt.target.tagName == "INPUT" || evt.target.tagName == "A") {
                    return;
                }
  
                if (eventArgs.get_tableView().get_name() == "Models") {
                    alert('child');
                    //get the selected datakey value
                    //
                    //
                }
                else {
                    var index = eventArgs.get_itemIndexHierarchical();
                    var key = sender.get_masterTableView().get_dataItems()[index].getDataKeyValue("ID");
                    CarModelSetKeyValue(index, key);
  
                    sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);
  
                    menu.show(evt);
  
                    evt.cancelBubble = true;
                    evt.returnValue = false;
  
                    if (evt.stopPropagation) {
                        evt.stopPropagation();
                        evt.preventDefault();
                    }
                }
            }


please i need help in this issue urgently.
Tsvetina
Telerik team
 answered on 07 Oct 2010
1 answer
44 views
I am currenlty utilizing the "EmptyMessage" property of a RadTextBox. There is also a checkbox on the page that enables the RadTextBox when clicked. If the user hovers his mouse over the RadTextBox before it is enabled, the user can then type in text and the empty message remains in place in addition to the user input. I was also able to produce this behavior on the demo site (http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultcs.aspx) if I refreshed the page with my pointer over the control and started typing before render is complete. The style also remains in the EmptyMessage style, so when you're typing it is grayed italics text. This behavior is unacceptable to my client. Any fixes/suggestions?

Thanks,
Dean
Dimo
Telerik team
 answered on 07 Oct 2010
3 answers
157 views

I have had to move a web application from one server to a new one.  My intention was to just copy the deployed application over to the new IIS structure.  The app code has not changed.  Both servers are Windows 2008 SP2:  the old server had IIS 7 and the new server has IIS 7.5

I am now getting this error below as a javascript error.
Webpage error details
Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 6
Char: 62099
Code: 0
URI: http://webserver/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a30afb63f-e6ac-41db-9851-11879733de0a%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3a6a6d718d%3a854aa0a7%3a874f8ea2%3a5a6d9d23%3a58366029%3aaa288e2d%3ab7778d6c

This is my web.config


<?xml version="1.0"?>  
<configuration> 
    <configSections> 
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">  
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>  
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>  
                </sectionGroup> 
            </sectionGroup> 
        </sectionGroup> 
 </configSections> 
    <appSettings> 
        <add key="ChartHttpHandler" value="Storage=memory;Timeout=200;Url=~/temp/;"/>  
    </appSettings> 
    
      
    <system.web> 
        <compilation debug="true">  
            <assemblies> 
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
              
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>  
                <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies> 
        </compilation> 
        <pages> 
            <controls> 
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>  
            </controls> 
        </pages> 
 
        <authentication mode="Windows"/>  
        <identity impersonate="true" />   
        <customErrors mode="Off"/>    
 
<httpHandlers> 
   <remove path="*.asmx" verb="*"/>  
   <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
   <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
   <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>  
   <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" validate="false"/>  
   <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler" validate="false"/>  
   <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false"/>  
   <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" validate="false"/>  
   <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false"/>  
  </httpHandlers> 
        <httpModules> 
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>  
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>  
        </httpModules> 
        <httpRuntime maxRequestLength="7168" executionTimeout="200"/>  
    </system.web> 
    <system.codedom> 
        <compilers> 
            <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">  
                <providerOption name="CompilerVersion" value="v3.5"/>  
                <providerOption name="WarnAsError" value="false"/>  
            </compiler> 
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">  
                <providerOption name="CompilerVersion" value="v3.5"/>  
                <providerOption name="OptionInfer" value="true"/>  
                <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=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>  
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>  
        </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=3.5.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=3.5.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=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>  
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>  
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>  
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>  
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>  
        </handlers> 
        <security> 
            <requestFiltering> 
                <requestLimits maxAllowedContentLength="1340032"/>  
            </requestFiltering> 
        </security> 
    </system.webServer> 
    <runtime> 
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">  
            <dependentAssembly> 
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>  
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>  
            </dependentAssembly> 
            <dependentAssembly> 
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>  
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>  
            </dependentAssembly> 
        </assemblyBinding> 
    </runtime> 
</configuration> 


There is a double hop involved and kerberos appears to be working.  Fiddler shows no errors.  Can you help me with this issue?  Why would it not run in IIS 7.5? 

Thanks,
Miche
Pavel
Telerik team
 answered on 07 Oct 2010
1 answer
47 views
Hi all,

I need to get DataKeyValue from ItemCommand event of Radgrid and need to pass as input parameter in ObjectDataSource's Selecting event like 
            obj.EmpID= EmpID (runtime Value from ItemCommand)            
            e.InputParameters["obj"] = obj

So that the Nested DetailView should be as per that specifc row of Radgrid.

Here i am getting Key from ItemCommand, but unable to pass that key dynamically to ObjectDatasource, because both the events get call at different time interval.

Or i should try different approach.
Please help me on this regard.
arun
Top achievements
Rank 1
 answered on 07 Oct 2010
6 answers
156 views
The pager appears fine in all browsers (Opera, Google Chrome, Firefox and Safari) except in Internet Explorer where it's displayed very strange e.g. next/prev buttons are invisible without background etc. etc.

Is it known bug or i am missing something. This is the code:

<telerik:RadListView ID="RadListView1" runat="server"
            ItemPlaceholderID="itemPlaceholder" GroupPlaceholderID="groupPlaceholder" DataKeyNames="product_ID"
            onneeddatasource="RadListView1_NeedDataSource" AllowPaging="true" GroupItemCount="3"
            AllowCustomPaging="true" Skin="Telerik">
             
            <LayoutTemplate>
                    <table  cellpadding="0" cellspacing="0" width="97%" style="clear: both; margin-top: 10px; margin-bottom: 10px;">
                        <tr>
                            <td align="center">
                                <telerik:RadDataPager ID="RadDataPager2" runat="server" PagedControlID="RadListView1"
                                    PageSize="30" Skin="Telerik">
                                    <Fields>
                                        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                        <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                        <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                         
                                        <telerik:RadDataPagerTemplatePageField>
                                            <PagerTemplate>
                                                <div style="float: right">
                                                    <b>Items
                                                        <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                        to
                                                        <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# IIF(Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize), Container.Owner.StartRowIndex+Container.Owner.PageSize, Container.Owner.TotalRowCount) %>" />
                                                        of
                                                        <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                        <br />
                                                    </b>
                                                </div>
                                            </PagerTemplate>
                                        </telerik:RadDataPagerTemplatePageField>
                                    </Fields>
                                </telerik:RadDataPager>
                            </td>
                        </tr>
                    </table>
                     
            <table cellpadding="0" cellspacing="0" width="100%" style="padding-left: 40px;">
                <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
            </table>               
                 
                    <table  cellpadding="0" cellspacing="0" width="95%" style="clear: both; margin-top: 10px;">
                        <tr>
                            <td align="center">
                                <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListView1"
                                    PageSize="30" Skin="Telerik">
                                    <Fields>
                                        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                        <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                        <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                         
                                        <telerik:RadDataPagerTemplatePageField>
                                            <PagerTemplate>
                                                <div style="float: right">
                                                    <b>Items
                                                        <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                        to
                                                        <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# IIF(Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize), Container.Owner.StartRowIndex+Container.Owner.PageSize, Container.Owner.TotalRowCount) %>" />
                                                        of
                                                        <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                        <br />
                                                    </b>
                                                </div>
                                            </PagerTemplate>
                                        </telerik:RadDataPagerTemplatePageField>
                                    </Fields>
                                </telerik:RadDataPager>
                            </td>
                        </tr>
                    </table>
            </LayoutTemplate>
             
            <GroupTemplate>
                <tr>       
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>           
                </tr>
            </GroupTemplate>
            <ItemTemplate>
               <td valign="top" style="padding-bottom: 10px;">
            <div>
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td valign="top" align="center">
                        <div class="ItemTitle">
                            <a href="Details.aspx?id=<%# Eval("product_ID") %>">
                                <asp:Label ID="lblTitle" runat="server" Text='<%# ShortenText.Shorten(Eval("title"), 15) %>'></asp:Label>
                            </a>
                        </div>
                    </td>
                </tr>
                 
                <tr>
                    <td valign="middle" align="center">
                        <a href="Details.aspx?id=<%# Eval("product_ID") %>">
                            <asp:Image id="imgThumbnail" runat="server"  />
                        </a>
                    </td>
                </tr>
        </table>
            </div>             
            </td>
            </ItemTemplate>
        </telerik:RadListView>

Grace DS
Top achievements
Rank 1
 answered on 07 Oct 2010
3 answers
214 views
Hi

I have RadGrid with Template Column and Template Column Contain RADTreeView Control to display data in tree Structure..
When exporting RadGrid data to Excel Sheet at that time RadTreeView  Column Cell gave me Empty.
Please help me out..
Daniel
Telerik team
 answered on 06 Oct 2010
2 answers
70 views
Could you please tell me or direct me to some code about customizing the appearance of the toolbar?
I don't want to use any of the predefined skins, I just want total control of the styles used. 
On the same note if I am supposed to use some predefined class names, where in documentation can I find those names?
Thanks
Iulian
Iulian Ilies
Top achievements
Rank 1
 answered on 06 Oct 2010
2 answers
53 views
Hi all!

Really need a help from all of you!
I'm using the RadGrid and using AutoGenerateDeleteColumn="true" for adding the Delete Column.
But it locates on the last column. Any ways to move it to the front?

Thanks!

Andy.
Andy
Top achievements
Rank 1
 answered on 06 Oct 2010
4 answers
87 views
I have a little visual problem. In IE8 a Hyperlink Column that is no AlternateItem and is not Hovered 
shows the Link Decoration (Underline) for the Hole Link text when only parts of the Text ist visible,
when hovered with Mouse the decoration gets fit to the columnwidth (see pictures)

John
Top achievements
Rank 1
 answered on 06 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?