Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
862 views
I have a grid with EnablePostBackOnRowClick = true and GridClientSelectColumn. The problem is that when I try to select various rows with the checkbox in the GridClientSelectColumn a postback is produced and I cannot check the rows.

Is there any way to avoid the postback when selecting the rows through the GridClientSelectColumn?

Thanks in advance 



Rajiv
Top achievements
Rank 1
 answered on 14 Jul 2011
5 answers
205 views
Hi all,

I have a CarNumber column

<telerik:GridTemplateColumn UniqueName="car_number" SortExpression="car_number" HeaderText="Car Number" DataField="car_number" CurrentFilterFunction="Contains">
    <ItemTemplate>
       <asp:Label ID="car_number" runat="server" Text='<%#Eval("car_number")%>' />
    </ItemTemplate>
    <EditItemTemplate>
         <telerik:RadTextBox ID="ed_car_number" runat="server" Text='<%# Bind("car_number")%>' Width="100px" Font-Size="Small" Font-Names="Arial">
         </telerik:RadTextBox>
     </EditItemTemplate>
</telerik:GridTemplateColumn>

And would like set focus in the InsertMode as http://www.telerik.com/help/aspnet-ajax/grid-set-focus-on-textboxes-in-edit-control.html

If (TypeOf e.Item Is GridDataInsertItem And e.Item.IsInEditMode) Then
            Dim MyUserControl As UserControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) '
            myRadGrid.Controls.Add(New LiteralControl(String.Format("<script type='text/javascript'>document.getElementById('{0}').focus();document.getElementById('{0}').select();</script>", MyUserControl.FindControl("ed_car_number").ClientID)))
            e.Item.Selected = True
End If

However, it doesn't work.

Please help.

Thanks.

Andy.


 
Andy
Top achievements
Rank 1
 answered on 14 Jul 2011
1 answer
197 views
Hi

How to add emoticons in MOSSRadEditor 5.6 ? I have to add in toolfile.xml?. 

Thanks in advance

Regards,
Selva
Rumen
Telerik team
 answered on 14 Jul 2011
3 answers
196 views

I have upgraded a project to Q2.  On the development machine, everything runs without issue.  On the production machine, I get an Internal Error 500, which I've tracked down to this section that's been added to the web.config (once deleted, everything works again):

<configSections>
  <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
      <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /></sectionGroup></sectionGroup></sectionGroup></configSections>



Thanks in advance for anyone's help or input.

Edit -
After troubleshooting on the server, it turns out to be an Error 500.19

It appears that scriptResourceHandler, jsonSerialization, profileService, and authentication are duplicated --

Error Code 0x800700b7
Config Error There is a duplicate 'system.web.extensions/scripting/webServices/jsonSerialization' section defined 

I can make the problem go away by deleting out these three <section name="..."> sections.

I have included the web.config file both before and after the Q2 update.

Before update:

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  -->
<configuration>
  <appSettings>
 
  </appSettings>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true" targetFramework="4.0">
            <assemblies>
                <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.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /></assemblies></compilation>
        <pages>
            <controls>
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" /></controls></pages>
        <httpHandlers>
            <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" />
             
            <remove name="RadCompression" /><add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" /></modules>
        <handlers>
            <remove name="ChartImage_axd" />
            <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
            <remove name="Telerik_Web_UI_DialogHandler_aspx" />
            <remove name="Telerik_RadUploadProgressHandler_ashx" />
            <remove name="Telerik_Web_UI_WebResource_axd" /><add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" /></handlers></system.webServer>
</configuration>

After the update, lots of stuff gets added, including the problem lines at the beginning:

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  -->
<configuration>
<configSections>
  <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
      <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /></sectionGroup></sectionGroup></sectionGroup></configSections>
  <appSettings>
 
  </appSettings>
    <system.web>
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        --><compilation debug="true" targetFramework="4.0">
            <assemblies>
                <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.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></assemblies></compilation>
        <pages>
            <controls>
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></controls></pages>
        <httpHandlers>
             
      <remove verb="*" path="*.asmx" /><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" />
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" /></httpHandlers>
        <httpModules>
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></httpModules>
    </system.web>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
            <remove name="RadUploadModule" />
             
            <remove name="RadCompression" /><add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
      <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></modules>
        <handlers>
            <remove name="ChartImage_axd" />
            <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
            <remove name="Telerik_Web_UI_DialogHandler_aspx" />
            <remove name="Telerik_RadUploadProgressHandler_ashx" />
            <remove name="Telerik_Web_UI_WebResource_axd" />
      <remove name="WebServiceHandlerFactory-Integrated" /><add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></handlers></system.webServer>
<system.web.extensions>
  <scripting>
    <webServices /></scripting></system.web.extensions>
</configuration>

Talys
Top achievements
Rank 1
 answered on 14 Jul 2011
1 answer
197 views
I'm having problems getting my tooltip to hide on mouseout. Its setup like this...

<rad:RadToolTip ID="radShoppingCartMainTT" runat="server" ShowEvent="FromCode" IsClientID="true"
            Sticky="false" AutoCloseDelay="10000" Position="BottomLeft" RelativeTo="Element"
            OffsetY="2" Height="500px" Width="320px" Skin="Default" ContentScrolling="Y"
            Title="">
Content
</rad:RadToolTip>
<span runat="server" id="lnkTT" onmouseover="showTT(this); return false;"></span>
function showtTT(trigger)
{
    var tooltip = $find("TT");
    if(tooltip != null)
    {  
        tooltip.set_targetControl(trigger);
        tooltip.show();
    }
}

I tried adding tooltip.set_hideEvent(Telerik.Web.UI.ToolTipHideEvent.Default); to the JS function, but it didnt work. I created a test page with just the element and tooltip and found that if I changed the ShowEvent to onMouseOver and it works properly. How do I get this functionality using my JS function or an additional attribute in the tooltip?
Marin Bratanov
Telerik team
 answered on 14 Jul 2011
10 answers
238 views
Hi,

I am using the RadWindow/radprompt client side function with the following code;

radprompt(Sometext.',   myCallback, 350, 150, null'Header'''); 

In Firefox and Opera everything behaves as expected but in IE8 the prompt textbox is pre-filled with the value type=text. I am guessing this is from an <input type=text tag or something, perhaps a javascript declaration.

Has anybody else encountered this problem?

Thanks!
Ely
Top achievements
Rank 1
 answered on 14 Jul 2011
2 answers
75 views
Hi,

My client has purchased telerik controls and he gave me project in which I have
Telerik.Web.Design.dll
Telerik.Web.UI.dll
Purchased dll available and referenced it properly.
When we build and run this site it runs successfully.
But when we open a aspx page in design view in VS2010 at that time it didn't display me the controls and gives errors.
On this URL : http://www.telerik.com/help/aspnet-ajax/introduction-vsx-telerik-web-design-assembly.html
My problem is same as this URL.
We don't have installation file so now how can we solve this error?

Thanks

Gaurav
Gaurav
Top achievements
Rank 1
 answered on 14 Jul 2011
3 answers
91 views
Am in the midst of moving codes to telerik and having some difficulty converting. The page i am working on has a treeview which is used for main navigation. on click it would load the relevant aspx page to a new tab. Been trying to look for answers and this is the best i could come to. It is able to load the pages correctly now, but each time i switch to another tab and then back, it would reset any data entry i made. Point here is the user should be able to do data entry on one tab and switch to another tab to do other stuff and then come back to continue what they are doing. Hope you can provide some pointers :) Thanks

ASPX

<telerik:RadTreeView ID="TreeView1" Runat="server" Skin="Hay" Font-Names="Verdana" Font-Size="9px" onnodeclick="TreeView1_NodeClick">
</telerik:RadTreeView>
                                   
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" ontabclick="RadTabStrip1_TabClick"></telerik:RadTabStrip>
<iframe  id="ContentIframe4" width=100% height="600px" frameborder="0" runat="server"></iframe>

C#

protected void TreeView1_NodeClick(object sender, RadTreeNodeEventArgs e)
{
... database retrieve of sScreebnPath (url), stabname based on node click

       RadTab rtNewTab = new RadTab () ; 
RadTabStrip1.Tabs.Add(rtNewTab);
       rtNewTab.Text = sTabName; 
       rtNewTab.Attributes["url"] = sScreenPath;
       ContentIframe4.Attributes["src"] = sScreenPath;
}

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
      ContentIframe4.Attributes["src"] = e.Tab.Attributes["Url"]; 
}
Dimitar Terziev
Telerik team
 answered on 14 Jul 2011
1 answer
106 views
Hi,
after a long search in the forum i have not found a solution to my problem.
It is similar to problem described in the Paloma laders Tirado's post "with RadTabScript Controls" .

The question is:
I have a .aspx page which job like "container". I need to add in it tabs (controls) with RadTabStrip and RadMultiPage.
The first time that i try to pass from one tab to the next one (using gotonexttab button) i do not succeed in loading new data into the selected tab; then, after a postback, i am able to see new data.

Dimitar Terziev
Telerik team
 answered on 14 Jul 2011
3 answers
148 views
I am looking to create grids dynamically from a database that have drag and drop row ability within the grids themselves, however prevent them from dragging and dropping outside of their parent grid.   I also want to keep performance in mind as well ...

User 1
    Project 1
    Project 2
    Project 3
  
User 2
    Project 4
    Project 5
    Project 6

User 3
    Project X
    Project Y
    Project Z

As shown above, users would be pulled from a database with the grid below them containing the projects that they are working on with the ability to drag and drop sort the order of the projects......  The project row would contain several columns with data relating to the project.  As a example, Project 5 could be moved above or below it's current position, however it could never be moved to User 1 through the drag and drop grid....

The Big Question:  Is this possible, and how would this be accomplished?  Any examples provided would be great....

Drew

Mira
Telerik team
 answered on 14 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?