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

I have a radFileExplorer control which displays documents within a sharepoint document library.
Users have been complaining that when they open MS PowerPoint (.pptx) files through the radFileExplorer an empty popup window also opens.
Is this known behaviour and is there anything I can do to stop it?

Thanks
Rach
Top achievements
Rank 1
 answered on 23 Jul 2013
3 answers
113 views
I'm using a Radgrid with a NestedViewTemplate that has a user control inside of it. This user control has a button that opens up a radwindow to view more details. What I'd like to do is add a record to the database that somebody clicked on the button to view the radwindow. so it would require calling a custom Method in the codebehind for this puspose. Any direction would be great
Angel Petrov
Telerik team
 answered on 23 Jul 2013
11 answers
295 views
Hi,

I'm trying to integrate ImageManager in SharePoint using custom content provider (i need to use ImageManager outside RadEditor).
The problem is that whatever i do "Image Editor" button is always disabled.
All handlers are specified correctly. The code is below:
DialogOpener1.HandlerUrl = "~/_wpresources/RadEditorSharePoint/6.7.0.0__1f131a624888eeed/Resources/Telerik.Web.UI.DialogHandler.aspx";
  
            var imageManagerParameters = new ImageManagerDialogParameters();
  
            imageManagerParameters.ViewPaths = new string[] { "http://server" };
  
            imageManagerParameters.ImageEditorHttpHandlerUrl = "~/_wpresources/RadEditorSharePoint/6.7.0.0__1f131a624888eeed/Resources/Telerik.Web.UI.DialogHandler.aspx";
  
            imageManagerParameters.MaxUploadFileSize = 5000000;
  
            imageManagerParameters.FileBrowserContentProviderTypeName = "TestRad.SharePointContentProvider, TestSharePointRAD, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8cee718d2e73da72";
  
            imageManagerParameters.EnableImageEditor = true;
  
  
  
            DialogDefinition imageManager = new DialogDefinition(typeof(ImageManagerDialog), imageManagerParameters);
  
            imageManager.ClientCallbackFunction = "ImageManagerFunction";
  
            imageManager.Width = Unit.Pixel(694);
  
            imageManager.Height = Unit.Pixel(440);
  
            DialogOpener1.DialogDefinitions.Add("ImageManager", imageManager);
  
  
  
            FileManagerDialogParameters imageEditorParameters = new FileManagerDialogParameters();
  
  
  
            imageEditorParameters.ViewPaths = new string[] { "http://server" };
  
            imageEditorParameters.MaxUploadFileSize = 5000000;
  
            imageEditorParameters.FileBrowserContentProviderTypeName = "TestRad.SharePointContentProvider, TestSharePointRAD, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8cee718d2e73da72";
  
  
  
            DialogDefinition imageEditor = new DialogDefinition(typeof(ImageEditorDialog), imageEditorParameters);
  
            imageEditor.Width = Unit.Pixel(832);
  
            imageEditor.Height = Unit.Pixel(520);
  
            DialogOpener1.DialogDefinitions.Add("ImageEditor", imageEditor);


How can i solve this?
Yevgeniy
Top achievements
Rank 1
 answered on 23 Jul 2013
2 answers
114 views
After upgrading to the 2013 Q2 controls we have been getting a large number of "This is an invalid webresource request" errors (every page access I believe) in our error reporting application.  I'm not seeing anything obviously wrong with the calendar such as missing images.

Query string:
d=oYk45SpGYUqPQWaQ_K6qeQjLI6LVoPZPDXmb2YP7w81z0o1tWAbsclqXQQzbi7yQw0YmPSHt5Mnxo3xiI8po-VlJREoNvUw_dNRIMwB1PRbPLJIwdRv3K90xKVkNfTv2lJn9SloLZWkbMqEP1Jbw3NTL5OE1&t=635096945953391250

Decoded:
pTelerik.Web.UI.Skins|Telerik.Web.UI.Skins._Telerik.Calendar.sprite.gif

Here is the network request.  It is redirecting to our "not found" page.
URL Method Result Type Received Taken Initiator Wait‎‎ Start‎‎ Request‎‎ Response‎‎ Cache read‎‎ Gap‎‎
/Efficio/WebResource.axd?d=oYk45SpGYUqPQWaQ_K6qeQjLI6LVoPZPDXmb2YP7w81z0o1tWAbsclqXQQzbi7yQw0YmPSHt5Mnxo3xiI8po-VlJREoNvUw_dNRIMwB1PRbPLJIwdRv3K90xKVkNfTv2lJn9SloLZWkbMqEP1Jbw3NTL5OE1&t=635096945953391250 GET 302 text/html 339 B 406 ms background-image 2246 0 406 0 0 1780

Scheduler markup:
<telerik:RadScheduler AllowInsert="false" CustomAttributeNames="OpportunityActivityID" DataEndField="Endtime" DataKeyField="ActivityId" DataStartField="StartTime" DataSubjectField="Description" DayStartTime="08:00:00" DayEndTime="18:00:00" GroupBy="User" GroupingDirection="Horizontal" ID="radScheduler" Localization-ConfirmDeleteText="Are you sure you want to permanently Delete this Activity?" Localization-ConfirmDeleteTitle="Confirm Activity Deletion" MinutesPerRow="15" NumberOfHoveredRows="1" MonthView-AdaptiveRowHeight="true" OnAppointmentCreated="RadScheduler1_AppointmentCreated" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" OnClientAppointmentDeleting="onAppointmentDeleting" OnClientAppointmentDoubleClick="onClientAppointmentDoubleClick" OnClientAppointmentEditing="OnClientAppointmentEditing" OnClientAppointmentInserting="OnClientAppointmentInserting" OnClientAppointmentMoveEnd="OnClientAppointmentMoveEnd" OnClientAppointmentResizeEnd="OnClientAppointmentResizeEnd" OnClientTimeSlotClick="OnClientTimeSlotClick" OnDataBound="RadScheduler1_DataBound" OnNavigationComplete="RadScheduler1_NavigationComplete" OnPreRender="radScheduler_PreRender" OverflowBehavior="Expand" RowHeight="25" runat="server" ShowAllDayRow="false" ShowFullTime="false" ShowNavigationPane="true" ShowResourceHeaders="true" Skin="Telerik" UseRowHeadersAsSelectors="true" Width="915px" WorkDayEndTime="18:00:00" WorkDayStartTime="08:00:00">
</telerik:RadScheduler>
Plamen
Telerik team
 answered on 23 Jul 2013
1 answer
128 views
Hey, I am attempting to evaluate a Condition for each Cell of each Row. I am aware of OnItemDataBound and plan to use this, however I need the conditions to be more generic.

The setup I am looking to achieve is:
A Conditions Data Base Table with the Columns:
  • [TableName]
  • [ColumnName]
  • [Condition]
  • [StyleID]

When I query the Data Base for any Data I want to also gather all conditions for each column of that table.
When a row is data bound to the grid I want to evaluate the condition for each cell. If the condition passes I apply the associated style to that cell based on StyleID (Which would be another data base table with BackColor, ForColor, Bold, ect..).

I would like to be able to pass any data to the Grid and have it run all conditions and apply styles without ever hard coding column names or conditions in the application.

I am attempting to achieve this because the conditions and styling will be user created by another application.

Thanks,

Taylor Devereaux
Eyup
Telerik team
 answered on 23 Jul 2013
2 answers
125 views
Hi.
   
     I have used a Grid, a ComBoBox, and a button to do a simple task.
    User selects something from the ComboBox, then click on the button. I expect the Grid will be refreshed according to the selecttions from the  ComboBox.
    The problem is that the Gird can't be refreshed after the button click, I don't know what is the problem, I have tried RadGrid1.DataBind() and RadGrid1.Rebind().

Please help.

Thanks,
Jian
++++++++++++++++++++++++
Codes for Aspx page

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns='http://www.w3.org/1999/xhtml'>

<head>

    <title>Simple Data Binding in AJAX GridView | RadGrid demo</title>

</head>

<body>

<form id="form1" runat="server">

    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    
     <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
 
               <telerik:RadComboBox ID="RadComboBox1" runat="server" CheckBoxes="true" EnableCheckAllItemsCheckBox="false"
                    Width="300" Label="Select SaleRep:">
                    <Items>
                         <telerik:RadComboBoxItem Text="6277" />
                         <telerik:RadComboBoxItem Text="6278" />
                         <telerik:RadComboBoxItem Text="6279" />
                         <telerik:RadComboBoxItem Text="6280" />
                         <telerik:RadComboBoxItem Text="6281" />
                         <telerik:RadComboBoxItem Text="6282" />
                         <telerik:RadComboBoxItem Text="6283" />
                         <telerik:RadComboBoxItem Text="6284" />
                         <telerik:RadComboBoxItem Text="6285" />
                         <telerik:RadComboBoxItem Text="6286" />
                         <telerik:RadComboBoxItem Text="6287" />
                         <telerik:RadComboBoxItem Text="6288" />
                    </Items>
               </telerik:RadComboBox>
               
               <telerik:RadButton ID="Button1" runat="server" Text="Get Checked Items" OnClick="Button1_Click" />
   
     </telerik:RadAjaxPanel>
     
     <br /><br />
     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadGrid ID="RadGrid1" Width="97%" AllowPaging="True" PageSize="15" runat="server"
        AllowSorting="true" GridLines="None">
        <MasterTableView Width="100%">
        </MasterTableView>
        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
        <FilterMenu EnableTheming="True">
            <CollapseAnimation Duration="200" Type="OutQuint"></CollapseAnimation>
        </FilterMenu>
    </telerik:RadGrid>

</form>

</body>

</html>

=================
Code for ASPX.VB Page

Imports System
Imports System.Configuration
Imports System.Data
Imports System.Data.SqlClient
Imports Telerik.Web.UI

Partial Public Class Grid2
    Inherits System.Web.UI.Page

    Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource

        RadGrid1.DataSource = GetDataTable("SELECT TOP 20 [salesRepID],[salesID],[lastName],[firstName] FROM [tpcodata2].[dbo].[salesRep]")

    End Sub

    Public Function GetDataTable(ByVal query As String) As DataTable
        Dim ConnString As String = ConfigurationManager.ConnectionStrings("NorthwindConnectionString").ConnectionString
        Dim conn As SqlConnection = New SqlConnection(ConnString)
        Dim adapter As SqlDataAdapter = New SqlDataAdapter
        adapter.SelectCommand = New SqlCommand(query, conn)
        Dim table1 As New DataTable
        conn.Open()
        Try
            adapter.Fill(table1)
        Finally
            conn.Close()
        End Try
        Return table1
    End Function

    Public Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        Dim sb As New StringBuilder()
        Dim collection As IList(Of RadComboBoxItem) = RadComboBox1.CheckedItems
        Dim iCnt As Integer

        If (collection.Count <> 0) Then
            iCnt = 1
            For Each item As RadComboBoxItem In collection
                If iCnt = collection.Count Then
                    sb.Append(item.Text)
                Else
                    sb.Append(item.Text + ",")
                End If

                iCnt = iCnt + 1
            Next

        End If

        If sb.ToString() = "" Then
            Me.RadGrid1.DataSource = GetDataTable("SELECT TOP 20 [salesRepID],[salesID],[lastName],[firstName] FROM [tpcodata2].[dbo].[salesRep]")
        Else
            Me.RadGrid1.DataSource = GetDataTable("SELECT [salesRepID],[salesID],[lastName],[firstName] FROM [tpcodata2].[dbo].[salesRep] where [salesRepID] in (" + sb.ToString() + ")")
        End If
 
        Me.RadGrid1.Rebind()

    End Sub

End Class
Ron
Top achievements
Rank 1
 answered on 23 Jul 2013
7 answers
149 views
Hello Telerk,
            I am using two use controls 
GoogleMaps.ascx and GMaps.ascx.The GMaps.ascx is inside the 
GoogleMaps.ascx.I am using a RadListbox on 
GoogleMaps.ascx to load the map on GMaps.ascx.Everything was working fine but my client requested to ajaxify the RadListBox so I have added a RadAjaxManagerProxy to the GoogleMaps.ascx.But after adding this my map is not showing if i added another control below or upper to the map that is working fine but map still not showing(ResponseScript not coming) please suggest ASAP.......
Here is my code.....
GoogleMaps.ascx-:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GoogleMaps.ascx.cs"
    Inherits="BSL.TaylorWimpey.SMTS.Web.Assets.Controls.Mapping.GoogleMaps" %>
<%@ Register Src="~/Assets/Controls/Mapping/GMaps.ascx" TagName="GMaps" TagPrefix="uc1" %>
  
  
<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="radListBoxSites">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panel1" LoadingPanelID="RadAjaxLoadingPanel1"  />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
   <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
 <div id="mapSitename">
       <telerik:RadListBox  ID="radListBoxSites" runat="server" DataTextField="Name" AutoPostBack="true"
            DataValueField="SiteID" Height="219" Width="150"  Font-Bold="True" OnSelectedIndexChanged="radListBoxSites_SelectedIndexChanged" >
        </telerik:RadListBox>   
</div>
<asp:Panel ID="panel1" runat="server">
    <uc1:GMaps ID="gmapSites" runat="server" Width="800" Height="370" ></uc1:GMaps>
</asp:Panel>

GMaps.ascx-:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GMaps.ascx.cs" Inherits="BSL.TaylorWimpey.SMTS.Web.Assets.Controls.Mapping.GMaps" %>
<%@ Register Assembly="Reimers.Google.Map" Namespace="Reimers.Google.Map" TagPrefix="Reimers" %>
  
<Reimers:Map ID="mapSites" runat="server" Width="100%" Height="400px"
 OnOverlayClick="HandleOverlayClick" MapLanguage="en-GB" >
    <Center Latitude="0" Longitude="0" />
</Reimers:Map>



Maria Ilieva
Telerik team
 answered on 23 Jul 2013
1 answer
124 views
Recently I have using RadComboBox just fine with default skin. There is issue when I using RadComboBox inside RadMultiPage. Here is the case :
1. When the RadComboBox is initially loaded, it display correctly like in the first Screenshot (SS1). The arrow is shown normally.
2. My aspx is like this : 

    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"></telerik:RadMultiPage>

3. When RadMultiPage is clicked, I load aspx to render into RadMultiPage. The Code is like this :  

    RadPageView pageView = new RadPageView();
    pageView.ID = item["ScreenID"].ToString();
    pageView.ContentUrl = GetScreenPath(int.Parse(item["ScreenID"].ToString())) + "?CPID=" + item["ContractParameterID"].ToString() + "&CID=" + ContractID + "&CTID=" + ContractTypeID + "&CGTID=" + ContractGroupTypeID;
    pageView.Width = new Unit(100, UnitType.Percentage);
    RadMultiPage1.PageViews.Add(pageView);


4. When content of PageView is loaded succesfully, it will call RadComboBox where the contents of the page  is rad ajax panel to wrap the RadComboBox. My aspx code for RadComboBox is like this :

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"><telerik:RadComboBox ID="RadComboBox1" runat="server"> </telerik:RadComboBox></telerik:RadAjaxPanel>


5. After the second load, the arrow in right of RadComboBox is not shown. 
6. This issue only happen in IE10 (Compatibilty Mode IE8).

I am now using Telerik 2013 Q2. Can you help me to solve this issue?


Hristo Valyavicharski
Telerik team
 answered on 23 Jul 2013
3 answers
189 views
Hi, I installed Telerik_ASP_NET_Web_Parts_2013_2_611_for_SharePoint_2013_Dev.msi but when I try to package or build the project I am getting those 3 errors, any help, thanks

------ Build started: Project: Expertime.PublishingComments.Library, Configuration: Debug Any CPU ------
1 - C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3274: The primary reference "Telerik.Web.UI, Version=2013.1.220.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
2 - C:\projects\abc\Expertime.PublishingComments.Library\Controls\Comments.cs(9,7,9,14): error CS0246: The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)
3 - C:\projects\abc\Expertime.PublishingComments.Library\Controls\Comments.cs(19,19,19,28): error CS0246: The type or namespace name 'RadEditor' could not be found (are you missing a using directive or an assembly reference?)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

Renato
Top achievements
Rank 1
 answered on 23 Jul 2013
2 answers
90 views
I have encountered an problem only occurs if the user is using Safari.   In a Radwindow.    Once the user makes a choice in the ajaxified drop down the ajax disabled button no longer posts back.     If the user does not make a choice in the drop down the button post back.   Below is the code,

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SafariBugTest2.aspx.cs" Inherits="SafariBugTest2" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
     
       
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
 
        function CloseAndRebind(args) {
            GetRadWindow().BrowserWindow.refreshGrid(args);
            GetRadWindow().close();
        }
 
 
 
        function returnToParent() {
            //create the argument that will be returned to the parent page
            var oArg = new Object();
 
 
            var oWnd = GetRadWindow();
 
            //set the argument to the RadWindow
            oWnd.argument = oArg;
            //close the RadWindow           
            {
                oWnd.close();
            }
 
        }
 
        function inconditionalPostback(sender, args) {
            //    var targ = "";
            //  alert(args.EventTarget);
            //  alert(args.EventArgument);
            var targ = args.EventTarget;
            var ntarg = targ.toUpperCase()
            var ic = ntarg.indexOf("UPBUTTON");
 
            if (ic > 0) {
 
 
                args.EnableAjax = false;
            } else {
                args.EnableAjax = true;
            }
        }
    </script>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" ClientEvents-OnRequestStart="inconditionalPostback">
        <div>
            <table width=350>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="Order Routing"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" runat="server" Text="Route Order to:"></asp:Label>
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label3" runat="server" Text="Send alert to:"></asp:Label>
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="RadComboBox2" EnableCheckAllItemsCheckBox="true" runat="server"
                                        CheckBoxes="True">
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table id="iscompliance" runat="server" visible="false">
                            <tr>
                                <td>
                                    <asp:Label ID="Label6" runat="server" Text="Enter Compliance ID"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>   <asp:TextBox ID="TextBox2" runat="server"  TextMode=SingleLine Width="345px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="Notes"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server" Height="121px" TextMode="MultiLine" Width="345px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text="Use the Upload below to add any new resources, needed for this order"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
                        <telerik:RadProgressArea ID="RadProgressArea1" runat="server" Skin="WebBlue" CssClass="upldr"
                            ProgressIndicators="TotalProgressBar, TotalProgress, TotalProgressPercent, RequestSize, TimeElapsed, TimeEstimated, TransferSpeed"
                            ToolTip="Upload Progress">
                            <Localization Uploaded="Uploaded"></Localization>
                        </telerik:RadProgressArea>
                       <%-- <telerik:RadUpload ID="RadUpload1" runat="server" InitialFileInputsCount="1" MaxFileInputsCount="10"
                            ControlObjectsVisibility="AddButton" OverwriteExistingFiles="True" TargetFolder="thrivent\temp">
                        </telerik:RadUpload>--%>
                        <asp:HiddenField ID="HiddenUplist" runat="server" />
                                          <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0"
                                        GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource" Width="400px" OnInsertCommand="RadGrid1_InsertCommand">
                                        <ClientSettings>
                                            <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="100px" />
                                        </ClientSettings>
                                        <MasterTableView DataKeyNames="Resource_ID" CommandItemDisplay="Bottom">
                                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                            </ExpandCollapseColumn>
                                            <Columns>
                                                <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" UniqueName="TemplateColumn"
                                                    HeaderText="Current attachments to this request">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="UPBUTTON3" runat="server" OnClick="LinkB3_Click" Text='<%# Bind( "Resource_Filename") %>'></asp:LinkButton>
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                               
                                            </Columns>
                                            <EditFormSettings EditFormType="Template">
                                                <FormTemplate>
                                                    <table width="350">
                                                        <tr>
                                                            <td>
                                                                <telerik:RadUpload ID="RadUpload1" runat="server" InitialFileInputsCount="1" MaxFileInputsCount="1"
                                                                    ControlObjectsVisibility="None" OverwriteExistingFiles="True" TargetFolder="thrivent\temp"
                                                                    EnableFileInputSkinning="False">
                                                                </telerik:RadUpload>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="MYUPBUTTON" runat="server" Text="Upload" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </FormTemplate>
                                            </EditFormSettings>
                                            <CommandItemTemplate>
                                                <asp:Button ID="Button2" runat="server" Text="Upload New Resource" CommandName="InitInsert" />
                                            </CommandItemTemplate>
                                        </MasterTableView>
                                        
                                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                                        </HeaderContextMenu>
                                    </telerik:RadGrid>
 
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label16" runat="server" CssClass="small_text" Text="If you need to upload more than 5 files, click the Add Button.  Empty upload boxes will be ignored. "></asp:Label>
                    </td>
                </tr>
                <tr>
                <td>
                <table width=300>
                 <tr>
                    <td width=200>
                        <asp:HiddenField ID="HiddenST" runat="server" />
                        <asp:HiddenField ID="HiddenID" runat="server" />
                        <asp:Button ID="Button1" runat="server" Text="Cancel" OnClick="Button1_Click" />
                    </td>
                    <td>
                        <asp:Button ID="MYUPBUTTON" runat="server" Text="Route" OnClick="Button2_Click" />
                    </td>
                </tr>
                </table>
                </td>
                </tr>
                
            </table>
        </div>
    </telerik:RadAjaxPanel>
     
    </form>
</body>
</html>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Net.Mail;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class SafariBugTest2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["RID"] != null)
            {
                //   Label2.Text = "Order ID " + Request.QueryString["RID"].ToString();
                HiddenID.Value = Request.QueryString["RID"].ToString();
                BuildRoutes();
 
            }
        }
    }
    private void BuildRoutes()
    {
 
        DataTable p1 = new DataTable("Temp");
 
        p1.Columns.Add("Role_words", typeof(String));
        p1.Columns.Add("Role_xor", typeof(String));
        for(int x =1;x<=10;x++)
        {
            DataRow row;
            row = p1.NewRow();
 
            row["Role_words"] = "Test "+x.ToString();
            row["Role_xor"] = "Test " + x.ToString();
            
            p1.Rows.Add(row);
 
        }
 
        
 
 
        RadComboBox1.DataSource = p1;
 
        RadComboBox1.DataTextField = "Role_words";
        RadComboBox1.DataValueField = "Role_xor";
        RadComboBox1.DataBind();
        RadComboBox1_SelectedIndexChanged(null, null);
 
 
 
 
    }
    protected void LinkB3_Click(object sender, EventArgs e)
    {
       
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        RadAjaxPanel1.ResponseScripts.Add("returnToParent()");
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        /*
          Do some work here
         * */
 
 
        RadAjaxPanel1.ResponseScripts.Add(" CloseAndRebind('Rebind')");
    }
    protected void RadComboBox1_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
      
    }
    protected void RadGrid1_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
 
    }
    protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        
 
    }
}
Maria Ilieva
Telerik team
 answered on 23 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?