Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
216 views

I have combo added to every cell header of my grid to provide row filtering but I'm trying to load the data in the combo when it is clicked as per your sample:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/comboboxvsdropdownlist/defaultcs.aspx?skin=Sunset

but no data is requested as per your sample. If I type something in the combo, it does trigger the ItemsRequested event, but I would like to load data when the combo is clicked. The reason I don't want to preloaded (as it is currently done!) is that if a user never uses any of the filters, he/she should not have to be penalized having to wait additional time for these to be filled, queries to get this data should not be executed, etc...

This is the code I'm currently using:

RadComboBox comboBox = new RadComboBox();
comboBox.ID = GetFilterID(columnIndex);
comboBox.MarkFirstMatch = true;
comboBox.AutoPostBack = true;
comboBox.CssClass = "Filter";
comboBox.TextChanged += new EventHandler(comboBox_TextChanged);
comboBox.ShowDropDownOnTextboxClick = true;
comboBox.AppendDataBoundItems = true;
comboBox.EnableLoadOnDemand = true;
comboBox.DataTextField = filterableField.DataField;
comboBox.DataValueField = filterableField.DataField;
//comboBox.DataSource = GetFilterData(filterableField.DataField);
comboBox.ItemsRequested +=new RadComboBoxItemsRequestedEventHandler(comboBox_ItemsRequested);
comboBox.EnableVirtualScrolling = false;
comboBox.ShowMoreResultsBox = false;
comboBox.AllowCustomText = false;

headerCell.Controls.Add(comboBox);

private void comboBox_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
    Debug.WriteLine("");  //Load additional data from here.
}

There is no html code as this is all done at run-time. Based on your sample as per link above, I can't spot any difference except that you have a RenderMode to "LightWeight" but I don't think that's the problem.

Any ideas?

Thanks.

Peter Milchev
Telerik team
 answered on 26 Aug 2016
6 answers
184 views
Hi,

I have a strange behaviour when dragging and dropping appointments in RadScheduler. What I am seeing is that under some circumstances, if the mouse button is released, the cursor still has a drag/drop helper tracking it - on clicking the mouse button again, the drop completes, but the helper still follows the cursor, if I click again, the drag completes again, in fact the ghost does not go away at all!

It appears to occur if the mouse button is accidentally released during the start of the drag - often happens with laptop panels rather than mice.

I suspect that this is my fault however, because I have inserted icons into each appointment using JQuery, and it appears that the drag operation sometimes doesn't start properly when the icon is dragged, but seems to start fine if I drag the appointment background (or the text).

Does anybody know either:

A) How I can make my inserted IMG tag act as in integral part of the appointment, or
B) Have I overlooked a RadScheduler ClientLib method of adding an icon to an appointment.

Thanks in advance for your help on this.
Veselin Tsvetanov
Telerik team
 answered on 26 Aug 2016
1 answer
173 views

When I change an image in IE11, Radeditor insert the image to different position. There is no issue with Chrome and Firefox.

Repro Step:

1. Go http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

2. Copy following HTML with HTML tab.

3. Chage an image with Desigh tab.

Result: <img> tab is inserted to differint position. 

Is there any workaround on this?

 

<div class="col-sm-12">
<div class="row child_container">
<div class="col-sm-6" style="float: left;">
<div class="row">
<div class="img col-sm-12">
<img alt="" src="/aspnet-ajax/Editor/images/UserDir/Marketing/Tokyo.png" />
</div>
<div>
<dl class=" col-sm-12">
    <dt>xxxxxxxxxxxxxxxxxxxxxx</dt>
    <dd>xxxxxxxxxxxxxxx</dd>
    <dd><a class="link">xxxxxxxxxxxxxxxxx</a>          </dd>
</dl>
</div>
</div>
</div>
<div class="col-sm-6" style="float: left;">
<div class="row">
<div class="img col-sm-12">
<img alt="" src="/aspnet-ajax/Editor/images/UserDir/Marketing/Tokyo.png" />
</div>
<div>
<dl class=" col-sm-12">
    <dt>xxxxxxxxxxxxxxxxxxxxxx</dt>
    <dd>xxxxxxxxxxxxxxx</dd>
    <dd><a class="link">xxxxxxxxxxxxxxxxx</a>          </dd>
</dl>
</div>
</div>
</div>
</div>
</div>

Joana
Telerik team
 answered on 26 Aug 2016
2 answers
163 views
Hi,

I am trying to use export to csv  functionality of RadGrid on my Hierarchical grid.   When I click on Export to csv link on grid, it only exports headers, I do not see any data in csv file.
Do I need any extra settings/code for this?

Thanks,
Prava
Danniel
Top achievements
Rank 1
 answered on 25 Aug 2016
1 answer
146 views

Hi,

I have extracted the xml for radorgchart.  Within this I have some rendered fields
When I attempt to use this xml to rebind another orgchart, within the databinding event I’d like to display the text of one rendered field within a label control.
I’m nearly there; I can see the rendered fields for a particular node:

 

node.GroupItems[0].RenderedFields


But I can’t figure out how to extract something from this collection, where the label is equal to something.
Any suggestions?

Ivan Danchev
Telerik team
 answered on 25 Aug 2016
1 answer
134 views

Hi,

When the editor is in Div-mode and set to Auto Resize height, then you can't set focus by clicking on the lower part of the editor.

Do the following in the online-demo:

http://demos.telerik.com/aspnet-ajax/editor/examples/contentareamodediv/defaultcs.aspx

  1. Clear the content of the Editor
  2. Set the "Auto Resize to Fit Content Height"

When this is done, you can only set focus by clicking in the top region of the editor!

Regards
Andreas

Joana
Telerik team
 answered on 25 Aug 2016
2 answers
146 views

I can see that he OnClientLoad is not fired when Enabled="false" is set, if I change this to true its working like a charm, is this by design?

seems weird as the control should have a load event on the client either way, problem is i need to declare the editor as a variable to set the enabled state manually with JS.

 

var _editor;
 
function edtRotator_onClientLoad(editor, args) {
    _editor = editor;
}
 
$(".rotator-images").dblclick(function () {
    _editor.enableEditing(true);
     _editor.set_editable(true);
 });

 

 

 

Vessy
Telerik team
 answered on 25 Aug 2016
1 answer
757 views

Been battling this error for a full day for a fully programmatically created RadGrid. Looked through so many posts that concentrate on making sure the RadGrid is created at the correct point in the page lifecycle, making sure columns and groups and created in the correct order etc etc.

I was seeing the error on entering a context header menu after the grid data had been modified at least once.

The fix.... make sure the RadGrid.ID property is set!

Hope this saves somebody else a full day of head scratching!

Eyup
Telerik team
 answered on 25 Aug 2016
1 answer
115 views

Hi,

I have a TabStrip inside a Template Column in a Grid. I need to count how many times one of the tabs has been clicked.

How do I attach an event to do that please?

Cheers,

Jack

Eyup
Telerik team
 answered on 25 Aug 2016
4 answers
135 views

Hello Anyone,

I am using the code in this link to implement ExportToExcel - http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/excel-export/defaultcs.aspx

This doesn't exports excel file in IE 11 browser. The site is also configured with https://. When i use https://, the exportToExcel works fine. 

How do i handle the code to work with http://. Is there any property that i might not be setting? Or some other code that i must include for it to work? Or could it be some underlying data issue that might be causing problem?

Please suggest

 

thanks

A
Top achievements
Rank 1
 answered on 24 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?