Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
514 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
222 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
117 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
291 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
395 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
145 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.8K+ 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
187 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
1 answer
148 views
Hi,
How can I hide the Add Child and at the same time is displayed Add Above and vice versa hide Add  Below and at the same time is displayed Add Child ?

Doncho
Telerik team
 answered on 14 Jul 2020
2 answers
610 views

Hello,

in the PreRender event of my RadGrid, I have columns with date field in headers.

If I have 

grdPositions.MasterTableView.GetColumn("09/07/2020")

I obtain a GridBoundColumns correctly. 

How can I format this date with day name before? (Mer 09/07/2020)

And If I dont know the exact days, but only that some headers are date field, how can format every one of them?

Thank you. 

Luis

Ciupaz
Top achievements
Rank 2
Veteran
 answered on 13 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?