Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
103 views

I have Radgrid with multiple columns with one column as RadEditor.

My issue is when I double click on cell, I need to check condition first and if condition does not match I need to prevent editor to open in edit mode. Here I have attached OnRowDblClick function:

 

function RowDblClick(sender, eventArgs) {
                    var columnName = "MultiRow";
                    if (!checkIsMultiLineAllowed(columnName)) {
                        eventArgs._domEvent.preventDefault();
                        return;
                    };

                    var isEnabled = GetToolbarButtonState("Editselected");
                    if (isEnabled) {
                        editedRow = eventArgs.get_itemIndexHierarchical();
                        console.log(editedRow);
                        if (Telemetry.DoTracking(accoTOOLTrackingLevel, "Verbose")) {
                            Telemetry.TrackTrace(Telemetry.severityLevel.Verbose, "Edit Mode: " + '<%=accoADEGrid.MasterTableView.EditMode.ToString() %>' + " | Edit Row Index: " + editedRow + " | ConfigurationID: " + '<%=HF_accoTOOLConfigurationID.Value %>', AITrackingProperties, "RowDblClick", "");
                        } else if (Telemetry.DoTracking(accoTOOLTrackingLevel, "Information")) {
                            Telemetry.TrackTrace(Telemetry.severityLevel.Verbose, "Edit Mode: " + '<%=accoADEGrid.MasterTableView.EditMode.ToString() %>' + " | Edit Row Index: " + editedRow, AITrackingProperties, "RowDblClick", "");
                        }

                        $find("<%= accoADEGrid.ClientID %>").get_masterTableView().editItem(editedRow);
                        console.log($find("<%= accoADEGrid.ClientID %>"));
                    }
                }

 

I need to prevent further proccess to stop. I tried eventArgs._domEvent.preventDefault(), but it is not working

Hardik
Top achievements
Rank 1
 asked on 04 Sep 2017
5 answers
336 views

I've a RadEditor that has some functionality issues in IE. Possibly relevant things:

It's ContentAreaMode = Div

There's only one of them on the page, though it can appear at any location where there is a "reply" button (and there are many of these buttons on the page)

It lives inside a div called FtbPanel

This FtbPanel div programmatically moved into an enclosing placeholderX div, before placeholderX is shown

The javascript that shows the placeholderX does also call .repaint() on the editor, as well as .onParentNodeChanged()

There aren't any serious layout issues with the control

I don't encounter any issues with other RadEditors that are visible when the page loads

The editors that are initially inside a hidden div always have issues with the toolbar buttons - dropdown buttons appear blank/incomplete. CLicking any button causes the page to jump to the top. The button (.e.g bold) doesn't edit the text in any way. Dropdown buttons do not show a menu

Right clicking in the text edit area causes a "Paste menu" (with many different paste options) to appear, but it is stuck to the top of the browser window, just under the address bar

I've tried manually (minutes after the control is shown) tried manually calling .onParentNodeChanged() from the JS console, using $find("id of radeditor").onParentNodeChanged(). The only result of this was to disable the right click menu (that appears stuck to the top of the browser view portal)

The version in use is the latest one, downloaded yesterday. No skin is in use other than the default

-

Any pointers on what might be wrong?

chairman-mawh
Top achievements
Rank 1
 answered on 04 Sep 2017
1 answer
192 views

I am using Entity Framework with a MySQL database to store a table of hundreds of thousands of packages. When I try to bind directly to the query:

protected void OnPackagesNeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
    PackageGrid.DataSource = PageServerDataContext.Packages;
}

I get the error, "Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery, DbRawSqlQuery) is not supported."

Using .ToList() would mean that I need to load all the packages in the database, which is not practical.

I can use an EntityDataSource, but I would rather set the data programmatically. 

How do I use NeedDataSource with EntityFramework without using .ToList()?

Eyup
Telerik team
 answered on 04 Sep 2017
5 answers
1.1K+ views
Hello,
I use a RadGrid with GridDateTileColumn. Sometime, I have DateTime.MinValue.
I would like to display a Blank instead of 01/01/0001
Is there a convenient way to do that ?
Thanks a lot
Adhip
Top achievements
Rank 1
 answered on 03 Sep 2017
4 answers
144 views

Hi Telerik support

 

We use a rather old version of RadEditor (sorry) - v2011.1 and in many places on our site it's hidden initially until someone clicks the EDIT button. We've a few different problems with browsers:

If I use it in ContentAreaMode=Iframe, it works with IE (IE is forced into IE9 mode by meta X-UA-compatible), but I encounter issues pasting content into it using Ctrl+V in firefox

If I switch it to ContentAreaMode=Div, then i can paste in firefox, but clients that use IE11 complain that all the buttons above the editor box stop working. (I've verified the truth of this, http://www.telerik.com/forums/incorrect-rendering-of-radeditor-when-shown-with-ajax-in-initially-hidden-parent didn't seem to help). If I change the meta tag so that the browser runs in IE11 mode rather than IE9, the buttons work, but then the image manager fails (clicking the Select button to upload an image does nothing. The javascript console is full of errors like Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x Actual value was 0.75555555555555555555555).
Image manager in IE11 native, in iframe mode is seriously graphically corrupt; only the top third of the modal window shows content/doesn't scroll properly/ borders are missing

Elsewhere in this code I maintain there are patch/workarounds for other rad controls, like:

               Telerik.Web.UI.RadListBox.prototype.saveClientState = function () {
                    var clientState = '{"logEntries":' + this._logEntriesJson + ',"selectedIndices":' + this._selectedIndicesJson + ',"checkedIndices":' + this._checkedIndicesJson + ',"scrollPosition":' + this._scrollPosition.toFixed() + "}";
                    return clientState;
                };

Where parameters that are expected to be integers are being sent by the browser as floats..

 

It seems that for a long time and with the advent of new browsers, the default way of getting things working has been to patch a bit here, set some compatibility mode there, and I should probably attack the problem with a fresh approach; just wondering what that approach would be and whether it involves new versions of the telerik controls, or whether this old version can be made to work acceptably? I'm not sure how much budget there is in replacing the entire control suite at this time, when a planned rewrite of the the entire system, using newer rad controls is imminent, you see..

Rumen
Telerik team
 answered on 01 Sep 2017
8 answers
411 views
Hello,
For all the RadComboBox I'm using, a text appears in the arrow cell. This text is "select" and i don't want text in this cell !!
I've seen in the html code it is a "<a>" tag which is generated in this cell and this is it which contains this text.
I've also seen in the RadComboBox.cs file that this tag is generated like this :

HyperLink arrowLink = new HyperLink();
arrowLink.Text = "select";

This is generated for all combox i'm creating !

So how to remove this without modify the RadComboBox source code ?

Thanks
Jack
Top achievements
Rank 1
Iron
 answered on 01 Sep 2017
1 answer
162 views

Hallo,

 

I'm trying to apply the RadMap in a website and found the following issue:

I took your example of mapping shapes and tiles and adjusted the tileserver by adding a link to a tile server that our company is also using in other projects. The tiles are shown on the screen en the created map can be exported to a SVG file through the RadClientExportManager. But while the PNG- and PDF export of the OSM example link is working fine, the PNG- and PDF export of our own tile server maps does not work.

I checked the setup of OSM and our own tileserver. The result on the screen and the source html is exactly the same, except for the reference to the images.

The new references are with a https link instead of a http link and include a parameter with a reference to an apikey:

https://aaaa.bbbbbbb.net/#= zoom #/#= x #/#=y #.png?apikey=xxxxxxxxx

I did not get the appliction working by using the special MapLayer.Key, like is done with the Bing maps. So I have to apply the URL parameter.

The user interaction for popping up the PNG file is not shown at all and the PDF file is created without the map.

Any idea?

 

Hans Wapenaar

 

Hans
Top achievements
Rank 1
 answered on 01 Sep 2017
3 answers
300 views

Posted this in the wrong section initially... 

 

I was wondering if there were any plans to introduce a sort of collaborative real-time editor, similiar to how Google allows users to edit documents at the same time, and visually see the edits as they take place.

Rumen
Telerik team
 answered on 01 Sep 2017
6 answers
154 views

 

Hello

Does RadCaptcha use Silverlight?  In IE 11 I get a Silverlight warning on my pages that have RadCaptcha on them, I also get it on the RadCaptcha demo page, image attached.  is there any way to avoid this warning?

Jose Antonio de Alarcon
Top achievements
Rank 1
 answered on 01 Sep 2017
4 answers
1.5K+ views

Hi, I have a Radcombobox as a data item within a RadGrid. I have needdatasource and itemdatabound methods for the RadGrid during which I load the Radcomboboxes in the Grid. 

 

 <telerik:RadGrid  
                            id="testMappingGrid" 
                            runat="server" 
                            HorizontalAlign="Center" 
                            Visible="true" 
                            Width="782px" 
                            OnNeedDataSource="testMappingGrid_NeedDataSource" 
                            OnItemDataBound="testMappingGrid_ItemDataBound"
                            EnableViewState="true"
                            Skin="Silk" MasterTableView-EnableViewState="true">
                            <MasterTableView runat="server" AutoGenerateColumns="false" DataKeyNames="prodID">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="prodID" DataType="System.Int32" 
                                        HeaderText="ID" SortExpression="prodID" 
                                        UniqueName="prodID" Visible="True" Display="true">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="prodName" HeaderText="Product" 
                                        SortExpression="prodName" UniqueName="prodName" ItemStyle-Width="200px">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn HeaderText="Test Tool" SortExpression="testTool"  UniqueName="testTool" ItemStyle-Width="120px">
                                        <ItemTemplate>
                                            <telerik:RadComboBox ID="testTool"
                                                runat="server" 
                                                DataSourceID="testtoolsSqlDataSource"  
                                                Skin="Metro" 
                                                OnSelectedIndexChanged="testTool_OnSelectedIndexChanged"   
                                                DataTextField="Name" 
                                                DataValueField="ToolsID" 
                                                Width="120px"
                                                Height="200px" 
                                                AutoPostBack="true" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Test Project" SortExpression="testToolProject"  UniqueName="testToolProject" ItemStyle-Width="142px">
                                        <ItemTemplate>
                                            <telerik:RadComboBox ID="testProjName"
                                                CausesValidation="false"
                                                Height="200px"
                                                runat="server"
                                                Width="142px"
                                                DropDownWidth="200px"
                                                Skin="Metro" 
                                                AutoPostBack="true" EnableViewState="true" ViewStateMode="Enabled"
                                                >
                                            </telerik:RadComboBox>

<...>

-----------------------------------------------------------------------------------------------

 

The Radcomboxes are losing selected values after postback. Is there a way to retain selected values in a Radcombobox across postbacks?

 

Thanks,

Sandeep

Ghezzo
Top achievements
Rank 1
 answered on 01 Sep 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?