Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
144 views

1. Want to handle this on the server.
2. For each dropped item from gridview, I want to read id and map it to the id of the target TreeView item

 

Bozhidar
Telerik team
 answered on 03 Jul 2014
3 answers
210 views
Creating all events and setting breakpoints, you will notice, when creating the first entry by clicking on "Insert" ("Einfügen") it will first call the ItemCommand-Event with e.CommandName = "PerformInsert", but then it will NOT enter the InsertCommand event. Just create the blank events to this example and set break points:

<asp:UpdatePanel ID="upPrices" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <telerik:RadGrid ID="trgPrices" runat="server" AllowPaging="true" Culture="de-DE"
            CssClass="RadGrid" AllowSorting="False" AutoGenerateColumns="false" ShowStatusBar="true" PageSize="20"
            OnNeedDataSource="trgPrices_NeedDataSource"
            OnItemCreated="trgPrices_ItemCreated"
            OnItemDataBound="trgPrices_ItemDataBound"
            OnItemCommand="trgPrices_ItemCommand"
            OnEditCommand="trgPrices_EditCommand"
            OnInsertCommand="trgPrices_InsertCommand"
            OnUpdateCommand="trgPrices_UpdateCommand"
            OnCancelCommand="trgPrices_CancelCommand"
            OnDeleteCommand="trgPrices_DeleteCommand">
            <MasterTableView DataKeyNames="ID" CommandItemDisplay="Top">
                <CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="false"></CommandItemSettings>
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn" EditText="Bearbeiten">
                        <HeaderStyle Width="20px" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridNumericColumn UniqueName="HighestQuantity" DataField="HighestQuantity" DataType="System.Int32" HeaderText="Anzahl" DefaultInsertValue="999999" MaxLength="6" NumericType="Number" />
                    <telerik:GridNumericColumn UniqueName="UnitPrice" DataField="UnitPrice" DataType="System.Double" HeaderText="Stückpreis" DefaultInsertValue="0" DecimalDigits="2" NumericType="Currency" />
                    <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="DeleteColumn" CommandName="Delete" Text="Löschen">
                        <HeaderStyle Width="20px" />
                    </telerik:GridButtonColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn ButtonType="LinkButton" UniqueName="EditCommandColumn" InsertText="Einfügen" UpdateText="Speichern" CancelText="Abbrechen" />
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>
    </ContentTemplate>
</asp:UpdatePanel>

What can I do?

 answered on 03 Jul 2014
1 answer
139 views
cannot figure out what is causing this error and not sure where to start looking as it is in an telerik resource axd... ???  Any help is appreciated!



Unhandled exception at line 3, column 7184 in http://localhost:60181/JobTrackerAPP/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;AjaxControlToolkit,+Version=4.1.7.1005,+Culture=neutral,+PublicKeyToken=28f01b0e84b6d53e:en-US:5758f630-b0dd-4428-b6d6-af591d716c0c:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2014.1.403.40,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:ca584452-327f-4858-bf00-fb22c6f6fd75:16e4e7cd:874f8ea2:f7645509:24ee1bba:92fe8ea0:19620875:f46195d3:fa31b949:490a9d4e:bd8f85e40x800a138f - JavaScript runtime error: Unable to get property 'indexOf' of undefined or null reference
Vessy
Telerik team
 answered on 03 Jul 2014
7 answers
175 views
Hey all,

I am trying to export to Word on one of my radgrids. I have used this tool before and it has worked flawlessly. However I am running into an issue with one that I am trying to implement now.

I have a grid that has two exportable="false" columns that are supposed to disappear in the downloaded file. Currently what happens is that I lose the pager from top and bottom, the exportable columns disappear and nothing starts to download upon button click.

From before, exportable="false" columns have always worked for me as well as the export to word. I tested the other exports and none work. They all currently do the same thing. To my knowledge, I haven't implemented anything differently in my NeedsDataSource or ItemDataBound. 

Anyone got any ideas as to why this is happening?
Alexander
Top achievements
Rank 1
 answered on 03 Jul 2014
3 answers
619 views
Hi,

In one kind of scenario of diffrent types of postbacks (full and async) and toggled visibility, at least one Telerik control seem to lose its CSS, from the WebResource.axd. In this example I use the RadScheduler. If in the page (code following below), one first clicks the "Toggle Rad Scheduler Visibility" button, then clicks the "Full Postback" button, then clicks the "Toggle Rad Scheduler Visibility" button again, the CSS will not be loadad for the scheduler any more, so it will not look as it should. If in this state one clicks "Full Postback" again, the CSS is loaded again.

Is there any method one should call on the Telerik controls to make sure their CSS is always loaded? What can one do, any suggestions? Or is there something I have missed?

Page markup and codefile:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AsyncCSSTest2.aspx.cs" Inherits="RadAsyncTest.AsyncCSSTest2" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
     
        <asp:ScriptManager ID="SM" runat="server" 
            EnablePartialRendering="true"
        </asp:ScriptManager> 
         
        <telerik:RadCodeBlock runat="server"
            <telerik:RadAjaxManager runat="server" ID="AjxMgr"
            </telerik:RadAjaxManager> 
 
            <asp:UpdatePanel runat="server" ID="UP" UpdateMode="Conditional"
                <ContentTemplate> 
                 
                    <asp:Button runat="server" ID="Toggle" Text="Toggle Rad Scheduler Visibility" /> 
                    <asp:Button runat="server" ID="FullPost" Text="Full Postback" /> 
                     
                    <telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Telerik" 
                        Visible="true" 
                        DataKeyField="eventID" 
                        DataStartField="startdate" 
                        DataEndField="enddate" 
                        DataSubjectField="subject" 
                        DataDescriptionField="description"
                    </telerik:RadScheduler> 
                             
                </ContentTemplate> 
                 
                <Triggers> 
                    <asp:PostBackTrigger ControlID="FullPost" /> 
                </Triggers> 
                 
            </asp:UpdatePanel> 
 
        </telerik:RadCodeBlock> 
         
    </div> 
    </form> 
</body> 
</html> 
 


using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
 
namespace RadAsyncTest 
    public partial class AsyncCSSTest2 : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            Toggle.Click += delegate { 
                RadScheduler1.Visible = !RadScheduler1.Visible; 
            }; 
        } 
    } 
 

Marin Bratanov
Telerik team
 answered on 03 Jul 2014
3 answers
344 views
I have a fileExplorer that open files but what it does is open the files in a radwindow.  Current the fileExplorer is in a Radwindow itself.  Is there a way to force it to open the files in another IE tab.

<tr>
                   <td><telerik:RadFileExplorer ID="radExplorer" runat="server" Width="400px" Height="200px" EnableOpenFile="true" DisplayUpFolderItem="false"
                       EnableCreateNewFolder="false" AvailableFileListControls="Grid" ExplorerMode="Default">
                           <Configuration ViewPaths="~/PriorSvcUploads" />
                       </telerik:RadFileExplorer>
                   </td>
               </tr>

Vessy
Telerik team
 answered on 03 Jul 2014
3 answers
206 views
Folks using VS 2012 with ASP.NET Ajax and IE 11. My Project I am using EditForm.
 
I just downloaded Telerik_UI_for_ASP.NET_AJAX_2014_2_618_Dev. Unfortunately I can't add/edit any thing in my Existing Rad Grid via any Commands from CommandItemTemplate.
 
Keep getting
 
Line: 11566
Error: Unable to get property 'get_index' of undefined or null reference
 
See attached file (Edit_form_Open_Error_in_ASP.NET_AJAX_2014_2_618.PNG)
 
Also see the debugger error (Debugger_Error.png)
 
How ever I am able to add/edit the same grid in Previous version (Telerik_UI_for_ASP.NET_AJAX_2014_1_403_Dev)
 
Refer to (Edit_form_in_ASP.NET_AJAX_2014_1_403.png).
 
Telerik,  please suggest; should I roll back to previous version?
 
Thanks
 
gc_0620
Kostadin
Telerik team
 answered on 03 Jul 2014
2 answers
168 views
Hi Team,

I am receiving the error 'Error while executing filter XHTML - TypeError: Cannot read property 'parentNode' of null' while trying to edit some of our existing Documents.

Any documents created newly are working fine. Could you please provide any direction to this issue?


Regards,
Saikrishna 
Saikrishna
Top achievements
Rank 1
 answered on 03 Jul 2014
4 answers
208 views
Hi ,

I wanted to have a column with J-query calendar and i am not able to achieve this using rad grid .But  the normal grid i am able to assign it with the class name. Can you help me out.

Thanks 
Vk
Eyup
Telerik team
 answered on 03 Jul 2014
7 answers
606 views
The EditCommand handler works just fine.

In looking at why the InsertCommand handler was never being hit, although a postback does occur, I discovered this in the Request.Params.

__EVENTTARGET: ctl00$MainContent$gridActivity$ctl00$ctl02$ctl00$InitInsertButton


This is the target generated when I click on the Add button on the grid, it's not firing the InsertCommand because that is not what it's pointing at.

There are also no arguments on that postback.  I can check for that and call something, but how do I access the individual edit text boxes displayed by the grid?
Angel Petrov
Telerik team
 answered on 03 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?