Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
197 views
Hello, I am developing an ASP.NET Web Forms Application where I am using Telerik KendoGrid. The paging seems to work fine when I click on page numbers but the next, previous buttons and other advanced paging options are not working. Is there a way out?
SB
Top achievements
Rank 1
 asked on 12 Aug 2022
1 answer
250 views

For example, in the documentation's demo (below), if George's work schedule on Monday was both 8:00-14:00 AND 16:00-18:00, could those two bars be on the same line?

Telerik Web UI HtmlChart Range Bar Chart Demo | Telerik UI for ASP.NET AJAX

Rumen
Telerik team
 updated answer on 12 Aug 2022
0 answers
142 views

I am writign a scheduler program that handles drag and drop appointment from a RadGrid. I need to pass a certain amount of data to the AdvancedInsert form via custom attributes, but I can't figure out how. I have tried using ISchedulerTimeSlot.FormContainer.Appointment.Attributes and ISchedulerTimeSlot.Appointments[0].Attributes but in both cases null is returned and crash the program. I am trying to use the AdvancedInsertTemplate inline rather than via a usercontrol and controlling the form via the FormCreated method.

My current code:

        

protected void AppointmentList_RowDrop(object sender, GridDragDropEventArgs e) { GridDataItem dataItem = e.DraggedItems[0]; string id = (string)dataItem.GetDataKeyValue("ID"); string customer = (string)dataItem.GetDataKeyValue("Customer"); string title = (string)dataItem.GetDataKeyValue("Title"); string jobtype = (string)dataItem.GetDataKeyValue("JobType"); string targetSlotIndex = TargetSlotHiddenField.Value; if (targetSlotIndex != string.Empty) { HandleSchedulerDrop(id, title, customer, jobtype, targetSlotIndex); TargetSlotHiddenField.Value = string.Empty; } ISchedulerTimeSlot slot = AdeoJobScheduler.GetTimeSlotFromIndex(targetSlotIndex); AdeoJobScheduler.ShowAdvancedInsertForm(slot.Start);

// Pass extra details for JobType, Subject here }



        protected void AdeoJobScheduler_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
        {
            RadScheduler scheduler = (RadScheduler)sender;

            if (e.Container.Mode == SchedulerFormMode.AdvancedInsert || e.Container.Mode == SchedulerFormMode.AdvancedEdit)
            {

                RadDateTimePicker startInput = (RadDateTimePicker)e.Container.FindControl("StartInput");
                startInput.SelectedDate = AdeoJobScheduler.DisplayToUtc(e.Appointment.Start);

                RadDateTimePicker endInput = (RadDateTimePicker)e.Container.FindControl("EndInput");
                endInput.SelectedDate = AdeoJobScheduler.DisplayToUtc(e.Appointment.End);

                RadMultiSelect fitterlist = (RadMultiSelect)e.Container.FindControl("SelectFitters");

                foreach (Fitter.Result fitter in GetFitters().GetAwaiter().GetResult().results)
                {
                    MultiSelectItem newFitter = new MultiSelectItem() { Text = $"{fitter.properties.firstname} {fitter.properties.lastname}", Value = fitter.properties.id };
                    fitterlist.Items.Add(newFitter);
                }

            }
        }

 

Any help greatly appriciated.

Stuart
Top achievements
Rank 1
 asked on 12 Aug 2022
0 answers
173 views

I have a RadGridView that fits my page as expected utilizing the width property.

But when I set the AllowFilteringByColumn to "True" the grid now expands past the width property.

It first draws on the screen in proper width, then at the end expands way past width.

 

Using Version 2019.2.514.40

 

I have tried setting render mode to "Classic", "Lightweigt" but get exact same problem.

 

See picture below.  You can see all columns when I set to False, but when I set to True, you cannot see all columns, you

now have to scroll a lot to see them all.

 

Roger
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 11 Aug 2022
0 answers
139 views

When I click save, I want the grid to specify the column and pop up the required prompt box. Please!

zhe
Top achievements
Rank 1
Iron
Iron
 asked on 11 Aug 2022
0 answers
110 views

If shown, I want to modify the data source and click Save to send the parameters in the text box above to the background. How to achieve this!

zhe
Top achievements
Rank 1
Iron
Iron
 asked on 11 Aug 2022
4 answers
395 views

Hello everyone,

I've been trying to find a way to add my company's logo to the RadMenu, on the left side, just like we see on almost every website. You check the attached image to have a better idea about what do I exactly mean.

Thank you!

Valentin Dragnev
Telerik team
 answered on 10 Aug 2022
0 answers
139 views

Hi all,

 

So I'm trying to reconfigure a page to load ASP.NET content inside an ajaxed tabstrip instead of reloading the page every time the tab is changed. 

Unfortunately, the built in Telerik function is having trouble finding the radgrid on the page when it is within the AJAX frame:

 

function RadGridDeselectAllRows(n) {
    var t = $find(n)
      , i = t.get_masterTableView();
    i.clearSelectedItems()

with n being the id of the radGrid, t returns null

If I load the page in it's own window instead of in the frame, the function is able to find the radGrid without issue. 

Has anyone seen anything like this that might be able to give me some guidance?

Thanks and let me know if I can provide any more info!
Patrick
Top achievements
Rank 1
 asked on 09 Aug 2022
1 answer
178 views

We have a strange issue where when we copy and paste from Word to the Telerik Editor (2018.3.910.45) using Firefox on a Mac (running 12.4). that the editor inserts a large <style> tag with a font face element inside. See Attached Screenshot. This is only the case when using a Mac and Firefox. I can recreate the issue on the Telerik Demo page. https://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx

 

Any thoughts on how to fix this would be most appreciated. Thanks! We tried utilizing the ConvertFontToSpan and ConvertInLineStylesToAttributes options in the content filter.

Rumen
Telerik team
 answered on 09 Aug 2022
1 answer
210 views

Hello,

I am building a couple different user controls that nest other user controls inside of them. They are all coming together to live on a single control that is placed in a page. Without posting everything I have, a rough outline of my setup is below and a description of the problem is under that.

 


User Control name radcombo:
<table>
<tr>
<td>
<radcombobox id="radComboBox1" runat="server"/>
</td>
</tr>
</table>



UserControl2: UpdateObject2

<radButton id="OpenRadWindowToUpdate" etc.../>

<radwindow id="window1">
    <contentTemplate>
        <radlabel/>
        <radtextField/>
        <userControl:radCombo1 id="customRadCombo1"/>
    </contentTemplate>
</radWindow>



UserControl3: MultiDropDown
<radMultiColumnDropDown /> 
<userControl:UpdateObject2 id="customUpdateObject2"/>


Final destination: .aspx page

<radgrid/>
<radwindow id="controlsLiveInHere"/>
    <userControl:MultiDropDown id="multiDropDown1"/>
</radwindow>

 

I am aware that I can set up javascript on the radwindow's onClientClose/Resize/Move events and understand how to implement that. What I am looking for is how to utilize those events in a way that I can touch a dropdown control that may be 2-3 levels away from where the event is happening and I'll also have 4-7 dropdowns to close. I considered exposing client IDs through properties however that seemed like a stretch. I am working in VB.net and all of the other functionality of the controls operate as designed currently. Any input is appreciated! If more code is needed I can provide it, however its quite a few controls and I've tried to boil it down to its essence above.

After some contemplation this weekend, I considered another few options but would love to hear if anyone has implemented them and if there is a best way to do so.

Public WriteOnly Property HideDropDowns

  1. Create a public property on each control that is writeonly as a boolean
  2. When that control is passed in true, it actively hides the drop down boxes and then resets its status to false.
  3. Any controls that implement this control will need to pass it along to be accessed further up the hierarchy
  4. When the modal window is acted upon, hook the appropriate client side events and use javascript to update the value of this property.

Public readonly property DropDownsToClose

  1. Create a readonly property that returns a list of clientids as a string separated by some delimiter
  2. Hook the client side events that are necessary
  3. Use JS to grab that property, split the string, and then run the HideDropDown() function provided to close the dropdown menus

Any parent controls would need to expose this and could even go as far as to simply build upon the string of clientIDs if necessary. I think I prefer this approach if it is feasible. Anyone else done this before? Something like the below...


Public ReadOnly Property DropDownsToClose as String
	Get
		Return String.Concat(radComboBox1.ClientID,"||",radComboBox2.ClientID)
	End Get
End Property

<telerik:RadWindow ID="Window1" runat="server" OnClientDragStart="CloseDropDowns" OnClientResize= >
	<contentTemplate>
        <radlabel/>
        <radtextField/>
        <userControl:RadCombo id="customRadCombo1"/>
    </contentTemplate>
</radWindow>

<Script>
		
	function CloseDropDowns(sender, args) {
		//find the string of clientIds in the userControl's DropDownsToClose property
		var ddls = $find("<%= customRadCombo1.ClientID %>").DropDownsToClose
		ddls.split("||").forEach(comboClientID => $find("<%= comboClientID %>").HideDropDown());
	}
</Script>


 

 

Thanks for any help!

Zach
Top achievements
Rank 1
Iron
 answered on 08 Aug 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?