Telerik Forums
UI for ASP.NET AJAX Forum
30 answers
578 views
I have successfully been able to hide items from the context menu.  Is it possible to remove the separator bars that also appear in the menu?  Also I am struggling to be able to add my own items.  I have seen the examples in c#, however these do not translate well to vb.  Below is the code I am using to hide the items.  It would be much appreciated if someone could show me how to add new items.  Once added I would also need to know how to capture the fired event when the menu item is clicked.

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 Sub
 
Private 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 Select
End Sub
Jon
Top achievements
Rank 1
 answered on 23 Aug 2016
1 answer
151 views

Hi,

Beside data binding, is there any way to create a task programmatically with code?

Andy Ho

Veselin Tsvetanov
Telerik team
 answered on 23 Aug 2016
1 answer
220 views

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

 

Ivan Danchev
Telerik team
 answered on 23 Aug 2016
6 answers
296 views
I tried the following solution but unfortunately, only the visible rows - displayed at the top of the grid - are printed, not those that you see on the screen after scrolling down. AutoGenerateColumns and AllowPaging are set to false.

http://www.telerik.com/community/code-library/aspnet-ajax/grid/print-radgrid-contents.aspx

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'm using Visual Studio 2008 / .Net 3.5 along with Telerik RadControls for ASP.NET AJAX 2009.3.1103.35

Any thoughts?

Thanks
Konstantin Dikov
Telerik team
 answered on 23 Aug 2016
1 answer
152 views

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.

Stanimir
Telerik team
 answered on 23 Aug 2016
4 answers
115 views
Hi,

We are using the full featured RAD Editor for MOSS for one of our clients who want to use "Form element". It seems to work fine, except that it does not save everything. We can add a text input and then add a name attribut to it, but when we check in the page the attribute is removed (and we need to be able to add the name attribute). I think it might be Sharepoint who validates the html code and removes it somehow(?), but how should we go around this? Is "Form element" not suppose to work in RAD editor for MOSS (even though you can add it)?

For now we have added a javascript, setting the name attribute to the same as the id attribute (that we can save with the page). But this does not work for radiobuttons.

Best regards
Maria
Stanimir
Telerik team
 answered on 23 Aug 2016
2 answers
125 views

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

 

Keith
Top achievements
Rank 1
 answered on 22 Aug 2016
3 answers
251 views

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!

Matt
Top achievements
Rank 1
 answered on 22 Aug 2016
6 answers
122 views

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];
                    }
                }
            }
        }

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 22 Aug 2016
1 answer
172 views

There was a time that we could use the skin chooser for all objects on the Telerik website overview pages.

Now it is only active for certain components Eg. Editor and Grid, but not for RadComboBox for instance.

Can it be activated again for all components please?

 

Regards,

Marc

Vessy
Telerik team
 answered on 22 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?