Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
41 views
I am styling the Telerik menu using only CSS (no skins).  It is working fine and the results are good, except...I would like to visually separate cascading groups.

I have attached a small screen capture of the current menu with the "Buy" menu selected, and the detail "Search..." item selected.  The items to the right (Search by City, Search by Zip Code, etc.) are items under "Search...".

I would like to visually separate the lower level group (Search by City, Search by Zip Code, etc.) from the second level (Search..., Buying a Home, etc.) with a small (say 3 or 4 pixel) gap where the RED line is drawn on the graphic.

I should probably add that I am NOT setting the width of the items, I am letting the width "float" automatically based on the text contents.

Can you tell me how I can do this using CSS?

Thank you in advance for the assistance!

Lynn
Kate
Telerik team
 answered on 07 Mar 2011
2 answers
57 views
Let's say I have the following classes:

Public Class AddressBook
      Public Property OwnerName As String
    Public Property Friends As IList(Of Contact)
    Public Property Family As IList(Of Contact)
    Public Property Colleagues As IList(Of Contact)
 
End Class
 
Public Class Contact
    Public Property Address As Address
    Public Property Name As String
    Public Property Phone As String
    Public Property DateOfBirth As Date
    Public ReadOnly Property Age As Integer
        Get
            Return Math.Floor((Date.Now - DateOfBirth).Days / 365)
        End Get
    End Property
End Class
 
Public Class Address
    Public Property StreetNumber As Integer
    Public Property StreetName As String
    Public Property ZipCode As String
End Class

Is it possible to Databind the grid to the AdressBook and have the detail tables assigned automatically to properties like Friends, Family and Colleagues ? And then Adress to contact ?

Is it doable declaratively from the aspx file ?
Martin
Top achievements
Rank 1
 answered on 07 Mar 2011
3 answers
86 views
2010.3.1304.20  IE8

In "Design" mode is fine, but in in "HTML" mode something strange goes on with below:
Height of the control not in line with data displayed and scroll bars come up.   Most of the data after first line is hidden.

<telerik:RadEditor ID="txtExplain" AutoResizeHeight="true" BorderStyle="None" BorderWidth="0px" EditModes="HTML"
                    ToolsFile="~/Resources/EmptyTools.xml" Width="720px" Height=”30px” style="height:auto" StripFormattingOptions="All"  runat="server">
</telerik:RadEditor>
Rumen
Telerik team
 answered on 07 Mar 2011
1 answer
69 views
Hello, 

I used Rad Controls (Q1 2010) for Ajax in VS 2008.

I upgraded my VS to 2010 and i don't see any more the controls, what should i do to 

be able to use them again?

Regards, 

Avner
Kiara
Top achievements
Rank 1
 answered on 07 Mar 2011
1 answer
139 views
I am trying to ajaxify a Grid so that certain elements will only cause limited updates and other elements will cause the whole grid to update. For example I my edit form template contains a user control and a second Grid, I am able to enable Ajax for the sub-grid with an Ajax Manager Proxy placed within the edit template and I am able to enable Ajax for certain input panels within the user control in the same way.  I am running into problems attempting to enable ajax for the Grid itself.  

If I just add the main grid to my AjaxManager, the grid is ajaxified, but now all my internal ajaxified controls cause the whole Grid to update which is an issue because it is clearing out the status of my AsynUploader.  So instead I was attempting to enable ajax on the particular controls within the grid which should cause the whole grid to update on an item by item basis.  This is where I am running into problems.

For example I am attempting to enable ajax for the submit button which sits inside my edit form by adding this ajax setting entry to the proxy ajax manager of the edit template:

<telerik:AjaxSetting AjaxControlID="editSubmitLnk">
        <UpdatedControls>
         <telerik:AjaxUpdatedControl ControlID="resourceGrid" />
</UpdatedControls>
</telerik:AjaxSetting>

This does cause the button to make an ajax request as it should, I can see the event the button triggers firing properly when the button is pressed, the problem is that it does not cause the main grid (resourceGrid) to update as it should.
Mira
Telerik team
 answered on 07 Mar 2011
1 answer
48 views
I'm at a point in a web project where, I need to bind a Telerik Grid with data. The data is retrieved on the basis of client ID and a date range. the data that is retrieved is to be bound with the grid but there is a twist. See attached file.

The columns Actual Cost, Inv. Ref, Difference, Add Email, and Add Comment are not coming from DB. They are unbound as they do not exists. I can manage Add Email and Comment. However, once displayed to the user, the Actual Cost, Invoice Reference, and Difference columns are to be blank (row-wise, of course). When I enter something in Actual Cost against a row, the Difference column must show Est. Cost - Actual Cost. Also, the Est Cost, Actual Cost, and Difference are all currencies so having a Numerical input with two decimals is very desired. The Est. Cost is a bound column so masking is no issue there.

The second noticable thing is that if the difference is in positive (and >= a certain defined limit), the row turns red. If difference is negative (and <= a certain limit), the row turns green.

The page that is going to host this drama is a child page with the Ajax Proxy. The Grid will trigger Ajax on itself upon an action. Could someone giude me as to which event I shall subscribe on the grid and prevent grid auto operations? Also, I need to understand the moment the calculations (Difference = Est. Cost - Actual Cost) will occur... i.e., upon cell leave focus?

Regards,
Hassan Gulzar
Marin
Telerik team
 answered on 07 Mar 2011
1 answer
75 views
Hi,

I tried to fill radpane in radsplitter with radtreeview. When I used
var tree = $find("<%=RadTreeView1.ClientID %>"); 
tree.style.height = "100px";
It crushed because tree is null. But when used
var tree = document.getElementById("RadTreeView1"); 
tree.style.height = "100px";
It worked fine. Why is that?
Marin Bratanov
Telerik team
 answered on 07 Mar 2011
1 answer
186 views
Hello Admin,

                    I am trying to Do grouping client side by applying default group Expression but it just show me sign of group by .. but it don't actually did the same.

So, Is this possible to do radGrid Grouping Client side or we need to do it Server side?
If it is possible please provide me the Solution ASAP.
Kiara
Top achievements
Rank 1
 answered on 07 Mar 2011
3 answers
144 views
Hi,

I use RadProgressManager (2009.2.701.35) and RadUpload in my web page. I fill the blanks and send the file in page. Then I push the send to Approve button. This button save the some fields and filenames then Response.Redirect to root page. When response on the root page session objects values null. How to avoid this error ?
in Aspx Page
<td id="controlContainer" style="width: 430px">
                               
                                    <telerik:RadProgressManager ID="Radprogressmanager1" runat="server" />
                             
                                  
                                    <telerik:RadUpload
                                ID="RadUpload1" runat="server" 
                                Skin="Vista"
                                MaxFileInputsCount="1"
                                OverwriteExistingFiles="false" 
                                 ControlObjectsVisibility="None" Culture="Turkish (Turkey)" 
                                ReadOnlyFileInputs="True" InputSize="46" 
    Width="300px" >
                                        <Localization Select="GÖZAT" />
                                    </telerik:RadUpload>
                                    <asp:Button ID="btnSendFile" runat="server" OnClick="btnSendFile_Click" 
                                        text="Gönder" />
                              
                        </td>
in Web.Config
<?xml version="1.0"?>
    <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="repositoryFilename" value="\\LBL\\EXPENSEPRINT.tff" />
    <add key="dataDirectory" value="\\data\\" />
  </appSettings>
    
    <connectionStrings>
        <remove name="LocalSqlServer"/>
        <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=yes;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
    </connectionStrings>
  <location path="Telerik.RadUploadProgressHandler.aspx">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
  
    <system.web>
        <httpRuntime maxRequestLength="819200" executionTimeout="3600"/>
        <globalization culture="en-GB" uiCulture="en-GB"/>
        <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"/></controls>
        </pages>
        <!--
          Set compilation debug="true" to insert debugging
          symbols into the compiled page. Because this
          affects performance, set this value to true only
          during development.
    -->
        <sessionState timeout="1000"/>
        <authentication>
            <forms loginUrl="Default2.aspx" timeout="1000"/>
        </authentication>
        <identity impersonate="true"/>
        <compilation debug="true">
            <assemblies>
                <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <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"/>
                <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <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.Xml.Linq, 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.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </assemblies>
        </compilation>
        <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.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" validate="false"/>
  
      <add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />
      <add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
        
      <add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />
        </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, Telerik.Web.UI"/>
        </httpModules>
        <authorization>
            <deny users="?"/>
            <allow users="*"/>
        </authorization>
    
  
  
  
  
  </system.web>
  <system.web.extensions>
    <scripting>
      <scriptResourceHandler enableCompression="false" enableCaching="true" />
    </scripting>
  </system.web.extensions>
    <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, Telerik.Web.UI" preCondition="managedHandler"/>
    </modules>
        <handlers>
            <remove name="ScriptHandlerFactory"/>
            <remove name="ScriptHandlerFactoryAppServices"/>
            <remove name="ScriptResource"/><remove name="WebServiceHandlerFactory-Integrated"/>
            <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.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0"/>
    </handlers>
    </system.webServer>
    <system.codedom>
        <compilers>
            <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                <providerOption name="CompilerVersion" value="v3.5"/>
                <providerOption name="WarnAsError" value="false"/></compiler>
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                <providerOption name="CompilerVersion" value="v3.5"/>
                <providerOption name="OptionInfer" value="true"/>
                <providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom>
    <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>
Helen
Telerik team
 answered on 07 Mar 2011
3 answers
49 views
Hi,

I have a radpane in radsplitter, and radeditor in the radpane. How to fill radeditor in the radpane 100% when radpane's is resized (splitterbar is horizontal)?

York
 
Marin Bratanov
Telerik team
 answered on 07 Mar 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?