Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views

Explorer view demo is not working. Gives this error

 

https://demos.telerik.com/aspnet-ajax/errorpageresources.aspx?aspxerrorpath=/aspnet-ajax/treelist/examples/integration/fileexplorerview/defaultcs.aspx

Attila Antal
Telerik team
 answered on 29 Dec 2022
1 answer
106 views
Hello,

I have a RadListBox called RadListBoxDestination inside the controls <EditFormSettings EditFormType="Template">
             <FormTemplate> (file wucMantenedorVentasPriorizadas.ascx)

What happens is that when I try to call RadListBoxDestination ma I get the following error message:
"Object reference not set to an instance of an object"

For me the problem is that my RadLisBox called RadListBoxDestination is inside the controls <EditFormSettings EditFormType="Template">
             <FormTemplate> and I'm not calling it correctly.

For this I have been doing 2 possible logics but I get the same error, these logics are (file wucMantenedorVentasPriorizadas,ascx.cs):

Option 1

  logger.Info("RadListBoxDestination: " + RadListBoxDestination);
                 RadListBoxDestination.DataSource = AGAgents.Select(a => a.firstname + " " + a.lastname);
                 RadListBoxDestination.DataBind();

Option 2

if (e.Item is GridEditFormItem && e.Item.IsInEditMode)//editform
                 {
                     GridEditFormItem editItem = (GridEditFormItem)e.Item;
                     RadListBox RadListBoxDestination = (RadListBox)editItem.FindControl("RadListBoxDestination");
                     RadListBoxDestination.DataSource = AGAgents.Select(a => a.firstname + " " + a.lastname);
                     RadListBoxDestination.DataBind();
                 }

Can you help me how is that How do I reference it so that the data can be loaded dynamically since I put a log to see but no data appears in the RadListBox

Regards
Oscar
Attila Antal
Telerik team
 answered on 29 Dec 2022
2 answers
192 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
107 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
204 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
133 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
141 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
156 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
770 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
351 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?