Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
246 views
I'm using the radcombox in one of my form templates with the EnableLoadOnDemand turned on. I was wondering how do you handle the situation when in edit mode and you need to select an item for an existing record? For example, I use a StatusID for the data value and the StatusNm for the text display (which is a concatenation of two columns from the table). I saw an example where you dont use ID's, but rather the name for the value and text and this is not an option in our real world.

Thanks
Simon
Telerik team
 answered on 27 Aug 2010
1 answer
133 views
I have a page which is based on a master page.  On this page I have placed a panel bar.  Inside a panel,  I have a button.  After going through the forums, I have found that

 

 

 

Private Sub RadPanelBar1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar1.ItemClick

 

 

Dim ItemClicked As Telerik.Web.UI.RadPanelItem = e.Item

 

Response.Write(

"Server event raised -- you clicked: " + ItemClicked.Text)

 

 

End Sub

 

Should fire when the button is clicked (unless I misunderstood something).  It doesn't; it reloads the masterpage. Please help as I am lost as to why I cannot capture this.  Also Note that I want to do everything server side, unless impossible to do so, which is the exception in my application.  Here is some simplified code to Illustrate my issue:

 

 

 

 

 

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Pages/WorkPlanProject.Master" CodeBehind="TestButtonInPanel.aspx.vb" Inherits="WQS_Presentation.TestButtonInPanel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server">
        <Items>
            <telerik:RadPanelItem runat="server" Text="Root">
            <ItemTemplate><asp:Button ID="button" runat="server" /></ItemTemplate>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
</asp:Content>

And the code behind:

Public Partial Class TestButtonInPanel
    Inherits System.Web.UI.Page
  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  
    End Sub
  
    Private Sub RadPanelBar1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar1.ItemClick
        Dim ItemClicked As Telerik.Web.UI.RadPanelItem = e.Item
        Response.Write("Server event raised -- you clicked: " + ItemClicked.Text)
    End Sub
End Class

This code never fires - the master page is reloading when the button gets clicked.  What is the correct way to do this (serverside)?

 

Yana
Telerik team
 answered on 27 Aug 2010
6 answers
388 views
Is there a property I can be set to allow embedding Youtube videos in the Editor? With all the Youtube videos today clients want an easy way to embed videos into the editor, much like WordPress allows. What is Telerik's solution for this?

Thanks!

John
John S
Top achievements
Rank 1
 answered on 27 Aug 2010
1 answer
106 views
Hello,
I want to have a asp upload control in radgrid view, just a browse button and textbox and whenever user click on this browse button he will select a file and file will get upload on server with progress bar.
on what time i will be able to get the what file user has selected  and the path of selection
Please help ASAP.

Thanks & Regards.
Manoj Gupta
Shinu
Top achievements
Rank 2
 answered on 27 Aug 2010
7 answers
114 views
I'm having a RadGrid that has some columes that are converted to templace columns, and where I have replaced the textboxes with RadEditor-controls. The RadEditor works fine but as soon as I replace any of the other standard ASP.NET controls  (textboxes, labels etc) with ANY of the RAD controls, the layout of the RadEditor breakes completely in Internet Explorer (i'm running version 8). As soon as I remove the other RAD controls (Date-picker, Date-textbox etc) the RadEditor renders fine again. In Opera, FireFox etc. it works fine.

What can i do to fix this? Any ideas?

Rumen
Telerik team
 answered on 27 Aug 2010
1 answer
71 views
Hi,

I am getting strange behaviour with RadEditor. Please check attached images for the different behaviour. It is intermittent behaviour. From my observattion it occurs when you keep site open for long time & try to access the page gain. We need to resolve this issue immediately


Thanks
Rumen
Telerik team
 answered on 27 Aug 2010
1 answer
162 views
Hi

i am facing issue in implementing the Radpanel. I want below things on my page
Put all the search criteria including the “Search button into a “RadPanel”.  Make sure the RadPanel is minimized the first time the page loads.  If they change the search criteria and click “Search”, when the page reloads, then display the RadPanel as maximized.
See below code and screenshort.
i want my first div in 1 panel.
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Common/MMMasterPage.Master" CodeBehind="MMTaskNotesHistory.aspx.vb" Inherits="CSC.CorporateAdvisor.Web.MMTaskNotesHistory1" %>
<%@ MasterType VirtualPath="~/Common/MMMasterPage.Master" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="extJSPlaceholder" runat="server">
<script src="../InvoiceApproval.js" type="text/javascript"></script>
<script type="text/javascript" >
    function Valueofpriority1(item) {
       var combo = $find("<%= ddlPriorty.ClientID %>");
       var getvalue = item.get_value();
       document.all.<%= ddlprio.ClientID %>.value =getvalue;
    }
function OnClientSelectedIndexChanged1(item) {
      var Getvaluecat = item.get_value();
      document.all.<%=valueddlCategory.ClientID%>.value = Getvaluecat;
    }     
function handleViewNoteClicknew()
{
    var location = "../RespondToTaskNotes.aspx";
    var results = window.showModalDialog(
                location,
                null,
                "dialogWidth:700px; "
                + " dialogHeight:580px; "
                + " edge: Raised; "
                + " center: Yes; "
                + " help: No; "
                + " resizable: Yes; "
                + " scroll: No; "
                + " status: No;"
                );
}
function handleEmailNoteClicknew() {
    var location = "./MMEmailForTaskAndNotes.aspx";
    var results = window.showModalDialog(
                location,
                null,
                "dialogWidth:700px; "
                + " dialogHeight:580px; "
                + " edge: Raised; "
                + " center: Yes; "
                + " help: No; "
                + " resizable: Yes; "
                + " scroll: No; "
                + " status: No;"
                );
}
function showNoteandTask() {
    var oWnd = $find("<%= RadWindow2.ClientID %>");
    oWnd.show();
    oWnd.setSize(750,600);
    oWnd.add_close(OnClientClose);
}
function OnClientClose(oWnd, eventArgs) {
 
    oWnd.remove_close(OnClientClose);
}
//Function for the Radcontext menu
function RowContextMenu(sender, eventArgs) {
    var menu = $find("<%= RadMenu1.ClientID %>");
    var evt = eventArgs.get_domEvent();
 
    if (evt.target.tagName == "INPUT" || evt.target.tagName == "A") {
        return;
    }
 
    var index = eventArgs.get_itemIndexHierarchical();
    document.getElementById("radGridClickedRowIndex").value = index;
 
    sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);
 
    menu.show(evt);
 
    evt.cancelBubble = true;
    evt.returnValue = false;
 
    if (evt.stopPropagation) {
        evt.stopPropagation();
        evt.preventDefault();
    }
}
//Function Ends
 
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pageDataPlaceHolder" runat="server">
<div class="tabBottom">
<Windows>
<telerik:RadWindow ID="RadWindow2" Title="Add Task/Notes"  Modal="true" Behavior="Close,Move" Mode="Modal" NavigateUrl="MMTaskNotes.aspx"
                 runat="server" ReloadOnShow="true">
  </telerik:RadWindow>
  </Windows>
<telerik:RadPanelBar  ID="RadPanelBar1"  runat="server"  Skin="Telerik"
<Items >
 <telerik:RadPanelItem       Text="Your Data"       runat="server">
     <ItemTemplate>    
   </ItemTemplate>
   </telerik:RadPanelItem>
   </Items>
   <ItemTemplate >
   <div>
    <table>
     <tr>
      <td>Priorty</td>
      <td>
          <input id="ddlprio" type="hidden" runat="server"/>
          <telerik:RadComboBox ID="ddlPriorty" Runat="server" OnClientSelectedIndexChanged="Valueofpriority1">
          </telerik:RadComboBox>
      </td>
      <td>
         <asp:CheckBox ID="chkAssignedNote" runat="server" Text="My Assigned Notes/Tasks:" />
      </td>
    </tr>
    <tr>
        <td>Category:</td>
        <td>
            <input id="valueddlCategory" type="hidden" runat="server" />
            <telerik:RadComboBox ID="ddlCategory" Runat="server" Width="200" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged1">
            </telerik:RadComboBox>
        </td>
        <td
           <asp:CheckBox ID="chkPrivate" runat="server" Text="Private"/>
        </td>
        <td>
          <asp:Button ID="btnSearch" Text="Search" runat="server" />
        </td>
     </tr>
    </table>
   </div>
   </ItemTemplate>
 </telerik:RadPanelBar>
 
 <div>  
          <%--<telerik:RadGrid ID="MatterHistorydatagrid" runat="server" GridLines="None" CssClass="RadGrid"
                ShowGroupPanel="True"
                AutoGenerateColumns="False" ShowStatusBar="True" Height="350px" Width="99%">--%>
            <asp:HiddenField ID="hidProcessingFees" runat="server" value=""/>      
            <telerik:RadGrid ID="MMtaskNoteHistoryDataGrid" runat="server" CssClass="RadGrid" GridLines="None"
                    AllowPaging="true" AllowSorting="true" AutoGenerateColumns="False" enablePaging="True"
                    ShowStatusBar="true" HorizontalAlign="NotSet" Height="350px" Width="99%">
                     <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                <MasterTableView ShowHeadersWhenNoRecords="false" GridLines="None" PageSize="15">
                        <Columns>
                            <%--<telerik:GridTemplateColumn UniqueName="select">
                                <ItemTemplate>
                                    <asp:RadioButton ID="rdSelect" runat="server" AutoPostBack="True" />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    Select
                                </HeaderTemplate>
                                <HeaderStyle Width="5%"></HeaderStyle>
                              </telerik:GridTemplateColumn>--%>
                            <telerik:GridBoundColumn UniqueName="CREATED_DTM" HeaderText="Created Date" DataField="CREATED_DTM" DataFormatString="{0:d}">
                                    <HeaderStyle Width="10%"></HeaderStyle>
                                </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="AUTHOR_NAME" HeaderText="Author" DataField="AUTHOR_NAME" DataFormatString="{0:C}">
                                <HeaderStyle Width="20%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="SUPPORT_DATA_NAME" HeaderText="Type" DataField="SUPPORT_DATA_NAME" DataFormatString="{0:C}">
                                <HeaderStyle Width="10%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="START_DATE" HeaderText="Start Date" DataField="START_DATE" DataFormatString="{0:d}">
                                    <HeaderStyle Width="10%"></HeaderStyle>
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="DUE_DATE" HeaderText="Due Date" DataField="DUE_DATE" DataFormatString="{0:d}">
                                    <HeaderStyle Width="10%"></HeaderStyle>
                                </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="Text" HeaderText="Text" DataField="Text" DataFormatString="{0:P}">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                       </Columns>
                    </MasterTableView>
                    <ClientSettings>
                            <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
                            <Selecting AllowRowSelect="true" />
                            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                     </ClientSettings>       
                </telerik:RadGrid>
                <input type="hidden" id="radGridClickedRowIndex" name="radGridClickedRowIndex" />
                <telerik:RadContextMenu ID="RadMenu1" runat="server"  OnItemClick="RadMenu1_ItemClick" EnableRoundedCorners="true" EnableShadows="true">
                    <Items>
                        <telerik:RadMenuItem Text="Respond" />
                        <telerik:RadMenuItem Text="Email" />
                        <telerik:RadMenuItem Text="Print" />
                        <telerik:RadMenuItem Text="View" />
                    </Items>
                </telerik:RadContextMenu>
  </div>
 <div>
      <%--<table>
            <asp:Button ID="btnRespond" runat="server" Text="Respond" Width="125px" OnClientClick="handleViewNoteClicknew()"/>   
            <asp:Button ID="btnEmail" runat="server" Text="Email" Width="94px" OnClientClick="handleEmailNoteClicknew()"/>   
            <asp:Button  ID="btnprint" runat="server" Text="Print" Width="90px" />   
            <asp:Button ID="btnView" runat="server" Text="View" Width="89px" />   
            <asp:Button ID="btnclose" runat="server" Text="Close" style="margin-left: 0px"
                    Width="81px" />
       </table>--%>
 
</div>
</div>
</asp:Content>
Yana
Telerik team
 answered on 27 Aug 2010
1 answer
80 views
Hi,
This is really odd. I have a confirm window I call and it works great on my development machine. However, when I deploy neither the ok or cancel buttons close the confirm dialog. If I click on the 'X' it closes. I have no idea why this could be occurring. Can anyone help?
Thanks ... Ed
Georgi Tunev
Telerik team
 answered on 27 Aug 2010
1 answer
339 views
This is the specific error that we have when attempting to:

1.) Create the form in the page dynamically (the page has grid and the grid has add button event)
2.) When the add button is clicked, a class that dynamically creates the edit form (RadWindow) is called. It creates the controls dynamically and put them in a formview.
3.) Some controls are dropdowns, the problem is when a combo box is clicked this error pops up.

Could it be that the ComboBox fails to address the ajax events correctly?

Any thoughts?

Note: I've tried to do the same using a RadWindow manually created on the page and it runs.

Forms are build OnInit Event and RadAjaxManager are attach on PageLoad.

Thanks,
Edward
Georgi Tunev
Telerik team
 answered on 27 Aug 2010
1 answer
172 views
Hi, I have a RadGrid on a webpage that has a few template columns where the user can click on a HTML LinkButton and open up a RadWindow which shows some more data. Everything is working and the Grid is ajaxed using a panel and manager. My problem is that the grid is databound programatically on button click and when one of the LinkButtons are pressed to open the RadWindow, the page renders the window which takes a split second to load, but then the grid does an entire databind which takes up to 5 seconds. I am using a loading panel also, so it is an inconvenience seeing the loading panel popup each time a radwindow is opened from the grid and the grid does a whole bind. The stored procedure is a heavy duty one that takes a few seconds to gather all the data. I would like to remove the bind somehow when an item is clicked on in the RadGrid.

Thanks in advanced!
Shinu
Top achievements
Rank 2
 answered on 27 Aug 2010
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?