Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
46 views

Hi,

I have problem RadGrid Templated items as following:

 


As known Telerik provides ability to use templated Edit Form to insert/ edit data, problem we are facing is adding new record from the Grid edit form opened via add new record link that opens the template form, all entered data inside the template controls inside template form will be lost if user pressed any action button such edit button for another record (GridItem) or press again on add new record link that opens the templated form

 

I need to preserve any entered data inside templated control at the runtime regardless to another action being done to the same RadGrid.

 


please refer to this video to view the scenario

http://screencast.com/t/kfIBbdC7EyGm

any help,

Princy
Top achievements
Rank 2
 answered on 06 Oct 2010
1 answer
85 views
I am encountering a strange behavior where after a bunch of AJAX requests, textboxes stop accepting input. They are not inactive and it is essentially random, eventually if I hit enough postback areas on the page, they accept input again. Any suggestions on how to debug this or has anyone seen this before?

Thanks,
Reuven
Dimo
Telerik team
 answered on 06 Oct 2010
2 answers
79 views
Hi

There are two windows on a page,

The first loads a page containing a flash video, and shows scrollbar
vertically, as required by the content which exceeds the specified window height

The second loads page containing a text listing from a database, which exceeds the height of the
window but does NOT make scrollbars to appear.
<telerik:RadWindow ID="RadWindow1" runat="server" Modal="True" 
                    NavigateUrl="windows/partnerships.aspx" OpenerElementID="divPartnerships" 
                    Animation="Fade" Behaviors="Close,Move" Skin="Black" 
                    VisibleStatusbar="False" Height="750px" Width="850px" OnClientClose="OnClientClose">
                </telerik:RadWindow>
                  
                <telerik:RadWindow ID="RadWindow3" runat="server" 
                    NavigateUrl="windows/careers.aspx" Skin="Black" Animation="Fade" 
                Modal="True" width="530px" height="300px" OpenerElementID="divCareers" 
                    Behaviors="Close,Move,Resize" VisibleStatusbar="False" ShowContentDuringLoad="False">
                </telerik:RadWindow>
There is nothing in code behind to prevent scrollbars so I am at a loss as to how to fix it!

Please help!

Thanks

Clive
P.S   Q2 2010 running on IIS6 with Asp.Net 4.0

Clive Hoggar
Top achievements
Rank 1
 answered on 06 Oct 2010
1 answer
72 views
Hello,

I've tried searching for this all over the place, and looking through the online documentation, but can't seem to find the right terms to search under.

Basically, we have several pages that use RadEditor windows in side-by-side columns on the page in SharePoint.

On some pages, depending on monitor resolution, the RadEditor window overlaps the right-hand area of the SharePoint page where it covers up the "OK" and "Apply" buttons for the SharePoint part.

Is there a way to "undock" the whole RadEditor window from its location on the page, where it can be dragged around?

And/or is there a way to position the RadEditor in a config file to absolutely position itself over all other page elements and set the x,y coordiates? I ask this, because maybe that would work to keep the RadEditor from overlapping the SharePoint webpart column on the right of the page.

Thanks,
George
Stanimir
Telerik team
 answered on 06 Oct 2010
5 answers
169 views
I have a ComboBox within the PanelBar.  I can populate the ComboBox with a page load call that is located outside the panelbar, but within the bar, I'm not sure how to get the ComboBox to update.  A co-worker suggested adding a RadAjaxManager piece that didn't work either.  Here is what I have so far:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" style="z-index:1; position:absolute; top:2500px;left:10px;">  
      <telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="SingleExpandedItem" Width="740px">  
        <Items> 
            <telerik:RadPanelItem Expanded="True" Text="Step 1: Test" runat="server" Selected="true">   
                <Items> 
                    <telerik:RadPanelItem Value="AccountInformation" runat="server">  
                        <ItemTemplate> 
                            <div style="background-color: #edf9fe">  
          
        <asp:Label ID="Label12" runat="server" Text="Project Search" style="width: 137px; font-weight: 700;"></asp:Label><br /> 
         
        <asp:Label ID="Label9" runat="server" Text="Project Name:" style="width: 113px; text-align: right;"></asp:Label><br /> 
            
        <telerik:RadComboBox ID="projectNameRadComboBox" runat="server" AutoPostBack="true"  ZIndex="99999" Width="250px"></telerik:RadComboBox><br /> 
        <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" > 
            <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                            <UpdatedControls> 
                                <telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" /> 
                                          
                                <telerik:AjaxUpdatedControl ControlID="projectNameRadComboBox" /> 
                            </UpdatedControls> 
                     </telerik:AjaxSetting> 
            </AjaxSettings> 
         </telerik:RadAjaxManager> 
        <asp:Label ID="Label2" runat="server" Text="Identifier:"></asp:Label><br /> 
           
        <asp:TextBox ID="identifierTextBox" runat="server" Width="250px"></asp:TextBox><br /> 
          
        <asp:Label ID="Label13" runat="server" Text="Project Group:" style="text-align: right;"></asp:Label><br /> 
            
        <telerik:RadComboBox ID="projectGroupRadComboBox" runat="server"  ZIndex="99999" Width="250px"></telerik:RadComboBox><br /> 
          
        <asp:Button ID="projectSearchButton" runat="server" Text="Search" SkinID="smallGreenButton" Width="50px" onclick="projectSearchButton_Click" /><br /> 
                                <br /> 
                                <br /> 
                                <br /> 
    
 
                            </div> 
                        </ItemTemplate> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 

This is my code behind piece that works for populating outside of the PanelBar:
        IQueryable allProjectName = Project.GetAllBindings();  
        this.projectNameRadComboBox.DataSource = allProjectName;  
        this.projectNameRadComboBox.DataValueField = "ID";  
        this.projectNameRadComboBox.DataTextField = "Name";  
        this.projectNameRadComboBox.DataBind();  
 
        this.projectNameRadComboBox.Filter = RadComboBoxFilter.Contains;  
 
 


I want to understand how the ajax is going to make a call from within the PanelBar for the ComboBox.  Thanks!

wen
Daniel
Top achievements
Rank 1
 answered on 06 Oct 2010
1 answer
131 views
Hi

I have 20-25 comboboxes to be used in my page...

I perform "selectedindexchanged event" to fill a textbox with selected value...

the whole page refreshes..& focus is moved to the first half of the page ,where my combo is sitting in the next half & I havw to scroll down to see where it is..

How can I resolve this...

my aspx
~~~~~~
 a.<telerik:RadComboBox ID="rcb_M1020_1" runat="server"
                                 DataTextField="Descriptionwithcode" DataValueField="CODE"
                                EnableLoadOnDemand="True" Width="150px" Height="150px"
                                AllowCustomText="true"
                                LoadingMessage="loading..you can enter the text in the box"
                                EmptyMessage="Type your Diagnosis here.."
                                HighlightTemplatedItems="true"
                                AutoPostBack="true" CausesValidation="false"
                                ShowMoreResultsBox="true"  Skin="Web20"
                                 onitemsrequested="rcb_M1020_1_ItemsRequested" onselectedindexchanged="rcb_M1020_1_SelectedIndexChanged">
                                    </telerik:RadComboBox>

aspx.cs
~~~~~~~~
protected void rcb_M1020_1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {
            IOASISFormController controllerobj = new OASISFormController();

            if (rcb_M1020_1 != null)
            {
                if (!string.IsNullOrEmpty(e.Text))
                {
                    rcb_M1020_1.DataSource = controllerobj.ListDiagnosticsData(e.Text.Trim());
                    rcb_M1020_1.DataBind();
                }
               
            }
        }

        protected void rcb_M1020_1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            txt_M1020_2.Text = rcb_M1020_1.SelectedValue;
          
        }


Please suggest a solution
Shinu
Top achievements
Rank 2
 answered on 06 Oct 2010
1 answer
94 views
hi there,

I'm trying to model a RadGrid according to one of demo examples given below.
http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/dynamicinputfiltersettings/defaultcs.aspx?product=input.

it's impressive that I can open up mutiple rows for editing in this example. But while playing with it, I've noticed that
1) if you open up multiple rows for editing and
2) change some data on all of the editable rows,
3) then hit update on one of the changed rows.

The other rows open for editing stay open but loose the change that i made before hitting update on the previous row.

My question is, is there way we can hold the changes made to one row while updating the other?

Thanks
Mahee






Tsvetina
Telerik team
 answered on 06 Oct 2010
3 answers
102 views
Can anyone provide a working example of dynamically creating the "ItemClick" event handler for the RadMenuEventHandler. I just cannot get it to work. I am dynamically creating a RadMenu from a SQL data source, which works just fine, and then I am trying to create the "ItemClick" event handler. I can dynamically create a .NET control such as a button and wire the event handler with no issue but just cannot get the RadMenu to wire up. Here is my current code.

Code page: (aspx page follows)

Imports System.Web
Imports Telerik.Web.UI

Partial Class MARS3MainMenu

Inherits System.Web.UI.Page

     Dim security As New Security
     Dim sess As New GlobalProperties
     Dim da As New DataAccess

     Dim menuInfo As New DataTable
     Dim securityLoginRole As String = String.Empty

    Dim WithEvents marsMenu As New RadMenu

     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

          If Not Page.IsPostBack Then

               Dim computerName As String = Environment.MachineName.ToString()

               ' =================================================================
               ' IMPORTANT
               ' In order for the System.Web.HttpContext.Current.User.Identity.Name.ToString()
               ' to pull the loggin name of the user the following needs to be changed on the
               ' IIS server running the website:
               ' Under Authentication 'Anonymous Authentication must be disabled and
               '              'Windows Authentication must be enabled.
               ' If this is not done, no user information will be returned.
               Dim userName As String
               userName = System.Web.HttpContext.Current.User.Identity.Name.ToString()
               ' =================================================================

               Dim userLength As Int32 = userName.Length
               Dim userIndexOf As Int32 = userName.IndexOf(Chr(92)) + 1

               userName = userName.Substring(userIndexOf, userLength - userIndexOf)

 

               Dim userInfo As New DataTable()

               userInfo = security.GetMARSUserInformation(userName)

               Dim userInformation As String = userInfo.Rows(0)("FullName")
              securityLoginRole = userInfo.Rows(0)("MARSGroupName")

               If String.IsNullOrEmpty(userInformation) Or String.IsNullOrEmpty(securityLoginRole) Then

                    Response.Redirect("MARS3LoginErrorPage.aspx")

               End If

               sess.UserLoggedIn = True
               sess.UserLogin = userName
               sess.UserName = userInfo.Rows(0)("FullName")
               sess.UserID = userInfo.Rows(0)("SalesID")
               sess.UserRole = securityLoginRole

               Master.MenuButtonVisible = False
               Master.LabelReportBeingRun = "Main Menu"

            ' sess.UserRole
               PopulateMenu()

          End If

     End Sub

     Private Sub PopulateMenu()

          AddHandler marsMenu.ItemClick, AddressOf marsMenu_ItemClick

          marsMenu.Flow = ItemFlow.Vertical
          menuInfo = da.BuildMenuInformation()

 

          For Each row As DataRow In menuInfo.Rows

               Dim hierarchyLevel As Int16 = Convert.ToInt16(row("HierarchyLevel"))
               Dim item As RadMenuItem

               Select Case hierarchyLevel

                    Case 1

                         If row(securityLoginRole) = "Y" Then

                              Dim level1 As RadMenuItem = New RadMenuItem(row("ItemName").ToString())
                              level1.Value = row("ItemID").ToString()
                              marsMenu.Items.Add(level1)

                         End If

                    Case 2

                         If row(securityLoginRole) = "Y" Then

                              Dim level2 As RadMenuItem = New RadMenuItem(row("ItemName").ToString())
                              level2.Value = row("ItemID").ToString()

                              item = marsMenu.FindItemByValue(row("ParentLevel").ToString())
                              item.Items.Add(level2)

                         End If

                    Case 3

                         If row(securityLoginRole) = "Y" Then

                              Dim level3 As RadMenuItem = New RadMenuItem(row("ItemName").ToString())
                              level3.Value = row("ItemID").ToString()

                              item = marsMenu.FindItemByValue(row("ParentLevel").ToString())
                              item.Items.Add(level3)

                         End If

               End Select

          Next

          Panel1.Controls.Add(marsMenu)

     End Sub

    Protected Sub marsMenu_ItemClick(ByVal sender As Object, ByVal e As RadMenuEventArgs) Handles marsMenu.ItemClick

          iFrame1.Attributes("src") = "SearchOptions.aspx"

     End Sub

End Class

ASPX Page:

<%@ Page Language="VB" MasterPageFile="~/MasterPageReports.master" AutoEventWireup="true"
    Inherits="MARS3_VBNET.MARS3MainMenu" Title="MARS Main Menu" CodeBehind="MARS3MainMenu.aspx.vb" %>

<%@ Register Src="CustomControls/ReportOptions.ascx" TagName="ReportOptions" TagPrefix="uc1" %>
<%@ Register Src="CustomControls/ReportSearchCriteria.ascx" TagName="ReportSearchCriteria"
    TagPrefix="uc2" %>
<%@ MasterType VirtualPath="~/MasterPageReports.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style6
        {
            width: 203px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellpadding="3px">
                <tr>
                    <td>
                        <asp:Label ID="lblReportingOptions" runat="server" Text="Report Menu" Width="124px"
                            Font-Underline="true"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <asp:Panel ID="Panel1" runat="server">
                        </asp:Panel>
                       
                    </td>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="Microage" Width="150" ForeColor="White" ></asp:Label>
                    </td>
                    <td>
                        <iframe id="iFrame1" width="755" height="490" runat="server" ></iframe>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="MicroAge" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="Submit" CssClass="btnGradientRed" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
</asp:Content>

Veronica
Telerik team
 answered on 06 Oct 2010
2 answers
94 views
For a project, I need to color code the events based on resources.  I set the cssClass for the events that needed to be changed.  This worked great for regular events, but did not work at all for recurring events.  Any thoughts?

David
David
Top achievements
Rank 1
 answered on 06 Oct 2010
3 answers
107 views
I would like to display the grids header context menu from the commanditem above the grid.  Is this possible?
Tsvetina
Telerik team
 answered on 06 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?