Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
130 views
Hi All,

I am using RadEditor within RadWindow in one of my current project. When I browse the webpage in Chrome browser it throws 'INVALID_ACCESS_ERR: DOM Exception'.
Exception details:
  1. Uncaught Error: INVALID_ACCESS_ERR: DOM Exception 15 Telerik.Web.UI.WebResource.axd:12839
    1. a.RadEditor.toggleEnhancedEditTelerik.Web.UI.WebResource.axd:12839
    2. a.RadEditor.onParentNodeChangedTelerik.Web.UI.WebResource.axd:11876
    3. window.$telerik.window.TelerikCommonScripts.Telerik.Web.CommonScripts.repaintChildrenTelerik.Web.UI.WebResource.axd:96
  1. Uncaught Error: INVALID_ACCESS_ERR: DOM Exception 15 Telerik.Web.UI.WebResource.axd:12839
    1. a.RadEditor.toggleEnhancedEditTelerik.Web.UI.WebResource.axd:12839
    2. a.RadEditor.onParentNodeChangedTelerik.Web.UI.WebResource.axd:11876
    3. (anonymous function)



My design structure is like:

* I have a webpage
* A radwindow is placed in this webpage
* A RadAjaxPanel is placed in ContentTemplate of the RadWindow
* A usercontrol is placed within RadAjaxPanel 
* A RadEditor is placed in the usercontrol


SideNote: I have already refered http://demos.telerik.com/aspnet-ajax/editor/examples/editorinradwindow/defaultcs.aspx for telerik demo, resulted no work for me.

Please guide me if any one know any solution for this.

Thanks in Advance.
Tanmay
Top achievements
Rank 1
 answered on 02 Oct 2012
2 answers
91 views
I have a radtreeview with its own collection of ContextMenu items. When I view the page on IE8 and right clicked on the radtreenode, the ContextMenu is properly displayed. But when I view the page on Firefox 15.0.1 and clicked on the radtreenode, the browser context menu will be displayed on top of radtreeview's context menu. I know that this is a known issue due to browser limitation, but has Telerik found a workaround for this (apart from having the user to press ESC key everytime the browser context menu is displayed)?

I'd hate to tell to the customers/users that the web page that I created using Telerik is not Firefox compatible when Firefox is the one of the most widely used internet browser.
Iris
Top achievements
Rank 1
 answered on 02 Oct 2012
7 answers
274 views
Hello,
Firefox (v3.6.13) context menu hides the treeview context menu:
This happens with my own code using the latest trial version but you can also see it on the demo site:

http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx

Is this a bug?

Thanks
Pierre
Iris
Top achievements
Rank 1
 answered on 02 Oct 2012
2 answers
100 views
Folks,

Using RadControls for ASP.NET AJAX Q2 2012 SP2 with VS 2010.

I am using below link as a prototype.

ASP.NET Grid Demo - Application Scenarios - Window Editing

My question is it possible to highlight the same parent row after window close  i.e. either after Update/Cancel/Insert event of window? Attached is my desire result. Ex: highlight employee with Last Name Callahan in Parent Grid after popup edit window close.

Thanks for any help

gc_0620


gc_0620
Top achievements
Rank 1
 answered on 01 Oct 2012
2 answers
96 views
I have a grid that is bound to a list onclick of a button.  I have hooked up both the grid and the button in the RadAjaxManager. I have verified that everything is binds correctly, I can see that I have data in the columns while debugging but the grid is not updated with the data.

When I take the controls out of the ajaxmanager and allow the page to postback everything works fine, I get data in the grid.

Here's the relevant code:

ajaxmanager
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" ClientEvents-OnRequestStart="mngRequestStarted">
<telerik:AjaxSetting AjaxControlID="RadGridGeoData">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGridGeoData" UpdatePanelRenderMode="Inline" />
                    <telerik:AjaxUpdatedControl ControlID="btnGeoDetails" />
</UpdatedControls>
</telerik:AjaxSetting>
<ClientEvents OnRequestStart="mngRequestStarted" />
</telerik:RadAjaxManager>

GRID
<telerik:RadGrid ID="RadGridGeoData" runat="server" AllowSorting="True" AllowPaging="True"  
            Skin="Windows7" AllowFilteringByColumn="True" 
            AutoGenerateColumns="false" CellSpacing="0" GridLines="None"
            ShowGroupPanel="True">
            <ClientSettings AllowDragToGroup="false">
<ClientEvents OnCommand="GeoGridCommand" OnColumnClick="ColumnClick" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
<Resizing AllowColumnResize="True" />
</ClientSettings>
<AlternatingItemStyle Font-Size="10px" />
<MasterTableView 
CommandItemDisplay="TopAndBottom" HierarchyLoadMode="Client" AllowSorting="true" 
                NoMasterRecordsText="Loading data...." AllowFilteringByColumn="False">
<CommandItemSettings ExportToPdfText="Export to PDF" 
ShowAddNewRecordButton="False" ShowExportToCsvButton="True" ShowRefreshButton="False"></CommandItemSettings>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
</ExpandCollapseColumn>


                <Columns>
                    <telerik:GridBoundColumn DataField="FacilityLink" FilterControlAltText="Filter FacilityName column"
HeaderText="Facility Name" SortExpression="FacilityName" UniqueName="FacilityLink" 
                        AllowSorting="False" Groupable="False" Reorderable="False">
<HeaderStyle Width="5%" HorizontalAlign="Center" />
</telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FinanceNumber" FilterControlAltText="Filter FinanceNumber column"
HeaderText="Finance Number" SortExpression="FinanceNumber" UniqueName="FinanceNumber" 
                        AllowFiltering="False" AllowSorting="False" Groupable="False" 
                        Reorderable="False">
<HeaderStyle Width="5%" HorizontalAlign="Center" />
</telerik:GridBoundColumn>
...
...
...
</telerik:RadGrid>

Server side:
Protected Sub OnClick_btnGeoDetails(sender As Object, e As System.EventArgs)
        Dim ds As New FacilityServices
        Dim o = hiddenGeoDetailsGridDTO.Value
        Dim geodata As GeoData = JsonConvert.DeserializeObject(Of GeoData)(o)

        Dim dl = geodata.financeNumber
        Dim ol = geodata.originsList
        Dim rw = geodata.residualWithheld

        Dim geoDataList As List(Of FacilitiesList) = ds.GetFacilitiesStudy1Grid(ol, dl, rw)

        RadGridGeoData.DataSource = geoDataList
        RadGridGeoData.Rebind()
    End Sub

How do I get this to work with ajax enabled?

Thanks, Justin
Justin
Top achievements
Rank 1
 answered on 01 Oct 2012
4 answers
150 views

Hi I'm stuck in the next situation, I need to open a pdf file which I upload to sever with a radupload, when I ItemCommandEvent fires, I've tried the following code in itemcommand event:

if (e.CommandName == "Ver")
            {
  
                e.Item.Selected = true;
                 
                foreach (GridDataItem selectedItem in RGDOCS.SelectedItems)
                {
                  
                    Session["strUrl"] = selectedItem["ColumnaUrl"].Text;
                } 
string Servidor = Request.Url.GetLeftPart(UriPartial.Authority);           var fullUrl  = Servidor + Session["strUrl"];              var NewProcess = new System.Diagnostics.Process();             NewProcess.StartInfo.FileName = fullUrl;             NewProcess.Start();

This code works fine when I'm in localhost, but when I deploy my webapplication doesn't work. Is there any other solution to accomplish this?

Hope you could help me.

Pavlina
Telerik team
 answered on 01 Oct 2012
6 answers
177 views
I implemented Grid with update option. When I click on update symbol in row I am getting One checkbox for update (I use SQL data source only with one column to update).
I have two issues with this approach:

1. Checkbox is not checked by default, how can I change this?
2. I see two commands Update and Cancel, how I can remove Cancel?

 
berto
Top achievements
Rank 1
 answered on 01 Oct 2012
2 answers
98 views
Hello, all.

I'm thinking about building a dashboard that uses docks and zones similar to the "My Portal" demo.  I copied the code into a new project and saw some odd behavior.  For some reason, when a dock is first added to the page, it doesn't look like the DockPositionChanged handler fires correctly.  If I do a postback, the dock reverts to its original position.  However, after that, the dock behaves as it should; meaning, I can change zones and do a postback and all the positions and zones of already-established docks remain as they should.  Any suggestions on why a new dock wouldn't save its state even after changing zones?
Jeff
Top achievements
Rank 1
 answered on 01 Oct 2012
2 answers
86 views
Hi,

I have a dropdown list inside the radgrid 

<telerik:GridTemplateColumn  HeaderText="" UniqueName="Answer" DataField="Answer"  >
                    <ItemTemplate>
                    <asp:DropDownList ID="ddlAnswer" runat="server"   DataTextField="Answer"
DataValueField="Answer" >
                    <asp:ListItem  Value="Yes" >Yes</asp:ListItem>
                    <asp:ListItem  Value="No" >No</asp:ListItem>
                    </asp:DropDownList>
                    </ItemTemplate>
                     </telerik:GridTemplateColumn>

If the user selects No and hits submit button the record will be updated in the database and below the answer No will be saved.(Database is updating properly)

When I click on this page again or refresh the page the page should be loaded with all the correct data from the database.

 every time the page loads all data except this drop down is getting binded properly. There are few records where the user selected No but still the drop down is showing Yes. How can I make No as the selected item?
Kostadin
Telerik team
 answered on 01 Oct 2012
1 answer
99 views
Hello,

I am working on the selected index change event of the dropdownlist column in insert,delete and update radgridview.. And I get a strange error. I have pasted the code and error below



Protected Sub gvInsert_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs)
 
        If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode Then
            Dim item As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
            Dim editor As GridDropDownListColumnEditor = DirectCast(item.EditManager.GetColumnEditor("UniqueID"), GridDropDownListColumnEditor)

            'handle selected change on server
            editor.ComboBoxControl.AutoPostBack = True
            editor.ComboBoxControl.SelectedIndexChanged += New RadComboBoxSelectedIndexChangedEventHandler(AddressOf list_SelectedIndexChanged)
        End If
    End Sub

    
    Private Sub list_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)

        Dim editedItem As GridEditableItem = TryCast(TryCast(sender, DropDownList).NamingContainer, GridEditableItem)

    End Sub



Error:Public Event SelectedIndexChanged(sender As Object, e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.


Can someone please help get thru this error, I have been trying to solve this for the past 2 weeks..
Any help will be appreciated
Kostadin
Telerik team
 answered on 01 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?