Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
2.5K+ views
Hello,
I am using telerik controls in my web-application (asp.net, C#).
When I upload published files on server I am getting foll. errors in browser and telerik controls are not working.
Mozilla-
1.  ASP.NET Ajax client-side framework failed to load.
2.  Sys is not defined

Chrome-
1.  Uncaught SyntaxError: Unexpected token < 
2.  Uncaught Error: ASP.NET Ajax client-side framework failed to load.  
3.  Uncaught ReferenceError: Sys is not defined  

Please see attached images for more details.

I have referred foll. site but still its not resolved.
http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html 

Telerik DLL version - 2010.3.1215.35
AjaxControlToolkit.dll  version - 3.0.20820.0
My web.config file -

<?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>
  </appSettings>
  <connectionStrings>   
  </connectionStrings>
  <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.
        -->
    <httpRuntime maxRequestLength="51200" executionTimeout="3600" />
      <compilation debug="true">
          <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.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
              <add assembly="System.ServiceModel, Version=3.0.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.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
              <add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </assemblies>
      </compilation>
    <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
      <machineKey validationKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902" decryptionKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC" validation="SHA1"></machineKey>
    <authentication mode="Forms">
      <forms name=".SSOAuth" loginUrl="login.aspx" defaultUrl="Redirect.aspx" protection="Validation" timeout="30000"/>
    </authentication>
       
    <customErrors mode="Off"/>
    <membership defaultProvider="MysueMembershipProvider">
      <providers>
        <clear/>
        <add name="MyMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="My_testConnectionString"  minRequiredPasswordLength="3" minRequiredNonalphanumericCharacters="0" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"  passwordFormat="Clear" applicationName="Mysue" maxInvalidPasswordAttempts="2147483647"/>
      </providers>
    </membership>
    <anonymousIdentification enabled="true"/>
    <profile defaultProvider="MysueProfileProvider" enabled="true">
      <providers>
        <clear/>
        <add name="MyProfileProvider" connectionStringName="My_testConnectionString" applicationName="Mysue" type="System.Web.Profile.SqlProfileProvider"/>
      </providers>
      <properties>
        <add name="UserName" type="String"/>
        <add name="UserRole" type="String"/>
        <add name="UserId" type="long"/>
        <add name="UserEmail" type="String"/>
      </properties>
    </profile>
 
    <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="MysueRoleProvider" cookieName=".ASPXROLES" cookiePath="/" cookieTimeout="30" cookieRequireSSL="false" cookieSlidingExpiration="true" createPersistentCookie="false" cookieProtection="All">
      <providers>
        <clear/>
        <add name="MyRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="Mysue_testConnectionString" applicationName="MyTest"/>
      </providers>
    </roleManager>
      <healthMonitoring enabled="true">
          <eventMappings>
              <clear/>
              <!-- Log ALL error events -->
              <add name="All Errors" type="System.Web.Management.WebBaseErrorEvent" startEventCode="0" endEventCode="2147483647"/>
          </eventMappings>
          <providers>
              <clear/>
              <!-- Provide any customized SqlWebEventProvider information here (such as a different connection string name value -->
              <add connectionStringName="My_testConnectionString" maxEventDetailsLength="1073741823" buffer="false" name="SqlWebEventProvider" type="System.Web.Management.SqlWebEventProvider"/>
          </providers>
          <rules>
              <clear/>
              <add name="All Errors Default" eventName="All Errors" provider="SqlWebEventProvider" profile="Default" minInstances="1" maxLimit="Infinite" minInterval="00:00:00"/>
          </rules>
      </healthMonitoring>
    <!--
            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>
          <controls>
              <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
              <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="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
              <add tagPrefix="telerik" namespace="Telerik.Charting" assembly="Telerik.Web.UI"/>
          </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="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
          <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" 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>
       
      <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="ChartImage_axd" />
          <remove name="WebServiceHandlerFactory-Integrated" />
          <remove name="ScriptHandlerFactory" />
          <remove name="ScriptHandlerFactoryAppServices" />
          <remove name="ScriptResource" />
          <remove name="Telerik_Web_UI_WebResource_axd" />
          <remove name="ChartImageHandler" />
          <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
          <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="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add name="ChartImg" verb="*" path="ChartImg.axd"  type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.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.WebResourceSession" />
      </handlers>
      <rewrite>
          <rules>
              <rule name="RewriteASPX">
                  <match url="(.*)" />
                  <conditions logicalGrouping="MatchAll">
                      <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                      <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                  </conditions>
                  <action type="Rewrite" url="login.aspx?id={R:0}" />
              </rule>
          </rules>
      </rewrite>
  </system.webServer>
  <location path="Admin">
    <system.web>
      <authorization>
        <allow roles="Admin"/>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>
  <location path="Member">
    <system.web>
      <authorization>
        <allow roles="Member"/>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>
    <location path="Telerik.Web.UI.WebResource.axd">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>
    <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.web.extensions>
        <scripting>
            <webServices>
                 
            </webServices>
              
        </scripting>
    </system.web.extensions>
</configuration>


Telerik DLL version - 2010.3.1215.35
AjaxControlToolkit.dll  version - 3.0.20820.0 

Please see attached images.

Please let me know if there is any error in config file.
Thanks


Vasil
Telerik team
 answered on 25 Dec 2012
7 answers
229 views
I'm using the RadScheduler on a DotNetNuke module and for the month of November, the scheduler is binding 3140 appointments. Yes, over 3000 appointments.

I'm using the logic to filter by the viewable ranges, and administrators need to see all of the appointments for that range. This has led to a massive ViewState size (2.64MB) and that's after gzip compression as well set on IIS.

With a ViewState that large, it creates a problem for administrators that want to work on their iPad or on their phone over 3G networks, and in some cases even on their PCs. I tried setting EnableViewState = false for the Scheduler, and it almost entirely works.

There is a scenario where a dropdown on the AdvancedForm user control causes a page postback and effectively breaks the control when the ViewState for the Scheduler is off. If there is any code you can point me to that would potentially let me use jQuery or the Telerik cleint-side methods and wire up to a RadComboBox on the AdvancedForm. I have a cascading dropdown scenario where selecting a value in one box needs to set availability of resources in the dropdown right underneath it.

As an example, they pick Client A, it makes a roundtrip to the database and says they have secondary resources A,B,C available (postback). If they pick Client B, they may have resources B, D, and E. The availability of these secondary resources needs to be controlled so simple making them all available is also not an option.

Is there anything else you can recommend in order to minimize the Viewstate size for the Scheduler? Using RadCompression is not an option as we are working with a DotNetNuke instance and it uses a custom provider for compression handling. An acceptable option would be having GetAppointments not return any appointments for an administrator until a filtering option is selected. If there is an example for binding appointments based on a filter without first pulling back all appointments, that would work as well (example: no appointments shown at first, but when Client C is picked, will fetch their appointments using the custom scheduler provider and bind those)

Thanks in advance

Cat Cheshire
Top achievements
Rank 1
 answered on 25 Dec 2012
4 answers
56 views
hi, guys,
i created a pageweb compatibility with chrome and IE9 but when i open this page with IE8 the graphic is not compatibility. Please look at the attached picture.....

I wrote this code but nothing result.

<meta http-equiv="X-UA-Compatible" content="IE=8" />

How can I solve the problem how can I adjust the graphics to IE8, Chrome and Firefox .... 9 and also have different sizes radwindos.


Marin Bratanov
Telerik team
 answered on 25 Dec 2012
1 answer
72 views
I have a RadWindow overlay that opens up with some textboxes in it. The overlay pops up over an Flash video normally, but on the iPad, we have an HTML5 video there instead.

When it's on the iPad with this HTML5 video, whenever I try to click on a textbox to enter information, the click is registered on the HTML5 video behind the overlay instead. Only the left half of the overlay is over the html5 video, so if I click on the far right of the textbox, it will register the click correctly inside the textbox and bring a cursor up. 

I am calling the SetActive() function on the window, so it should be the active window. Any ideas? Has anyone else run into this problem? It works fine on a desktop when a flash player is involved.

var oManager = radopen('/testfile.aspx', null);
 
oManager.setSize(450, 400);
oManager.center();
oManager.SetActive();

Marin Bratanov
Telerik team
 answered on 25 Dec 2012
1 answer
104 views
i am creating a rad chart control in codebehind and adding it to the page. i now need to add tooltip to the points.
I assign the data ycolumn to the chart series. so i dont have active regions defined hence no tool tip.
can anyone point me in the right direction. any help is appreciated. thank you.

Murali.
Petar Marchev
Telerik team
 answered on 25 Dec 2012
1 answer
81 views
Hi,

I have built in a RadComboBox in a .net-Controltemplate with the following code:

<telerik:RadODataDataSource runat="server" ID="RadODataDataSource1" >
    <Transport>
        <Read Url="http://sharepoint/_vti_bin/ListData.svc/" DataType="XML" />
    </Transport>
    <Schema>
        <telerik:DataModel ModelID="Steuerkennzeichen" Set="Steuerkennzeichen">
            <telerik:DataModelField FieldName="Titel"  />
            <telerik:DataModelField FieldName="Display_Text" />                               
        </telerik:DataModel>
    </Schema>
</telerik:RadODataDataSource>
 
<telerik:RadComboBox
    ID="RadComboBox1"
    runat="server"
    EnableLoadOnDemand="true"
    ODataDataSourceID="RadODataDataSource1"
    DataModelID="Steuerkennzeichen"
    DataTextField="Display_Text"
    DataValueField="Titel"
    ShowMoreResultsBox="true"
    ItemsPerRequest="4">
</telerik:RadComboBox>

I found the following thread: http://www.telerik.com/community/forums/aspnet-ajax/odata-datasource/no-data-from-odata.aspx
but this did not help.

My Result (Fiddler) looks like this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
  <title type="text">Steuerkennzeichen</title>
  <updated>2012-12-20T08:34:35Z</updated>
  <link rel="self" title="Steuerkennzeichen" href="Steuerkennzeichen" />
  <entry m:etag="W/"1"">
    <title type="text">19%</title>
    <updated>2012-11-07T16:45:48+01:00</updated>
    <author>
      <name />
    </author>
    <link rel="edit" title="SteuerkennzeichenItem" href="Steuerkennzeichen(1)" />
    <category term="Microsoft.SharePoint.DataService.SteuerkennzeichenItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <content type="application/xml">
      <m:properties>
        <d:Steuerkennzeichen>50</d:Steuerkennzeichen>
        <d:Display_Text>50 / 19%</d:Display_Text>
      </m:properties>
    </content>
  </entry>
  <entry m:etag="W/"1"">
    <title type="text">7%</title>
    <updated>2012-11-07T16:45:57+01:00</updated>
    <author>
      <name />
    </author>
    <link rel="edit" title="SteuerkennzeichenItem" href="Steuerkennzeichen(2)" />
    <category term="Microsoft.SharePoint.DataService.SteuerkennzeichenItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <content type="application/xml">
      <m:properties>
        <d:Steuerkennzeichen>51</d:Steuerkennzeichen>
        <d:Display_Text>51 / 7%</d:Display_Text>
      </m:properties>
    </content>
  </entry>
  <entry m:etag="W/"1"">
    <title type="text">0</title>
    <updated>2012-11-07T16:46:07+01:00</updated>
    <author>
      <name />
    </author>
    <link rel="edit" title="SteuerkennzeichenItem" href="Steuerkennzeichen(3)" />
    <category term="Microsoft.SharePoint.DataService.SteuerkennzeichenItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <content type="application/xml">
      <m:properties>
        <d:Steuerkennzeichen>0</d:Steuerkennzeichen>
        <d:Display_Text>0 / 0</d:Display_Text>
      </m:properties>
    </content>
  </entry>
</feed>


Does anybody know, why my Combobox does not show any values to choose?

Kind Regards,
Markus


Cat Cheshire
Top achievements
Rank 1
 answered on 24 Dec 2012
10 answers
314 views
Hi, I have a radGrid that uses a user control to handle Insert/Edit. The user control is a popup (EditMode="PopUp") and it all appears to work fine. The only problem is that in the Form Load event of my popup, IsPostBack is always true. I guess this is because it has loaded in an Ajax Panel?

Any thoughts how I can get round this?

Thanks!
Eyup
Telerik team
 answered on 24 Dec 2012
4 answers
209 views
I have a grid with a template form for editing. I initially load my controls on the item data bound event but would like to also postback and update a series of dropdowns before the final insert or update.  My problem is that when I postback from the RadComboBox I can not seem to get access to the container to update the other dropdown. If I, as an option, create a custom command and use ItemCommand I am unable to see the GridDataItem.IsInEditMode as true nor cast to a GridEditFormItem to access these other fields.  BTW if the command is one of the core CRUD commands like update or insert I have no problem with accessing these fields.

Ideally I'd like to just autopost the dropdowns to update but I can live with a button if I can get that to work. 

Hope all that makes sense. Any ideas? Thanks.

Sample code
aspx:

 

 
<EditFormSettings EditFormType="Template" >   
 <FormTemplate>   
 <asp:Panel ID="Panel1" runat="server" DefaultButton="btnUpdate">   
 ...  
   <asp:Button ID="btnTest" Text="Test" runat="server" CausesValidation="False" CommandName="InterimUpdate"></asp:Button>   
 
 </asp:Panel>   
 
</FormTemplate>   
 
</EditFormSettings>   
 
  

 

 

protected void rg_ItemCommand(object source, Telerik.WebControls.GridCommandEventArgs e)   
{  
    if (e.CommandName == "InterimUpdate")        <== simple embeded command button see above   
 
    {  
          if (e.Item is GridEditFormItem && e.Item.IsInEditMode)            <== Never gets past this on custom command    
           {   
 
                string s = ((RadComboBox)e.Item.FindControl("rcb1")).SelectedValue; 
                RadComboBox rcb = new RadComboBox();
                rcb = e.Item.FindControl("rcb2"as RadComboBox;   
                rcb.DataTextField = "Name";   
                rcb.DataValueField = "ID";   
                rcb.DataSource = getAllXXX(s);   
 
                rcb.DataBind();  
            }  
 
    }  
 

 

 

 

 

 

 



Thanks in advance.
Eyup
Telerik team
 answered on 24 Dec 2012
2 answers
115 views
Hi,

i want to develop a hierarchy grid with pragmatically Binding using DetailTableDataBind Event in this i have different tables and based on id i may get different structured tables with different columns how can i bind these tables to  GridTableView  in Telerik please help in this aspect 


am using this code for  DetailTableDataBind Event
protected void Rgrid_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
            GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
            int PNameID = Convert.ToInt16(dataItem.GetDataKeyValue("PNameID"));
             
                try
                {
                    Common ObjCommon = new Common();
 
                    DataSet ds = ObjCommon.DocumentsWithFields(PNameID);
                       
                          
                  
                    if (ds.Tables.Count > 0)
                    {
                        if (ds.Tables[0].Rows.Count > 0)
                        {
                            
 
                            e.DetailTableView.Columns.Clear();
                           e.DetailTableView.DataSource= ds.Tables[0];
                            
                           
                        }
                    }
                    else
                    {
                        var PropertyDocs = (ObjCommon .DocumentsWithoutFields(PNameID)).ToList();
                        e.DetailTableView.DataSource = PropertyDocs;
                        
                    }
                    
                }
               
                catch (Exception ex)
                {
            Response.Write(ex.Message);
                }
             
        }

above code return correct table structure but not binding to Gridtable view
Eyup
Telerik team
 answered on 24 Dec 2012
7 answers
759 views
I have 2 RadNumericTextBoxs and what I want to do is change the value of the second text box based on the value the user enters into the first.  For example I want the 2nd text box to always show the square of the value of the first and I want this to happen client side.  How do I do this?

I tried the following:

 

<telerik:RadNumericTextBox ID="originalNumber" runat="server" Label="Number"

 

 

Type="Number" DataType="long" NumberFormat-DecimalDigits="0" Width="250px" >

 

 

<ClientEvents OnValueChanged="squareValue" />

 

 

<NumberFormat DecimalDigits="0"></NumberFormat>

 

 

</telerik:RadNumericTextBox>

 

 

<telerik:RadNumericTextBox ID="squaredNumber" runat="server" Label="number Squared"

 

 

Type="Number" DataType="long" NumberFormat-DecimalDigits="0" Width="250px">

 

 

<NumberFormat DecimalDigits="0"></NumberFormat>

 

 

</telerik:RadNumericTextBox><br />

 

<

 

script type="text/javascript">

 

 

function squareValue(sender, eventArgs) {

 

originalValue = parseInt(document.getElementById(

"originalNumber").value);

 

document.getElementById(

"squaredNumber").value = originalValue * originalValue;

 

}

 

 

</

 

script>

 

 

 


The value changes, but it never changes on screen.

 

 

Eyup
Telerik team
 answered on 24 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?