Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
306 views
Hi
I'm trying to put a radwindow to update radgrid exactly like this demo
and whatever i do i get this problem: Object Expected and the exception referance to specifc line:  CloseAndRebind();Sys.Application.initialize();

i tryed almost evrything but i can't fix it
can u please tell me how i can fix it

best regurds
Ezra



ezra barak
Top achievements
Rank 1
 answered on 10 Nov 2009
1 answer
58 views
I'm displaying different usercontrols on the right of my treeview for editing dependent on the "type" of the node selected in the treeview, as each level of node represents a very different object.  While I'm able to get this to work, I'm not able to get it working with AJAX. 

Ideally, when a node is clicked on the left, the nodeclick event should run on the server, select the necessary usercontrol based on nodetype, show it, bind it, and hide the others. 

So far the only way I'm able to get this behavior is with a full postback.  Any samples that are similar to this that anyone can point me too would be greatly appreciated.

Thanks,
Anthony
Yana
Telerik team
 answered on 10 Nov 2009
1 answer
121 views
Hi,
From the RadFIleExplorer, it has the funtionality to upload a file on the server.
How can I change/customize the look & feel of that particular upload window? I don't want to disturbed the existing theme/style of RadUpload for other pages. Is there anything which can alter the template for FileUpload in RadFileExplorer?

Thanks for your help.
Zaheer
Fiko
Telerik team
 answered on 10 Nov 2009
1 answer
95 views
There has to be a better way to switch between view and edit mode than looping around for each item in the grid such as:
    foreach (GridDataItem item in grid.MasterTableView.Items)

        item.Edit =

true;

The above code assumes that all items are already there which requires databind() or rebind() and after the loop another rebind().
There should be a way to turn the whole grid into an edit mode (when editing in place) so that all editable columns turn into appropriate editors.  Also, there should be a way to turn certain column into edit mode on and off.  After that, one call to rebind() should be sufficient.

Also, I don't know whether this is a bug or what but with one of my specific test case data and above code, all records (rows / items) turn into edit except the first one.  So, I know that the logic to switch to edit mode depends somehow on data which is fundamentally wrong.  When I nail what exactly it is, I will post  a specific example.  Meanwhile, maybe someone has a better approach?

Thank you,
Chris




Shinu
Top achievements
Rank 2
 answered on 10 Nov 2009
5 answers
66 views
Hello,

I have a Gridview and its bound to a Datasource (LINQ)

OK then i have insert in my Grid a Template Column with a Button....

My Template Colum comes alway as the First Item in my Grid
and the comes the Databound Columns from my Datasource..

How do i Sort does the Databound Columns comes first and my Template Colum comes
as the Lst Column Item ????

Where can i say the Gridviev does my Template Column comes at the End of al Columns
and not as the First (Order)
Sebastian
Telerik team
 answered on 10 Nov 2009
1 answer
121 views
Hi,

I am using RadComboBox with CheckBox as a items, now i want to display first selected item as a checkbox, instead of dispaly Empty Message, how?


Thanks & Regards
Amit
Yana
Telerik team
 answered on 10 Nov 2009
1 answer
68 views
Hello,

I'm populating a RadGrid off an Oracle table. The RadGrid will contain information regarding requests entered by users. The columns of the RadGrid will be: Time, First Name, Last Name and System(s) Requested. The first three columns are GridBoundColumns and I am having no trouble with getting them to show the correct data; however, I want the System(s) Requested column to be a GridTemplateColumn with a RadComboBox that shows all of the systems requested by that person, at that time.

So basically, instead of the following:

Time            First Name    Last Name    System(s) Requested
1:00 PM       John              Smith            System1
1:00 PM       John              Smith            System2
1:00 PM       John              Smith            System3


I want to see 1 row for John Smith at 1:00 PM, and I want a RadComboBox in the System(s) Requested column that has 3 values in the dropdown (like below). I'm having some difficulties doing this because I don't know what event I would need to use to pass the value of the First Name column to the SQL DataSource so that when the RadGrid loads the RadComboBox displays all requests for that person.

Time            First Name    Last Name    System(s) Requested
1:00 PM       John              Smith            System1
                                                              System2 <-- will appear when dropdown is clicked.
                                                              System3 <-- will appear when dropdown is clicked.

Any assistance on how to achieve this functionality would be great!

Thanks!
Casey
Sebastian
Telerik team
 answered on 10 Nov 2009
2 answers
424 views
Hi,

i installed ASP.NET AJAX RadControls on my computer, but
i cant use them on visual studio 2008, because when i slide
a control in mode design or mode source, i get an error which
say:

 
RadGrid - RadGrid1System.IO.FileNotFoundException: Impossible de charger le 
 fichier ou l'assembly 'Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral
 PublicKeyToken=121fae78165ba3d4' ou une de ses dépendances. The system cannot 
 find the file specified. Nom du fichier : 'Telerik.Web.UI,  
Version=2009.3.1103.35, Culture=neutralPublicKeyToken=121fae78165ba3d4' Ã   
Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection 
 regions) Ã  System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner 
 designer) 

i think that can be because of web.config's configuration....
somebody can help me?
thx...

web.config

<?xml version="1.0"?> 
<!--  
    Remarque : au lieu d'éditer manuellement ce fichier, vous pouvez utiliser 
    l'outil d'administration Web pour configurer les paramètres de votre 
    application. Utilisez l'option Site Web->Configuration Asp.Net de Visual Studio. 
    Vous trouverez la liste complète des paramètres et commentaires dans  
    machine.config.comments, situé généralement dans  
    \Windows\Microsoft.Net\Framework\v2.x\Config  
--> 
<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> 
    <sectionGroup name="telerik.web.ui"
      <section name="radScheduler" type="Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false" /> 
    </sectionGroup> 
    </configSections> 
    <!--<appSettings/>--> 
    <connectionStrings> 
 
    </connectionStrings> 
    <system.web> 
        <!--  
            Définissez compilation debug="true" pour insérer des symboles  
            de débogage dans la page compilée. Comme ceci  
            affecte les performances, définissez cette valeur Ã  true uniquement  
            lors du développement. 
        --> 
        <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.Data.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.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
                <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="Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" /> 
      </assemblies> 
       
        </compilation> 
        <!-- 
            La section <authentication> permet la configuration  
            du mode d'authentification de sécurité utilisé par  
            ASP.NET pour identifier un utilisateur entrant.  
        --> 
        <authentication mode="Windows"/> 
        <!-- 
            La section <customErrors> permet de configurer  
            les actions Ã  exécuter si/quand une erreur non gérée se produit  
            lors de l'exécution d'une demande. Plus précisément,  
            elle permet aux développeurs de configurer les pages d'erreur html  
            pour qu'elles s'affichent Ã  la place d'une trace de la pile d'erreur. 
 
        <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=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 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" /> 
        </httpHandlers> 
        <httpModules> 
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" /> 
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
        </httpModules> 
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="fr-FR" uiCulture="fr-FR"/> 
    </system.web> 
    <location allowOverride="false"
        <appSettings> 
            <add key="xxxx_xxxx" value="xxx_xxx"/> 
        </appSettings> 
    </location> 
    <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> 
    <!--  
        La section system.webServer est requise pour exécuter ASP.NET AJAX sur Internet 
        Information Services 7.0.  Elle n'est pas nécessaire pour les versions précédentes d'IIS. 
    --> 
    <system.webServer> 
        <validation validateIntegratedModeConfiguration="false"/> 
        <modules> 
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler" /> 
      <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> 
      <add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" /> 
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI"  preCondition="integratedMode,runtimeVersionv2.0" /> 
            <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"/> 
        </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> 
    <system.serviceModel> 
        <behaviors> 
            <serviceBehaviors> 
                <behavior name="ServiceBehavior"
                    <serviceMetadata httpGetEnabled="true"/> 
                    <serviceDebug includeExceptionDetailInFaults="false"/> 
                </behavior> 
            </serviceBehaviors> 
      <endpointBehaviors> 
        <behavior name="ComboBoxWcfServiceAspNetAjaxBehavior"
          <enableWebScript /> 
        </behavior> 
        <behavior name="TreeViewWcfServiceAspNetAjaxBehavior"
          <enableWebScript /> 
        </behavior> 
        <behavior name="MenuWcfServiceAspNetAjaxBehavior"
          <enableWebScript /> 
        </behavior> 
        <behavior name="GridWcfServiceAspNetAjaxBehavior"
          <enableWebScript /> 
        </behavior> 
        <behavior name="SchedulerWcfServiceAspNetAjaxBehavior"
          <enableWebScript /> 
        </behavior> 
      </endpointBehaviors> 
        </behaviors> 
        <services> 
            <service behaviorConfiguration="ServiceBehavior" name="Service"
                <endpoint address="" binding="wsHttpBinding" contract="IService"
                    <identity> 
                        <dns value="localhost"/> 
                    </identity> 
                </endpoint> 
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/> 
            </service> 
      <service name="ComboBoxWcfService"
        <endpoint address="" behaviorConfiguration="ComboBoxWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="ComboBoxWcfService" /> 
      </service> 
      <service name="TreeViewWcfService"
        <endpoint address="" behaviorConfiguration="TreeViewWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="TreeViewWcfService" /> 
      </service> 
      <service name="MenuWcfService"
        <endpoint address="" behaviorConfiguration="MenuWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="MenuWcfService" /> 
      </service> 
      <service name="GridWcfService"
        <endpoint address="" behaviorConfiguration="GridWcfServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="GridWcfService" /> 
      </service> 
      <service name="GridMasterDetailsService"
        <endpoint address="" behaviorConfiguration="GridWcfServiceAspNetAjaxBehavior" 
                  binding="webHttpBinding" contract="GridMasterDetailsService" /> 
      </service> 
      <service name="SchedulerWcfService"
        <endpoint address="" behaviorConfiguration="SchedulerWcfServiceAspNetAjaxBehavior" 
                  binding="webHttpBinding" contract="SchedulerWcfService" /> 
      </service> 
        </services> 
    </system.serviceModel> 
</configuration> 
 
Daniel Botero Correa
Top achievements
Rank 1
 answered on 10 Nov 2009
7 answers
394 views
Hi

This is Karthik from Bangaore.. I have problem in radeditor.. i put some html code in html mode after that i came to design mode then i came back to html mode at the time the editor automaticaly generate <br> tag.. i dont know why its coming... please help me soon..

This problem have I6 and firefox..

Exampl Code:

<

table
    <tr
        <td><div></div></td
        <td><div>hi</div></td
    </tr>
</table>
I am getting problem inside the blank div tag.. and incase td also getting same problme if there is no content between td tag...

Error code:

 

 

<table >

 

 

    <tr>

 

 

 

 

       <td><div></div><br></td>

 

 

 

 

       <td><div>hi</div></td>

 

 

 

 

   </tr>

 

 

 

 

</table>

or

<

table
    <tr
        <td><br></td
        <td><div>hi</div></td
    </tr>
</table>


Thank you for advance
PL.Karthik

 

 

 

Rumen
Telerik team
 answered on 10 Nov 2009
1 answer
184 views


Hi,

I have a requirement to open RadWindow when a button clicks on a page. I perform some actions in RadWindow and when i say click on Submit button in RadWindow then the window should be closed and the data(collection of objects) has to come to the parent page.
This data will be used in parent page.

My Radwindow should support to have usercontrol so that i can easily plug in to the window.

Please give me the suggesions.

Regards,
Maruti.
Princy
Top achievements
Rank 2
 answered on 10 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?