Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
206 views

Is there a way to trap focus inside RadWindow?

This is ADA compliance related

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 27 Dec 2022
1 answer
110 views

Hi,

Nowadays which is the best method to change the default Crop sizes of the ImageEditor?  I can see you are using a telerik:RadComboBox for the control so don't understand why there isn't a easy way of populating it with other values.

 

Thank you!

Attila Antal
Telerik team
 answered on 26 Dec 2022
1 answer
207 views
Hi,

I cannot seem to add a RadFilter control to my aspx page or user control.

It keeps showing "RadFilter is not a known element".

The telerik assembly was registered at the top of the page and also in the web.config but still I can't get it to work.

Am I missing something here or what?

Thanks for you help.
Dimo
Telerik team
 updated answer on 22 Dec 2022
1 answer
139 views

How can I create a custom shape (polygon) using Json object with coordinates after OnClick event in Javascript? 

I've tried the following but I'm getting an error:   Uncaught TypeError: a3.slice is not a function

 

                    function initialize(sender, eventArgs) {{

                        var shapeData = {{
                          ""type"": ""GeometryCollection"",
                          ""geometries"": [
                            {{
                              ""type"": ""LineString"",
                              ""coordinates"": [
                                [
                                  12.47633,
                                  41.9106979    
                                ],
                                [
                                  12.4764271,
                                  41.9060326
                                ],
                                [
                                  12.4664,
                                  41.90369
                                ],
                                [
                                  12.4535074,
                                  41.90665
                                ],
                                [
                                  12.47633,
                                  41.9106979
                                ]
                              ]
                            }}
                          ]
                        }};

                        var originalOptions = eventArgs.get_options();
                        originalOptions.layers[1].dataSource = {{ data: shapeData }};
                        eventArgs.set_options(originalOptions);

                    }}

 

Ilan
Top achievements
Rank 1
Bronze
Iron
Veteran
 answered on 20 Dec 2022
1 answer
149 views

I have a oracle procedure that returns the following data from a user search

First column is a checkbox

ckbx  Label     Name    Year    Category    Type
          Label1    Name1   2020    Cat1        Type1
          Label2    Name2   2020    Cat1        Type1
          Label3    Name3   2021    Cat2        Type1  
          Label4    Name4   2022    Cat3        Type2
         Label5    Name5   2021    Cat4        Type3
         Label6    Name6   2021    Cat4        Type3
  
  
Hierarchical display (Type, Category, Year, Label, Name)
Type1
    |_Cat1
         |_2020
              |_ckbx Label1 Name1
              |_ckbx Label2 Name2          
    |_Cat2
          |_2021
                |_ckbx Label3 Name3
Type2
    |_Cat3
          |_2022
                |_ckbx Label4 Name4
Type3
    |_Cat4
          |_2021
                |_ckbx Label5 Name5
                |_ckbx Label6 Name6

This will allow the user to click only the type they want to see values returned then be able to check the box and add to their cart the data they want to download.

 

I'm using VS 2019 professional, C#, and Oracle DB 19c, telerik tools are from 2020_1_114_dev_hotfix for asp.net

 

thank you

Attila Antal
Telerik team
 answered on 20 Dec 2022
1 answer
162 views

Hello,

i worked on radgrid with batch edit commands : Add, Save and Cancel.

It works fine with inherited buttons, but when i try to have CommandItemTemplate buttons, it doesn't work for the add button.

 

When i click on the add button, i t's calling this function :

grid.get_batchEditingManager().addNewRecord(grid.get_masterTableView());

An added line, empty, is shown in radgrid, it's ok.

But then, i click on the save button, to save the data added, and it's calling this function :

grid.get_batchEditingManager().saveChanges(grid.get_masterTableView());

The problem is that in my server code, in BatchEditCommand(sender As Object, e As Telerik.Web.UI.GridBatchEditingEventArgs), command.NewValues is null and also command.type is UPDATE and not INSERT.

In spy mode, i saw the data i want to add in command.Arguments, but i cannot access them.

What am i doing wrong ?

Thanks in advance.

Freddy (from France)

Attila Antal
Telerik team
 answered on 20 Dec 2022
1 answer
788 views

After clicking on the "Save" button only the "Update" Button will show. How do I do it on the form? 

<tr>
                <td>
                    <div runat="server" id="PrimaryBtnWrapper" class="btn-wrapper">
                    <telerik:RadButton RenderMode="Lightweight" ID="btnSave" runat="server" Skin="Silk" OnClick="btnSave_Click" Primary="true" 
                        Text=" Save " GroupName="GroupName1">
                    </telerik:RadButton>
                </div>
                </td>

                <td>
                    <div runat="server" id="PrimaryBtnWrapper1" class="btn-wrapper">
                    <telerik:RadButton RenderMode="Lightweight" ID="btnUpdate" runat="server" Skin="Office2007" OnClick="btnUpdate_Click" Primary="true" 
                        Text=" UPDATE " GroupName="GroupName1">
                    </telerik:RadButton>
                </div>
                </td>
            </tr>

 

Valentin Dragnev
Telerik team
 answered on 19 Dec 2022
1 answer
380 views

Hi there;

I have a grid bound to a datasource, and the grid is set to dynamically generate columns at runtime (i.e. show whatever the data source returns).  I need to change the caption on some of those columns, however.  I tried access grid.MasterTableView.Columns in both grid_Databound and Page_PreRender, but it's empty in all cases.  What am I missing?

Thanks,

Jason

Valentin Dragnev
Telerik team
 answered on 14 Dec 2022
0 answers
1.0K+ views
Hello,
I moved my website from a window server 2012 (where everything worked) to a window server 2022 with Framework 4.8.
After configuring IIS and inserting the pages leaving everything as it was also the web config, when I load the login page the telerik objects are all graphically wrong and nothing works.
I think it could be something in the webconfig that needs to be configured.
The errors that are generated are the following:
Failed to load resource: the server responded with a status of 403 () WebResource.axd:1
Failed to load resource: the server responded with a status of 403 ()Telerik.Web.UI.WebResource.axd:1
Uncaught ReferenceError: Sys is not defined
    at default.aspx:128:1
Uncaught ReferenceError: $get is not defined
    at default.aspx:262:1
Uncaught ReferenceError: WebForm_AutoFocus is not defined


here is the code of my webcofig:     

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <appSettings>
    <add key="Telerik.Skin" value="Bootstrap" />
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" />
    <add key="Telerik.Web.UI.RenderMode" value="lightweight" />
  </appSettings>
  <system.web>
    <compilation debug="false" strict="false" explicit="true" targetFramework="4.8">
      <assemblies>
        <add assembly="System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
      </assemblies>
      <buildProviders>
        <add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
      </buildProviders>
    </compilation>
    <httpRuntime targetFramework="4.8" />
    <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>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <remove name="ChartImage_axd" />
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_DialogHandler_aspx" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_RadUploadProgressHandler_ashx" />
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
      <remove name="Telerik_Web_UI_WebResource_axd" />
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACEVerbHandler" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
  </system.webServer>
  <entityFramework>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration> 

If anyone can help me figure out how to fix this.

Thank you
Fabio
Top achievements
Rank 1
 asked on 13 Dec 2022
1 answer
148 views
How to update/rebind RadDropDownList sql source when a user selected a value in a dropdownlist in another column?
Can you please provide a how-to example in VB.net. This is urgent. Please help.
Thanks.
Valentin Dragnev
Telerik team
 answered on 13 Dec 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?