Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
How do I get an asp:label field that is contained within a GridTemplateColumn and bound to an underlying data field to appear as an editable field on an EditForm that is displayed by clicking Edit in a GridEditCommandColumn?
Shinu
Top achievements
Rank 2
 answered on 26 Oct 2012
3 answers
185 views
Heey guys a little question is it possible to set a title on a grid and how  ?


Thanks for answer ! 
Shinu
Top achievements
Rank 2
 answered on 26 Oct 2012
4 answers
57 views
I'm sure there is a discussion on this somewhere, but why is it after the Q3 2012 release the font sizing was changed to a size only my grandmother could love?  I mean since when is a 16 pt font considered the baseline normal? Now I find myself having to scale my browser to 75% just to get some semblence of usability when viewing the demo site.
Andrew
Top achievements
Rank 1
 answered on 26 Oct 2012
2 answers
118 views
As with many other people, I upgraded to your new release this weekend.  I have managed to get through most of the issues by reading the forums.  However, I have one issue that I haven't seen yet.

I created a new RAD c# website (.aspx) in VS2012.  When I have the display file open and try to drag and drop controls on to the page, any Microsoft control that I grab, drag, and drop on to the page work fine.  I tried many.  No problems.

When I grab any Telerik control (makes no difference which one or from which group), I drop the control on to the page and nothing happens.  No control is created.

If I manually create controls (such as copying ones from your demo site and pasting them into the page) the controls work just fine.  It's just that no Telerik controls from the Toolbox are created.

Any workarounds available?

Lynn
Lynn
Top achievements
Rank 2
 answered on 26 Oct 2012
3 answers
199 views
How can I disable the appointment textbox that pops up when I double click a cell in the scheduler?
Rajendra
Top achievements
Rank 1
 answered on 25 Oct 2012
3 answers
272 views
Hi,
I know I have the bad habit to put myself in complicated situations...., but it is not my fault, blame my customers ;-)

The Situation is as follows:
I have a Content Page which has as Master Page. Inside the content Page I load several User Controls. From one of the User Controls, which contains a RadGrid, I open a PopUp to edit the detail of the Grid. The PopUp contains a Button to save the detail and after saving I call a javascript function inside the Content Page (...actually inside the User Control) that triggers a AjaxCall to Rebind the Grid.
Everything works fine....only the first Time !!! 
After that the debugger of Firefox tells me that the RadAjax Manager does not exists. I have to reload the Content Page (not even the User Control) to have the Rebind working again.
I'm pasting here some code.

The Master Page has nothing special inside it besides a
<asp:ScriptManager runat="server" ID="ScriptManager"></asp:ScriptManager>
Beside that only HTML and CSS.


The Content Page:
<%@ Page Title="" Language="VB" MasterPageFile="~/App_Master/SystemSetup/SystemSetup_base.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="SystemSetup_Default" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_Top" Runat="Server">
    <telerik:RadToolBar ID="RadToolBar1" runat="server" Width="100%" Height="26px">
        <Items>
            <telerik:RadToolBarButton ImageUrl="Resources/Images/ico_Add_16.png"></telerik:RadToolBarButton>
            <telerik:RadToolBarButton Text="TEXT"></telerik:RadToolBarButton>
        </Items>
    </telerik:RadToolBar>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Left" Runat="Server">
    <asp:button runat="server" ID="B_Eng" Text="ENG" Visible="false" />
    <asp:button runat="server" ID="B_Ita" Text="ITA" Visible="false" />
        <telerik:RadPanelBar ID="RadPanelBar" Runat="server" Width="100%" AllowCollapseAllItems="True" PersistStateInCookie="True">
            <Items>
                <telerik:RadPanelItem runat="server" Text='<%$ Resources:Menu_Item_1 %>' PostBack="false" Expanded="true" >
                    <Items>
                        <telerik:RadPanelItem runat="server" Value="~/SystemSetup/Admin/Setup/CompanyList.ascx" Text='<%$ Resources:Menu_Item_1_1 %>' ImageUrl="~/SystemSetup/Resources/Images/ico_Company_16.png" Selected="true"></telerik:RadPanelItem>
                        <telerik:RadPanelItem runat="server" Value="~/SystemSetup/Admin/Setup/OperatorList.ascx" Text='<%$ Resources:Menu_Item_1_2 %>' ImageUrl="~/SystemSetup/Resources/Images/ico_Users_16.png"></telerik:RadPanelItem>
                        <telerik:RadPanelItem runat="server" Value="~/SystemSetup/Admin/Setup/RoleList.ascx" Text='<%$ Resources:Menu_Item_1_3 %>' ImageUrl="~/SystemSetup/Resources/Images/ico_Role_16.png"></telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
                 
            </Items>
             
        </telerik:RadPanelBar>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Right" Runat="Server">
    <asp:Panel runat="server" ID="P_Body" Width="100%" Height="100%"></asp:Panel>
</asp:Content>

...and the code to load the controls.

Partial Class SystemSetup_Default
    Inherits System.Web.UI.Page
 
    Private Const CurrentControlKey As String = "CurrentControlKey"
 
    Private Property CurrentControl() As String
        Get
            Return IIf(ViewState(CurrentControlKey) = Nothing, "", ViewState(CurrentControlKey).ToString)
        End Get
        Set(ByVal value As String)
            ViewState(CurrentControlKey) = value
        End Set
    End Property
 
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        ' Controlla la versioen del Browser e caccai via se IE inferiore a 8
        If Request.Browser.Browser = "IE" AndAlso IsNumeric(Request.Browser.MajorVersion) AndAlso CInt(Request.Browser.MajorVersion) < 8 Then
 
            Dim Script As String = "alert('Plane è supportato solo da IE8 o versioni successive, Firefox e Chrome');"
            Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "Alert", Script, True)
        End If
 
        If Not IsPostBack Then
 
            CurrentControl = RadPanelBar.SelectedItem.Value
 
        End If
 
        Dim isNewControl As Boolean = Not CurrentControl.Equals(RadPanelBar.SelectedItem.Value)
        If isNewControl Then
            CurrentControl = RadPanelBar.SelectedItem.Value
        Else
            LoadUserControl(P_Body, CurrentControl, Not IsPostBack)
        End If
 
    End Sub
 
    Private Function LoadUserControl(ByVal parentControl As Control, ByVal newControlPath As String, Optional ByVal isFirstLoad As Boolean = False) As Control
 
 
        Dim control As Control = Page.LoadControl(newControlPath)
        control.ID = newControlPath.ToString.Replace("/", "_").Replace("~", "_").Replace(".", "_")
 
        'AddHandler TryCast(control, IASControl).GenericEvent, AddressOf Me.HandleGenericEvent
 
        If isFirstLoad Then
            control.EnableViewState = False
        End If
 
        parentControl.Controls.Clear()
        parentControl.Controls.Add(control)
 
        If isFirstLoad Then
            control.EnableViewState = True
            'TryCast(control, IASControl).FirstLoad(Nothing)
        End If
 
        Return control
 
 
    End Function
 
    Protected Sub RadPanelBar_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar.ItemClick
        If e.Item.Level = 1 Then
            LoadUserControl(P_Body, e.Item.Value, True)
        End If
 
 
    End Sub
 
End Class


The User Control.
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="CompanyList.ascx.vb" Inherits="SystemSetup_UserControls_Setup_CompanyList" %>
<script language="javascript" type="text/javascript">
    function RowDbClick(sender, eventArgs) {
        var IdCompany = sender.get_masterTableView().get_dataItems()[eventArgs.get_itemIndexHierarchical()].getDataKeyValue("IdCompany");
        var W = window.open('Admin/Setup/p_Company.aspx?IdCompany=' + IdCompany, '', 'width=800px,height=550px,resizable=1');
    }
 
     
    function Rebind(eventArgs) {
        var AjaxManager = $find("<%= RadAjaxManager.ClientID %>");
        AjaxManager.ajaxRequest('Rebind' + '|' + eventArgs);
         
    }
</script>
 
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid" UpdatePanelHeight="100%" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<telerik:RadSplitter runat="server" Width="100%" Height="100%" Orientation="Horizontal">
     
    <telerik:RadPane runat="server" Height="32px">
     
        <telerik:RadToolBar ID="RadToolBar1" runat="server" Height="26px" Width="100%">
            <Items>
                <telerik:RadToolBarButton Text="::" Enabled="false" ></telerik:RadToolBarButton>
                <telerik:RadToolBarButton Text='<%$ Resources:RTB_New %>' PostBack="false" NavigateUrl="javascript:var W=window.open('UserControls/Setup/p_newCompany.aspx','','width=800px,height=550px')" ImageUrl="../../Resources/Images/ico_New_16.png"></telerik:RadToolBarButton>
                <telerik:RadToolBarButton Text='<%$ Resources:RTB_Delete %>' ImageUrl="../../Resources/Images/ico_Garbage_16.png"></telerik:RadToolBarButton>
            </Items>
        </telerik:RadToolBar>   
    </telerik:RadPane>
 
    <telerik:RadPane ID="RadPane1" runat="server" Height="100%">
        <telerik:radgrid runat="server" ID="RadGrid" Width="100%" Height="100%" AutoGenerateColumns="false" style="border:0;outline:none;" AllowMultiRowSelection="true">
  
            <ClientSettings>
                <ClientEvents OnRowDblClick="RowDbClick" />
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="true" SaveScrollPosition="true" ScrollHeight="100%" UseStaticHeaders="true" />
            </ClientSettings>
          
            <MasterTableView style="border:0;outline:none;" DataKeyNames="IdCompany" ClientDataKeyNames="IdCompany">
                <Columns>
                     
                    <telerik:GridTemplateColumn>
                        <ItemTemplate>
                            <asp:Image runat="server" ID="I_OnOff" ImageUrl='<%# IIF(Eval("Active") = true,"~/SystemSetup/Resources/Images/ico_On_16.png","~/SystemSetup/Resources/Images/ico_Off_16.png") %>' />
                        </ItemTemplate>
                         
                        <HeaderStyle Width="24px" />
                        <ItemStyle Width="24px" HorizontalAlign="Center" CssClass="AbsLeft"  />
                    </telerik:GridTemplateColumn>
                     
                    <telerik:GridBoundColumn DataField="DescrShort" HeaderText="Company">
                        <HeaderStyle HorizontalAlign="Center"/>
                         
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
             
        </telerik:radgrid>   
    </telerik:RadPane>
</telerik:RadSplitter>

The Rebind javascript is to Rebind the RadGrid. The code behind just says:

Protected Sub RadAjaxManager_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager.AjaxRequest
       Select Case e.Argument.Split("|")(1)
           Case "RadGrid"
               RadGrid.Rebind()
       End Select
   End Sub


The PopUp that is opened by the User Control:
<%@ Page Title="" Language="VB" MasterPageFile="~/App_Master/SystemSetup/PopUp_1.master" AutoEventWireup="false" CodeFile="p_Company.aspx.vb" Inherits="SystemSetup_UserControls_Setup_p_Company" %>
 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Top" Runat="Server">
    <telerik:RadToolBar ID="RadToolBar" runat="server" Width="100%" Height="26px">
        <Items>
            <telerik:RadToolBarButton Value="Save" ImageUrl="../../Resources/Images/ico_Save_16.png" Text='<%$ Resources:WebResources, Save_Text %>'></telerik:RadToolBarButton>
        </Items>
    </telerik:RadToolBar>
</asp:Content>
 
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Left" Runat="Server">
    <telerik:RadPanelBar ID="RadPanelBar" Runat="server" Width="100%" AllowCollapseAllItems="True" PersistStateInCookie="True">
        <Items>
            <telerik:RadPanelItem runat="server" Text='<%$ Resources:Menu_Item_1 %>' PostBack="false" Expanded="true">
                <Items>
                    <telerik:RadPanelItem runat="server" Value="~/SystemSetup/UserControls/Setup/CompanyList.ascx" Text='<%$ Resources:Menu_Item_1_1 %>' ImageUrl="~/SystemSetup/Resources/Images/ico_Company_16.png" Selected="true"></telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
</asp:Content>
 
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder_Right" Runat="Server">
<div style="position:absolute;top:0px;left:0px;right:0px;height:26px">
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage" Width="100%" Height="26px" SelectedIndex="0">
        <Tabs>
            <telerik:RadTab Text="Generale" PageViewID="PV_General"></telerik:RadTab>
        </Tabs>
     </telerik:RadTabStrip>
</div>
<div style="position:absolute;top:26px;left:0px;right:0px;bottom:0px;">
    <telerik:RadMultiPage runat="server" ID="RadMultiPage" Width="100%" Height="100%" SelectedIndex="0" BackColor="White">
                                     
        <telerik:RadPageView runat="server" ID="PV_General" Width="100%">
             
            <div class="RadPageView_Form">
                <div style="width:100%">     
                    <table cellpadding="0px" cellspacing="0px" border="0px" style="width:100%;">
                        <tr>
                            <td class="Label">Attiva:</td>
                            <td class="Data"><asp:CheckBox runat="server" ID="CK_Active" /></td>
                            <td class="Label"></td>
                            <td class="Data"><telerik:RadTextBox runat="server" ID="RadTextBox2" Width="96%" DisabledStyle-BorderStyle="None" Enabled="false"></telerik:RadTextBox></td>
                        </tr>
                        <tr>
                            <td class="Label">Nome:</td>
                            <td class="Data"><telerik:RadTextBox runat="server" ID="T_1" Width="96%"></telerik:RadTextBox></td>
                            <td class="Label"></td>
                            <td class="Data"><telerik:RadTextBox runat="server" ID="T_2" Width="96%" DisabledStyle-BorderStyle="None" Enabled="false"></telerik:RadTextBox></td>
                        </tr>
                         
                    </table>
                </div>
                
            </div>
        </telerik:RadPageView>
        
     </telerik:RadMultiPage>
</div>
</asp:Content>

..and the code behind to Update and trigger the Rebind.
Imports System.Data
 
Partial Class SystemSetup_UserControls_Setup_p_Company
    Inherits System.Web.UI.Page
 
    Private IdCompany As Guid = Guid.Empty
 
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Request.QueryString("IdCompany") Is Nothing AndAlso Request.QueryString("IdCompany") <> "" Then
            IdCompany = New Guid(Request.QueryString("IdCompany"))
        End If
 
        If Not IsPostBack Then
            LoadItem()
        End If
    End Sub
 
    Private Sub LoadItem()
        Dim oDaOb As New RC.Protection.Company
        oDaOb.PK.Add("IdCompany", IdCompany)
 
        Dim oCo As DataRow = oDaOb.Get
 
        CK_Active.Checked = oCo("Active")
        T_1.Text = oCo("DescrShort")
    End Sub
 
    Protected Sub RadToolBar_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles RadToolBar.ButtonClick
        Select Case e.Item.Value
            Case "Save"
                If IdCompany <> Guid.Empty Then
                    Dim oDaOb As New RC.Protection.Company
                    Dim oCo As DataRow = oDaOb.newDaObItem
                    oCo("IdCompany") = IdCompany
                    oCo("DescrShort") = T_1.Text
                    oCo("Active") = CK_Active.Checked
 
                    oDaOb.Upd(oCo)
 
                    Rebind()
 
                End If
                 
        End Select
    End Sub
 
    Private Sub Rebind()
        Dim Script As String = "window.opener.Rebind('RadGrid');"
        Page.ClientScript.RegisterClientScriptBlock(Me.GetType, "Rebind", Script, True)
    End Sub
 
     
End Class

So, to make a long story short, First Rebind ....works great...and then non more Rebind till Content Page full reload.

Any ideas ?
Thanks much as always.

Lorenzo
Martin Roussel
Top achievements
Rank 1
 answered on 25 Oct 2012
2 answers
80 views
Hello

    I am using Radchart in a usercontrol for one of our application. The version of Telerik I have is 2012.1.215.40. I have Windows7 OS and IIS7. I have required Web.config entries in both System.Web and System.WebServer (Actually the entries were generated by the smarttag "Add RadChart HTTP Handler to Web.Config" option).

    The radchart shows up fine for the first time. When i click the same page from the menu, the rad chart shows up a popup "Error loading RadChart image"

  I tried the suggestions given by Evgenia in this post . Even setting usesession=false and setting the temp folder property resulting in the same sequence, first time it loads properly and second time when I load the page again it shows the error popup.

  Please help

Thanks
Saran
Nemi
Top achievements
Rank 1
 answered on 25 Oct 2012
0 answers
92 views
Hello,

Can someone explain or point me to a tutorial where I can have multiple windows nested in a tab strip.....with separate executing domains. So I guess what I'm asking is if there is a way to have one window nested in one tab using Chrome and the other tab/window using IE or Firefox?


So I might not be using the terms exactly correct so let me explain. I would like to have the tab strip with different tabs and the windows in that tab kept separate.

So user loads the default page and it has two buttons. New Tab Secured & New Tab Unsecured. The tab strip would be bound to an object and clicking either of the buttons would add another element to the collection so the tab strip would update with the new tab.

New Tab Secure would pop a modal window asking for credentials and a tab nickname (optional). Once entered it would go to an internal intranet site and the window of that tab would display the web page with the user logged in.

Now here is the trick that I am really unsure of.

New Tab Unsecure would open a new tab to the same site but of course we DON'T want the user logged in. PROBLEM. If for example IE is used then UNSECURED will be reading from the same cookies etc. and it will use the user credentials.

What I am desiring to provide to users of the system is the ability for them in one tab to have a administration login to make crud changes to the site. In the other tab see the impact of those CRUD operations.

Thank You
JB

Systems
Top achievements
Rank 1
 asked on 25 Oct 2012
6 answers
191 views
hi,
the parent is a sharepoint page, which has a webpart user control, which contains an iframe, which contains a user control that holds a radgrid control.
the radgrid has sorting filtering and paging enabled, i am using simple databinding and everything seems to work fine except the paging. lets say i have |<   <  1 2 3 4 5 >  >|   when i click on 2, the page posts back and the 2nd page is shown correctly and the number 2 is higlighted and same is the case with 3 and 4, however when i click on 1 (when the current page is 2) , both 1 and 2 are highlighted, the page does a postback but the contents are still of page 2, the next and previous arrows also exhibit the same behaviour. i am using the Black Skin and 2009.1.402.20 version., no matter what i try to do i cannot go back to page 1. this is the same behaviour in IE and FF

i have been reading couple of other threads which recommend using advanced databinding using needdatasource, i have tried that, but strangely the needdatasource method is not getting invoked automatically, the grid is blank.
when using the simple databinding i called the ShowListings() method from page_init(), but i commented those lines, because of the needdatasource method.

please advise.

here is my source code

 

<telerik:RadGrid ID="gvListing" runat="server" Skin="C21Skin" EnableEmbeddedSkins="False" AllowSorting="True" SortingSettings-SortedBackColor="#303030" EnableViewState="true"

 

 

AllowPaging="True" GridLines="None" AutoGenerateColumns="False" AllowFilteringByColumn="true" OnInit="gvListing_Init" OnNeedDataSource="gvListing_NeedDataSource"

 

 

Width="450px" Height="765px" PageSize="10" ShowStatusBar="True" FilterItemStyle-HorizontalAlign="Left" OnItemDataBound="gvListing_ItemDataBound" >

 

 

<PagerStyle Mode="NextPrevAndNumeric" Wrap="False" AlwaysVisible="true" Position="TopAndBottom"></PagerStyle>

 

 

<MasterTableView TableLayout="Fixed">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn UniqueName="Select" Display="true" HeaderText="" ItemStyle-Width="8px"

 

 

ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="8px" HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"

 

 

AllowFiltering="FALSE">

 

 

<ItemTemplate>

 

 

<asp:CheckBox runat="server" ID="chkSelectListing" OnCheckedChanged="chkSelectListing_OnCheckedChanged" AutoPostBack="true" />

 

 

<asp:Label ID="lblTrKey" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Tr_key") %>'></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Image" UniqueName="Image" AllowFiltering="false" ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60px" HeaderStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">

 

 

<ItemTemplate>

 

 

<div style="float:left;background-image:url('http://webservices.21online.com/public/imageresize.aspx?w=60&h=45&url=<%# DataBinder.Eval(Container.DataItem,"jpg_url") %>');background-repeat:no-repeat;width:60px;height:45px;z-index:1;vertical-align:bottom;text-align:right;">

 

 

<br/>

 

 

<div style="background-image:url('<%#Convert.ToInt32(DataBinder.Eval(Container.DataItem, "TotalPhotos").ToString()) > 5 ? "/21online/images/icons/yellow.gif" : "/21online/images/icons/red.gif"%>');background-repeat:no-repeat;z-index:2;width:26px;height:29px;vertical-align:middle;text-align:center;">

 

 

<span style="font-size:10pt;font-weight:bold;color:white;line-height:25px;vertical-align:baseline;"><%# DataBinder.Eval(Container.DataItem,"TotalPhotos") %></span>

 

 

</div>

 

 

</div>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn DataField="MLS_ID" Display="true" ItemStyle-ForeColor="white"

 

 

CurrentFilterFunction="StartsWith" AutoPostBackOnFilter="true" SortExpression="MLS_ID"

 

 

UniqueName="MLS_ID" HeaderText="MLS_ID" FilterControlWidth="40px" ItemStyle-Width="70px"

 

 

ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="70px" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn Display="true" ItemStyle-ForeColor="white"

 

 

SortExpression="Address" UniqueName="Address" HeaderText="Address" ItemStyle-Width="113px" AllowFiltering="FALSE"

 

 

ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="113px" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblAddress" CssClass="white11" Visible="true" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Address") %>'></asp:Label>,

 

 

<asp:Label ID="lblCity" CssClass="white11" Visible="true" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"city") %>'></asp:Label>,

 

 

<asp:Label ID="lblState" CssClass="white11" Visible="true" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"state") %>'></asp:Label>,

 

 

<asp:Label ID="lblZip" CssClass="white11" Visible="true" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"zip") %>'></asp:Label>

 

 

<asp:Label ID="lblImageURL" CssClass="white11" Visible="false" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"jpg_url") %>'></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn DataField="ListingType" Display="true" ItemStyle-ForeColor="white"

 

 

CurrentFilterFunction="StartsWith" AutoPostBackOnFilter="true" SortExpression="ListingType"

 

 

UniqueName="ListingType" HeaderText="Type" FilterControlWidth="10px" ItemStyle-Width="40px"

 

 

ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="40px" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Price" Display="true" ItemStyle-ForeColor="white"

 

 

CurrentFilterFunction="GreaterThan" AutoPostBackOnFilter="true" SortExpression="Price"

 

 

UniqueName="Price" HeaderText="Price" FilterControlWidth="45px" ItemStyle-Width="75px" DataFormatString="{0:c0}"

 

 

ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings EnableRowHoverStyle="true">

 

 

<Scrolling SaveScrollPosition="true" UseStaticHeaders="true" AllowScroll="true" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

and here is the code behind

 

 

protected void gvListing_Init(object sender, System.EventArgs e)

 

{

 

GridFilterMenu menu = gvListing.FilterMenu;

 

 

int i = 0;

 

 

while (i < menu.Items.Count)

 

{

 

if (menu.Items[i].Text == "NoFilter" ||

 

menu.Items[i].Text ==

"Contains" ||

 

menu.Items[i].Text ==

"DoesNotContain" ||

 

menu.Items[i].Text ==

"StartsWith" ||

 

menu.Items[i].Text ==

"EndsWith" ||

 

menu.Items[i].Text ==

"EqualTo" ||

 

menu.Items[i].Text ==

"NotEqualTo" ||

 

menu.Items[i].Text ==

"GreaterThan" ||

 

menu.Items[i].Text ==

"LessThan"

 

 

 

 

)

{

 

switch (menu.Items[i].Text)

 

{

 

case "NoFilter":

 

{

menu.Items[i].Text =

"No Filter";

 

 

break;

 

}

 

case "Contains":

 

{

menu.Items[i].Text =

"Contains";

 

 

break;

 

}

 

case "DoesNotContain":

 

{

menu.Items[i].Text =

"Does Not Contain";

 

 

break;

 

}

 

case "StartsWith":

 

{

menu.Items[i].Text =

"Starts With";

 

 

break;

 

}

 

case "EndsWith":

 

{

menu.Items[i].Text =

"Ends With";

 

 

break;

 

}

 

case "EqualTo":

 

{

menu.Items[i].Text =

"Equal To";

 

 

break;

 

}

 

case "NotEqualTo":

 

{

menu.Items[i].Text =

"Not Equal To";

 

 

break;

 

}

 

case "GreaterThan":

 

{

menu.Items[i].Text =

"Greater Than";

 

 

break;

 

}

 

case "LessThan":

 

{

menu.Items[i].Text =

"Less Than";

 

 

break;

 

}

}

i++;

}

 

else

 

 

 

 

{

menu.Items.RemoveAt(i);

}

}

}

 

protected void gvListing_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

 

{

 

 

if (ListingsDS.Tables[0].Rows.Count > 0)

 

{

gvListing.DataSource = ListingsDS.Tables[0];

 

if (CrestNote.Visible == false)

 

{

gvListing.MasterTableView.Columns[4].HeaderText =

"";

 

}

}

 

else

 

 

 

 

{

lblNoOfListings.Text =

"The category you have selected does not require listings.";

 

}

}

 

private void ShowListings()

 

{

 

if (ListingsDS.Tables[0].Rows.Count > 0)

 

{

gvListing.DataSource = ListingsDS.Tables[0];

gvListing.DataBind();

 

if (CrestNote.Visible == false)

 

{

 

//gvListing.Columns[4].Display = false;

 

 

 

 

gvListing.MasterTableView.Columns[4].HeaderText =

"";

 

}

}

 

else

 

 

 

 

{

lblNoOfListings.Text =

"The category you have selected does not require listings.";

 

}

}

 

 

public void chkSelectListing_OnCheckedChanged(object sender, EventArgs e)

 

{

 

CheckBox cb = (CheckBox)sender;

 

 

GridDataItem item = (GridDataItem)cb.NamingContainer;

 

 

Label lblTKey = (Label)item["Select"].FindControl("lblTrKey");

 

 

Label lblAddress = (Label)item["Address"].FindControl("lblAddress");

 

 

Label lblCity = (Label)item["Address"].FindControl("lblCity");

 

 

Label lblState = (Label)item["Address"].FindControl("lblState");

 

 

Label lblZip = (Label)item["Address"].FindControl("lblZip");

 

 

Label lblImageURL = (Label)item["Address"].FindControl("lblImageURL");

 

 

string strTrKey = lblTKey.Text;

 

 

string strTrKeyAddress = lblAddress.Text + ", " + lblCity.Text + ", " + lblState.Text + " " + lblZip.Text;

 

 

string strTrKeyImg = lblImageURL.Text;

 

 

eCampaign_Cart nlList_cart;

 

nlList_cart = CartSession;

 

if (cb.Checked == true)

 

{

nlList_cart.AddOrModifyMember(

new eCampaign_CartItem(strTrKey, strTrKeyAddress, strTrKeyImg));

 

}

 

else

 

 

 

 

{

nlList_cart.DeleteMember(strTrKey);

}

CartSession = nlList_cart;

divCartItemCount.InnerHtml = nlList_cart.getPrintNumberOfItems();

 

}

 

protected void gvListing_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)

 

{

 

if (e.Item is GridDataItem)

 

{

 

GridDataItem item = e.Item as GridDataItem;

 

 

string strTrKey = ((Label)item["Select"].FindControl("lblTrKey")).Text;

 

 

bool bSelected = false;

 

 

if (CartSession != null)

 

{

bSelected = CartSession.FindTrKeySelected(strTrKey);

 

if (bSelected)

 

{

 

CheckBox cb = (CheckBox)item["Select"].FindControl("chkSelectListing");

 

cb.Checked =

true;

 

}

}

}

}

Celestyn
Top achievements
Rank 1
 answered on 25 Oct 2012
2 answers
135 views
Hi ,

Using Telerik Ajax Q2 2009 

Using a rad window manager,  if I open a rad window and minimize it and then open another Rad window,  and then  I maximize the first Rad window the maximized window will be in the back and the second Rad window will be on top. 

I believe the issue is related to the z-Index of the maximized window,  is there a way to alter the z-index to set it to a highest number so it will open on top

Sincerely,

Fadi
Fadi
Top achievements
Rank 1
 answered on 25 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?