Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
693 views
Hi guys,
it is possible to filter a RadComboBox based on another RadComboBox?

Actually this is the situation:

I have two RadComboBox
Progetto: <telerik:RadComboBox runat="server" Width="300px" ID="comboProgetto">               
            </telerik:RadComboBox>
<br />
E' sottoargomento di: <telerik:RadComboBox runat="server" Width="300px" ID="comboSottoArgomento">               
            </telerik:RadComboBox>

I want that the values in "comboSottoArgomento" is filter, based on the value selected in comboProgetto.
Is this possible?
Actually both RadComboBoxes are filled from a mysql database and there is a foreign key that bound the fields.


Sorry for my english
Attila Antal
Telerik team
 answered on 16 Jul 2020
6 answers
293 views

Hi

I'm trying to show the map so it fills the entire screen viewing the whole world. The Map element fills the entire viewport and i'm trying to use the Extent function with various positions to make the map properly zoom in.

Example:

var markerLocations = [[70, -179], [-60, -179], [-60, 179], [70, 179]]; //Also tried just the two corner locations
 var extent;
for(var i = 0; i < markerLocations.length; i++) {
        var loc = new kendo.dataviz.map.Location(markerLocations[i][0], markerLocations[i][1]);
        if (!extent) {
            extent = new kendo.dataviz.map.Extent(loc, loc);
        } else {
            extent.include(loc);
        }
    }
kendoMap.extent(extent);

 

This seems to work fine on some resolutions (1920x1080) but not on others (2560x1440)

The map element just doesn't zoom properly: it is zoomed out too far causing the map to contain an "empty" section to its right. The way i'm using the map is without a tile layer and using only shape layers. Since shape layers do not wrap around, it makes the whole thing look even worse: i'm using one shape layer to display the Day-Night boundary and if the map zooms incorrectly, that layer is being cut vertically at longitude 180 which gives a distinct "edge" to where the map ends.

I've tried using different locations for the extent function, but it seems that at some given "area" the extent function just stops doing zooming on the region given and just zooms out too far out. Trying to do the same with just the Zoom setting doesn't work since it only accepts integers.

 

Is there a way to get around this issue?

Is there also a way to get around the Shape Layer wrap around issue?(other than adding a second map next to the first to fake that)

 

 

 

Peter Milchev
Telerik team
 answered on 15 Jul 2020
4 answers
438 views
When there is only one item in the radcombobox I see "All items selected" default message , I dont want this functionality and instead I want to show the item itself , what should I do ? , please help 
Ciupaz
Top achievements
Rank 2
Veteran
 answered on 15 Jul 2020
5 answers
146 views

Hi

I have put the image editor in a page that is overlaid on another page.

In the page with the image editor, I set an image, edited it, save it, and then close the page and info passed back to the page it is overlaid upon. This is all fine.

When I re-open the the page on top again to edit a new image, it is not correctly showing the new image passed in and is showing the previous image from "before the editing" of that image. When I reload the page it shows the new image correctly but I can't auto reload the page each time because then there will be an infinite loop of reloading the page.

I think this might be due to a cache. Is there a way to flush the cache and/or reload the image?

Thanks.

Peter Milchev
Telerik team
 answered on 15 Jul 2020
1 answer
74 views

I would like to Hide/Show a group footer based on a condition.

 

I have tried to add code like this:

grid.MasterTableView.ShowGroupFooter = bSomeState; // boolean true/false value

 

I've tried adding that to the OnDataBound event, to the PageLoad event, to the Page PreRender event.  But nothing works.

 

For example, lets say that there is no declarative markup added to the grid, so the default for ShowGroupFooter is false.  Then I added a

    grid.MasterTableView.ShowGroupFooter = true

statement in various places in the codebehind.  The group footer is never shown.

Is there a solution here?

 

Eyup
Telerik team
 answered on 15 Jul 2020
3 answers
169 views
Hi,

I had tried to show Advanced Form using Advanced Templates exactly.

But when I try to open Advanced Form for new appointment, the All day checkbox is not working. Even the DatePicker and TimePicker controls are not working.

Chrome console display following as error - 

Uncaught TypeError: Cannot read property 'EventScheduler_3' of undefined
  1. SchedulerFormCreatedDefault.aspx:102
  2. Telerik.Web.UI.RadWebControl.raiseEventTelerik.Web.UI.WebResource.axd:825
  3. c.RadScheduler._raiseFormCreatedTelerik.Web.UI.WebResource.axd:7117
  4. c.RadScheduler._fireFormCreatedTelerik.Web.UI.WebResource.axd:6247
  5. c.RadScheduler._initializeAdvancedTemplateTelerik.Web.UI.WebResource.axd:5853
  6. Sys._Application.raiseLoadTelerik.Web.UI.WebResource.axd:6
  7. Sys.WebForms.PageRequestManager._pageLoadedTelerik.Web.UI.WebResource.axd:15
  8. Sys.WebForms.PageRequestManager._scriptsLoadCompleteTelerik.Web.UI.WebResource.axd:15
  9. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  10. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  11. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  12. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  13. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  14. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  15. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  16. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  17. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  18. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  19. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  20. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  21. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  22. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  23. Sys._ScriptLoader._nextSessionTelerik.Web.UI.WebResource.axd:15
  24. Sys._ScriptLoader._loadScriptsInternalTelerik.Web.UI.WebResource.axd:15
  25. Sys._ScriptLoader._scriptLoadedHandlerTelerik.Web.UI.WebResource.axd:15
  26. Sys._ScriptLoaderTask._scriptLoadHandlerTelerik.Web.UI.WebResource.axd:6
  27. b

The following is the client side event handler for OnClientFormCreated

//<![CDATA[
        // Dictionary containing the advanced template client object
        // for a given RadScheduler instance (the control ID is used as key).
        var schedulerTemplates = {};
 
        function SchedulerFormCreated(scheduler, eventArgs)
        {
            // Create a client-side object only for the advanced templates
            var mode = eventArgs.get_mode();
             
            if (mode == window.Telerik.Web.UI.SchedulerFormMode.AdvancedInsert ||mode == window.Telerik.Web.UI.SchedulerFormMode.AdvancedEdit)
            {
                // Initialize the client-side object for the advanced form
                var formElement = eventArgs.get_formElement();
                var templateKey = scheduler.get_id() + "_" + mode;
 
                var advancedTemplate = schedulerTemplates[templateKey];                
 
                if (!advancedTemplate)
                {
                    // Initialize the template for this RadScheduler instance
                    // and cache it in the schedulerTemplates dictionary
                    var schedulerElement = scheduler.get_element();
                    var isModal = scheduler.get_advancedFormSettings().modal;
                    advancedTemplate = new window.SchedulerAdvancedTemplate(schedulerElement, formElement, isModal);
                    advancedTemplate.initialize();
 
                    schedulerTemplates[templateKey] = advancedTemplate;
 
                    // Remove the template object from the dictionary on dispose.
                    scheduler.add_disposing(function ()
                    {
                        schedulerTemplates[templateKey] = null;
                    });
                }
 
                // Are we using Web Service data binding?
                if (!scheduler.get_webServiceSettings().get_isEmpty())
                {
                    // Populate the form with the appointment data
                    var apt = eventArgs.get_appointment();
                    var isInsert = mode == window.Telerik.Web.UI.SchedulerFormMode.AdvancedInsert;
                    advancedTemplate.populate(apt, isInsert);
                }
            }
        }
 
        //]]>

The bold part in code is the line where this error occurs. And I believe this could be the possible reason for unexpected behavior of Advanced Form.

Can you share with me how I can get rid of this error?
Peter Milchev
Telerik team
 answered on 14 Jul 2020
2 answers
327 views

Hello,

I have 2 RadComboBox with multi checkboxes. The first Is enabled and the second no.

How can I write a JavaScript function the enable the second RadComboBox when the user select at least one checkbox in the first combobox?

Thank you in advance.

Luis

Peter Milchev
Telerik team
 answered on 14 Jul 2020
1 answer
102 views

Hello,

I have 2 RadComboBox.

The first One Is enabled on Page load and shows States, with Checkboxes=true.

Here the user can select one or more States.

The second RadComboBox Is not enabled by default, and became enabled when the user select at least one state in the first combobox.

This combobox should display cities of the states selected in the first combobox.

What Is the best approach (better with examples) to implement this?

Thank you.

Luis

Peter Milchev
Telerik team
 answered on 14 Jul 2020
3 answers
2.6K+ views

Hello,
in my ASP.NET WebForms page I have several RadComboBox like this:

<telerik:RadComboBox ID="radComboBoxFormat"
                EmptyMessage="Format"
                MarkFirstMatch="true" Width="100%" runat="server" CheckBoxes="true"
                DataTextField="Description"
                DataValueField="Code">
</telerik:RadComboBox>

 

Now I'd like to write a method that iterates through selected items 
and compose a List<string>, or a comme separated value long string, 
of the item's selected code, but one only method valid for all 
RadComboBox of the page (for not having duplicated code). 

How can I achieve this?

Thanks a lot in advance. 

Luigi

 

Peter Milchev
Telerik team
 answered on 14 Jul 2020
1 answer
126 views

Hello,
I have this HTML code (for RadAutoCompleteBox) in my aspx page (WebForms): 

<telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="acbClient"
                  EmptyMessage="Client" OnClientDropDownItemDataBound="RemoveDuplicated" MaxDropDownHeight="100"
                  DataTextField="RagSoc" DataValueField="CodCli" InputType="Token" DropDownHeight="150px"
                  CssClass="RadAutoCompleteBoxPopup_Default" CollapseAnimation-Type="OutElastic"
                  Width="385">
</telerik:RadAutoCompleteBox>

 

and this in code-behind (VB.NET):

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
 
    If GetClient(dtClient) = True Then
      acbClient.DataSource = dtClient
      acbClient.DataBind()
    End If
 
End Sub

 

but when I click some letters (for example, "ac" like in the screenshoot), 
seems that don't find the exact matching. 

Why this happens?

Thanks a lot in advance. 

Luis

 

 

 

 

 

 

Peter Milchev
Telerik team
 answered on 14 Jul 2020
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?