
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load AddHandler RadGrid1.HeaderContextMenu.ItemCreated, AddressOf Me.HeaderContextMenu_ItemCreated ...End SubPrivate Sub HeaderContextMenu_ItemCreated(ByVal sender As Object, ByVal e As RadMenuEventArgs) Select Case (e.Item.Text) Case "Clear Sorting" e.Item.Visible = False Case "Sort Ascending" e.Item.Visible = False Case "Sort Descending" e.Item.Visible = False End SelectEnd SubHi,
Beside data binding, is there any way to create a task programmatically with code?
Andy Ho
Hi
In below link, we can see combo-box with checkbox.
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx
When Page load i will use loop to mark selected items like below
RadComboBoxItem item = ComboBox.FindItemByValue(myValue);
if (item != null)
{ item.Checked = true; }
My Requirement:
Use ComboBox - Load on Demand Modes and use web service to load data
When Page load, how to show items initially (if it is a web service call)?
Can we do this? as in my project, i have userlist in drop down as webservice (normal combo box) and i need to change with combobox with checkbox functionality
Senthil

| function PrintRadGrid() |
| { |
| var previewWnd = window.open('about:blank', '', '', false); |
| var sh = '<%= ClientScript.GetWebResourceUrl(radGrid1.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",radGrid1.Skin)) %>'; |
| var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link></head>"; |
| var htmlcontent = styleStr + "<body>" + $find('<%= radGrid1.ClientID %>').get_element().outerHTML + "</body></html>"; |
| previewWnd.document.open(); |
| previewWnd.document.write(htmlcontent); |
| previewWnd.document.close(); |
| previewWnd.print(); |
| previewWnd.close(); |
| } |
I am using RadEditor with DNN Evoq Content 8.0.3. Is there a way to load Google fonts in the editor? I've included the following in my custom CSS file:
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i);
but, the editor is not loading the fonts in the iframe. Can anyone assist? Thank you.
I have an ASP.Net with a RadGrid. VB.Net is the code-behind.
In the RadGrid, one of the columns is a hyperlink column. When the user clicks on that column, it brings them to an ASP.Net page to display the details of the item they clicked on.
When the user clicks on the hyperlink column, is there a way to show the AjaxLoadingPanel on the RadGrid since loading the page with the details may take more than a few seconds?
Please help!
Thanks!
Sincerely,
Keith Jackson
I have a legacy application that uses RadScheduler. It looks like the version it is built with is 2012.3.1206.40.
We recently discovered a problem with the context menu on mobile devices. We have a right-click menu set up that displays some options when the application runs in a desktop browser. This works well on the desktop but not on mobile devices.
A long tap on a mobile device in theory should activate the same menu but it does not appear. Is there anything I should or could do to make it work on mobile? I was expecting it to just work.
I understand I may need to update the control but I'm unsure on how to go about doing that. Can someone point me in the right direction? Thanks!
I implemented paste from Excel based on info from this forum. With latest version of RadGrid it does not work any longer. I am having trouble to fix it. Can you help, please?
function pasteFromExcel() {
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {
//continue for IE
}
else {
jInfo("Paste from Excel works only in IE (due security policies of other browsers)","INFO")
}
if (!lastFocused) return;
var clipData = window.clipboardData.getData('Text');
var crlf = String.fromCharCode(13) + String.fromCharCode(10);
var table = clipData.split(crlf);
for (var tRow = 0; tRow < table.length - 1; tRow++)
table[tRow] = table[tRow].split(String.fromCharCode(9));
Array.remove(table, table[table.length - 1]);
fillTable(table);
$('#<%= lbtnSaveMarketAccessArea.ClientID %>').attr("class", "button3D_Yellow");
}
function fillTable(table) {
var pCell = lastFocused.parentNode;
var pRow = pCell.parentNode;
var pBody = pRow.parentNode;
var maxRows = pBody.rows.length;
var maxCols = pRow.cells.length;
for (var row = 0; row < table.length; row++) {
for (var col = 0; col < table[row].length; col++) {
var cCellIndex = pCell.cellIndex + col;
var cRowIndex = pRow.sectionRowIndex + row;
if (cRowIndex < maxRows && cCellIndex < maxCols) {
var cCell = pBody.rows[cRowIndex].cells[cCellIndex];
var pInput = cCell.getElementsByTagName("input")[0];
pInput.style.backgroundColor = "#F7FAFF";
pInput.value = table[row][col];
}
}
}
}