Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views
I recently upgraded the Telerik controls on a web project to the latest version (2008 Q3). I'm think I had 2007 Q1 in use before the upgrade but I'm not certain. (I have 6 versions installed) Anyway.. After I upgraded the grid, I noticed a difference in how the multi select rows now works. I have a checkbox select column on the grid and I am almost positive it use to select/unselect a row when you clicked anywhere on the row. Now when you click on a row it clears all the selections and selects the row clicked on. Has this behavior changed? and if so if there a method to make it behave like it use to?
Princy
Top achievements
Rank 2
 answered on 18 Feb 2009
2 answers
103 views
Hi,
I want to access the cells of the current row in the ItemDataBound event handler.

This throws exception
void RadGrid1_ItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e)
        {
            GridDataItem item = e.Item as GridDataItem;
            //item["Naam"].Text     --throws exception, my column is not found

            DataRowView row = item.DataItem as DataRowView;
    //row[0]  --works ok
        }

What I need to do the to change the color of the ForeColor property of the cell I want to access, Is there a way to access a specified cell with its index or even column unique name?
Shinu
Top achievements
Rank 2
 answered on 18 Feb 2009
1 answer
114 views
I've got a slightly complicated RAD Grid that appears to be working pretty well except for the Add New. Form comes up, you fill it in and hit Insert and all is well except there is no new record. But there are no errors either. Where do I go to track down what the grid is doing with the INSERT command? (Update works like a charm!)
Shinu
Top achievements
Rank 2
 answered on 18 Feb 2009
6 answers
192 views
Sorry, I accidentally placed this post in the wrong area before this. Feel free to remove my other post... It's one of those days...

--- Post starts here ---

I know, there's like twenty of these threads already, but I'm losing my mind and I'm about to put my keyboard through my monitor... I've built a small application using Telerik's menu, gridview, and the ASP AJAX Controls MediaPlayer control. Everything worked fine with it until I tried to put it onto the server. It played fine locally (until I had to modify the config), and it still plays fine on the intranet where I developed this. I am getting these two errors:

'Sys' is undefined
'Telerik' is undefined

I have attached my web.config file. I can't find anything. Probably because I'm new to ASP.NET development (but not to programming). If you can find anything that might fix this, please, help me... This is so discouraging as the program is ready for launch as version 1...

I'm really irritated. Sorry...

---
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 />

 

 

 

<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="false">

 

<assemblies>

<add

 

assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<add

 

assembly="System.Data.DataSetExtensions, 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.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<add

 

assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

 

<add

 

assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />

 

<add

 

assembly="System.Drawing.Design, Version=2.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="None" />

 

<customErrors

 

mode="Off">

 

</customErrors>

<!--

 

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

 

enableEventValidation="false">

 

<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" />

 

</controls>

</pages>

<httpHandlers>

<remove

 

verb="*" path="*.asmx" />

 

<add

 

verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<add

 

verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

<add

 

verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

 

<add

 

path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />

 

</httpHandlers>

<httpModules>

<add

 

name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

 

</httpModules>

</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>

</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" />

 

</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="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

 

</handlers>

</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>

David
Top achievements
Rank 1
 answered on 17 Feb 2009
1 answer
114 views
Hi there,

This is how we are using RadEditor (ASP.NET AJAX 2008.31125) in one of our pages: 

<telerik:radeditor
    ID="RadEditor1"
    runat="server"     
    EditModes="Design,Html"
    AutoResizeHeight="true"
    EnableViewState="true"        
    BorderWidth="1"
    Skin="Telerik"
    ToolsFile="../RadControls/Editor/ToolsFile.xml"
    EnableResize="false">       
    <ContextMenus>
        <telerik:EditorContextMenu  Enabled="false" />
        <telerik:EditorContextMenu TagName="IMG"  Enabled="false" />
        <telerik:EditorContextMenu TagName="TABLE"  Enabled="false" />
    </ContextMenus>   
</telerik:radeditor>

AutoResizeHeight works fine, when BorderWidth is set to "1". But when I remove BorderWidth or set it to "0", AutoResizeHeight functionality is not working properly and size of the editor decreases for every keystroke.
.
Please let me know what you think.

Thanks, Lakshman
Lakshman
Top achievements
Rank 1
 answered on 17 Feb 2009
2 answers
261 views
Hi -

I have a RadGrid on a page displaying a list of orders, and a couple of buttons - external to the grid - to pop open RadWindows.  I'd like to be able to pass the Order ID from the selected row (using client-side row selection) in the grid to the query string for the RadWindow NavigateURL property by clicking one of the buttons.  I have looked at the example here: http://www.telerik.com/help/aspnet-ajax/window_programmingusingtheurlquerystring.html, which gives me part of the solution, but how can I reference the Order ID (which is the data key name for the grid)?  I would rather not use links or buttons in the grid itself since I am out of horizontal space - I would like to use the external buttons.

Also, using the example referenced above, I lost all of the window formatting specified in the RadWindowManager when the window popped open (width, height, behaviors, etc.). Do I need to set all of that up again in the JavaScript call to open the window, or is there a setting to have the JavaScript call pick up the info from within the RadWindoManager?

Thanks for the help,

Rod
Rod
Top achievements
Rank 1
 answered on 17 Feb 2009
5 answers
246 views
I am using the Rad Upload to allow users on my website to upload images. Is there a way I can save captions with each image file?
-DJ-
Top achievements
Rank 1
 answered on 17 Feb 2009
0 answers
99 views
I have never used the radmenu before. I have a form where the user has to select a geographic location. There are 5 types of locations and the way it is stored in a SQL table is that there is a code of LR, LU, LS, LT, LU which stand for LR (location region),LU ( location urban), LC (location country), LS (location state), and LT (location UK counties) and these prefix the field and then the rest of the field has the location info. So for example LU/gb.eng.liverp would mean that this is and urban location called Liverpool wihich is has location in England in the United Kingdom. This is all in one field, and there is no mapping fields or table. I have to figure out how to give the user a way to filter the choices of region,country, state, and urban.

My choice would be to use a combo box but then thought of using a menu and saw the example of the file/edit and when click on edit->font and listing of fonts appear. Is there any way to do menu where I would have one item called Location, and when they click on it, 5 items drop down, and there can be a right arrow for each, and I can load the location depending if they choose state, or urban. I am not sure if this would be the most efficient way to do this. Would it be better to use a combo box? And if so, is there a way to do it similar to how I describe?

Thanks,
Laura
Laura
Top achievements
Rank 1
 asked on 17 Feb 2009
2 answers
121 views
Hi,
I need to customise the look of certain nodes. I need to alter the style so that they sit closer together than other types of nodes.
I have tried setting the CssClass property of these nodes to my own css class in which I set the height as I wish.
The problem is that the height of the row seems to be controlled by a span which appears before the img and the text span. This span has it's class set to rtSp which defines height to be 20px.

The node looks like this:
<LI class-rtLI>
    <DIV class=rtMid>
        <SPAN class=rtSp>
        <IMG class=rtImg>
        <SPAN class=rtIn MyClass>
            Node Text

Where rtSp the class that I need to be able to change (change height from 20px to 16px) in order to control the height (but only for specific nodes)
and MyClass is the class I created to attempt to change the height of the whole node.


Thanks for your help
        
ali
Top achievements
Rank 1
 answered on 17 Feb 2009
3 answers
175 views
Is it possible to make the slider a required field? It has CausesValidation, but nothing seems to be able to validate it.

Ideally i would like no glider or value to be associated with it (completely blank), until a choice is made.

thanks,
Tsvetie
Telerik team
 answered on 17 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?