Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
152 views
Hi, for my application i have to create a RadGrid. In this RadGrid there's a list of item and when i click on one of them it opens and we can find inside a GridTableView which have inside of it some text in the first column and in the second column a RadChart. As far as I get, I can display everything but i had to save the RadChart as an image and then put it inside the Grid. But now I have some new things that I have to do and that doesn't work anymore. This way i cant use any mapping from my CodeBehind since it's a simple image. To achieve this i've followed this example http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx. I'm creating my RadChart inside the DetailTableDataBind event and add it to the grid. But if i want to keep the mapping I have to insert the RadChart and not the image of it. If I do that it displays only that: Telerik.Web.UI.RadChart.

Can you help me find the problem please.
Princy
Top achievements
Rank 2
 answered on 14 May 2012
1 answer
91 views
Hi,

   My input on RadEditor Control: ram ram ravan

   after some manipulation, i have modified the above text as "ram ram <FONT class=masked>ra</FONT>van".

   My requirement is the last word "van", if the user select "a" on van text, i want the index of a in the above text. Please help me how to get the index.

I have used the below code to get the selected text range of pure text but not with html tags, how to get range and index with html tags.

    var Range = editor.getSelection().getRange();
        var index= - Range.move("character", -1000000);
Rumen
Telerik team
 answered on 14 May 2012
5 answers
233 views
I have a RadGrid that was working fine.  I then turned it into a user control and inserted into my page and it worked fine.  I then dynamically loaded the same user contorl and it loads fine, but if you try to sort or page through data the RadGrid disappears.  The paging and sorting worked fine until I dynamically loaded the control.
Radoslav
Telerik team
 answered on 14 May 2012
2 answers
243 views
HI,

I have a requirement of validating the file size in the client side. I went through the Telerik documentation, i got to know that i need to add
    <telerik:RadProgressManager runat="server" id="RadProgressManager1" />
            <telerik:RadProgressArea runat="server" id="RadProgressArea1"
             OnClientProgressUpdating ="CheckUploadedFilesSize" DisplayCancelButton="True"/>

in addition to the radupload control.

I have included the javascript as below as well for validating the file size:
  
 function CheckUploadedFilesSize(progressArea, args) {
                //progressArea.Confirmed is a custom variable,
                // you can use another if you want to
                if (!progressArea.Confirmed && args.ProgressData.RadUpload.RequestSize > 1000000) {
                    if (confirm("The total size of the selected files is more than the limit." +
     " Do you want to cancel the upload?")) {
                        progressArea.CancelRequest();
                    }
                    else {
                        progressArea.Confirmed = "confirmed";
                    }
                }
            }

I modified the web.config to accommodate the RadProgressManager  and RadProgressArea as per the documentation.

Strangely the RadProgressManager  is not getting displayed. The javascript is also not getting triggered. I am checking with a larger file size as i am aware that i wont be able to see the RadProgressManager  for smaller ones.

Please let me know if i am missing something?

Regards,
Damodar
Ssv
Top achievements
Rank 1
 answered on 14 May 2012
2 answers
121 views
Hi,

Basically I have a static tab in my page (not closable) with a radgrid in it. On a row double click, I create a tab in javascript, select the tab and generate a user control in it (a detail grid). So far so good, it works great, however theres a wierd behavior with a newly generated tab under certain conditions.

Here is the javascript part of my code:

<script type="text/javascript">
            var tabStrip1;
 
            function OnClientLoad() {
                tabStrip1 = $find('<%= RadTabStrip1.ClientID %>');
 
                for (var i = 0; i < tabStrip1.get_tabs().get_count(); i++) {
                    if (i != 0) {
                        AttachCloseImage(tabStrip1.get_tabs().getItem(i), "../../Images/delete.gif");
                    }
                }
            }
             
            function addNewTab(sender, eventArgs) {
                //Va chercher l'information du row que j'ai de besoin
                var dataItem = $get(eventArgs.get_id());
                var grid = sender;
                var MasterTable = grid.get_masterTableView();
                var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
                var cell = MasterTable.getCellByColumnUniqueName(row, "element_couvert");
                var value = cell.innerHTML;
 
                //add le tab
 
                var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
                var tab;
                tab = tabStrip.findTabByText(value);
                if (tab) {
                    tab.click();
                } else {
                    var tab = new Telerik.Web.UI.RadTab();
                    tab.ID = cell.innerHTML.replace("/", "").replace(" ", "");
                    tab.set_text(value);
                    tabStrip.trackChanges();
                    tabStrip.get_tabs().add(tab);
                    tabStrip.commitChanges();
                    
                    tab.click();
                    AttachCloseImage(tab, "../../Images/delete.gif");
                   
                }
 
            }
 
            function CreateCloseImage(closeImageUrl) {
                var closeImage = document.createElement("img");
                closeImage.src = closeImageUrl;
                closeImage.alt = "Fermer cet onglet";
                return closeImage;
            }
 
            function AttachCloseImage(tab, closeImageUrl) {
                var closeImage = CreateCloseImage(closeImageUrl);
                closeImage.AssociatedTab = tab;
                closeImage.onclick = function(e) {
                    if (!e) e = event;
                    if (!e.target) e = e.srcElement;
 
                    deleteTab(tab);
 
                    e.cancelBubble = true;
                    if (e.stopPropagation) {
                        e.stopPropagation();
                    }
 
                    return false;
                }
 
                tab.get_innerWrapElement().appendChild(closeImage);
            }
 
            function deleteTab(tab) {
                var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
                var multiPage = $find("<%= RadMultiPage1.ClientID %>");
 
                var pageView = tab.get_pageView();
                var tabToSelect = tab.get_nextTab();
                if (!tabToSelect)
                    tabToSelect = tab.get_previousTab();
 
                tabStrip.trackChanges();
                tabStrip.get_tabs().remove(tab);
                tabStrip.commitChanges();
 
                multiPage.trackChanges();
                multiPage.get_pageViews().remove(pageView);
                multiPage.commitChanges();
 
                if (tabToSelect)
                    tabToSelect.set_selected(true);
            }
 
            function onTabSelecting(sender, args) {
                if (args.get_tab().get_pageViewID()) {
                    args.get_tab().set_postBack(false);
                }
            }
        </script>

code behind:

Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated
        If e.PageView.ID <> "RadPageView5" Then
            Dim userControlName As String = "/Commun/UserControls/DetailElementCouvert.ascx"
            Dim ctrl As Control
            Dim userControl As Fede.Web.Sifa.DetailElementCouvert
            ctrl = LoadControl(userControlName)
 
            userControl = CType(ctrl, Fede.Web.Sifa.DetailElementCouvert)
            userControl.ID = e.PageView.ID & "_userControl"
            userControl.Strategie = e.PageView.ID.Trim()
            userControl.LaDate = CDate(Master.fJour.SelectedDate)
 
            e.PageView.Controls.Add(userControl)
        End If
    End Sub
 
    Private Sub AddPageView(ByVal tab As RadTab)
        Dim pageView As RadPageView = New RadPageView
        pageView.ID = tab.Text
        RadMultiPage1.PageViews.Add(pageView)
        RadMultiPage1.SelectedIndex = RadMultiPage1.PageViews.Count - 1
        pageView.CssClass = "pageView"
        tab.PageViewID = pageView.ID
    End Sub
 
    Protected Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As RadTabStripEventArgs) Handles RadTabStrip1.TabClick
        If String.IsNullOrEmpty(e.Tab.PageViewID) Then
            AddPageView(e.Tab)
            e.Tab.PageView.Selected = True
            e.Tab.Selected = True
        End If
    End Sub

html:

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Orientation="HorizontalTop"
        SelectedIndex="0" MultiPageID="RadMultiPage1" OnClientLoad="OnClientLoad" OnClientTabSelecting="onTabSelecting">
        <Tabs>
            <telerik:RadTab Text="Information élément couvert" Selected="True" PageViewID="RadPageView5">
                <TabTemplate>
                    <div class="textWrapper">
                        Information élément couvert
                    </div>
                </TabTemplate>
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">
        <telerik:RadPageView runat="server" ID="RadPageView5">
            <telerik:RadGrid ID="RadGrid1" Culture="French (Canada)" runat="server" GroupingEnabled="False"
                ShowStatusBar="True" ClientSettings-ClientEvents-OnRowDblClick="addNewTab" ClientSettings-ClientEvents-OnCommand="OnCommand">
                <MasterTableView AllowFilteringByColumn="true" AllowPaging="True" AllowSorting="true"
                    AutoGenerateColumns="False" PageSize="16" CommandItemDisplay="Top">
                    <CommandItemTemplate>
                        <div style="float: right">
                            <telerik:RadButton ID="DownloadPDF" runat="server" Text="Confirmer action sur JV" />  
                            <telerik:RadButton ID="RadButton5" runat="server" Text="Confirmer action sur FT" />  
                            <telerik:RadButton ID="RadButton1" runat="server">
                                <Icon PrimaryIconCssClass="rbRefresh" PrimaryIconLeft="8" PrimaryIconTop="4" />
                            </telerik:RadButton>
                        </div>
                    </CommandItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Bottom" />
                    <PagerStyle AlwaysVisible="True" Mode="Slider" />
                    <ItemStyle Wrap="false" HorizontalAlign="Right" VerticalAlign="Middle" />
                    <AlternatingItemStyle Wrap="false" HorizontalAlign="Right" VerticalAlign="Middle" />
                    <Columns>
                        <telerik:GridBoundColumn DataField="etat_bloc" HeaderText="État du bloc" UniqueName="etat_bloc" FilterControlWidth="70%" DataType="System.String">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="strategie" HeaderText="Stratégie" UniqueName="strategie" FilterControlWidth="70%" DataType="System.String">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"/>
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="element_couvert" HeaderText="Code élément couvert" UniqueName="element_couvert" FilterControlWidth="70%" DataType="System.String">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="date_echeance" DataFormatString="{0:d}" HeaderText="Date échéance" FilterControlWidth="70%"
                            UniqueName="date_echeance" DataType="System.DateTime">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="nomi_designe" DataFormatString="{0:N0}" HeaderText="Nominal utilisé ($)" FilterControlWidth="70%"
                            UniqueName="nomi_designe" Datatype="System.Int64">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="nbre_designe" DataFormatString="{0:N0}" HeaderText="Nombre de désignations" FilterControlWidth="70%"
                            UniqueName="nbre_designe" Datatype="System.Int64">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="nomi_disponible" DataFormatString="{0:N0}" HeaderText="Nominal utilisable ($)" FilterControlWidth="70%"
                            UniqueName="nomi_disponible" Datatype="System.Int64">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="taux_utilis_act" HeaderText="Taux utilis. actuel (%)" FilterControlWidth="70%"
                            UniqueName="taux_utilis_act" DataFormatString="{0:N2}" DataType="System.Double">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="nomi_total_cour" DataFormatString="{0:N0}" HeaderText="Nominal courant ($)" FilterControlWidth="70%"
                            UniqueName="nomi_total_cour" Datatype="System.Int64">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="nomi_total_prec" DataFormatString="{0:N0}" HeaderText="Nominal précédent ($)" FilterControlWidth="70%"
                            UniqueName="nomi_total_prec" Datatype="System.Int64">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ecart_absolu" DataFormatString="{0:N0}" HeaderText="Écart absolu ($)" FilterControlWidth="70%"
                            UniqueName="ecart_absolu" Datatype="System.Int64">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ecart_pct" HeaderText="Écart (%)" UniqueName="ecart_pct" FilterControlWidth="70%"
                        DataFormatString="{0:N2}" DataType="System.Double">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                        </telerik:GridBoundColumn>
                        <telerik:GridButtonColumn Text="Détail" UniqueName="D" ItemStyle-HorizontalAlign="Center"
                            ButtonType="LinkButton" CommandName="CustomDetail"  />
                    </Columns>
                    <PagerStyle AlwaysVisible="True" Mode="Slider" />
                </MasterTableView>
                <ClientSettings Scrolling-UseStaticHeaders="false">
                    <Scrolling AllowScroll="True" UseStaticHeaders="true" ScrollHeight="" />
                    <Resizing AllowResizeToFit="true" AllowColumnResize="true" EnableRealTimeResize="true" />
                </ClientSettings>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
            </telerik:RadGrid>
        </telerik:RadPageView>
    </telerik:RadMultiPage>

Here is my problem: when I have no dynamic tab created, and I do an action on the grid in my static tab (be it using a filter, or changing the page in the pager), the first time I try to create a tab it automatically closes itself. However, if i try to create it again, it will work. Also, if i already have a dynamic tab created, this behavior seems to not happen and things are functionning properly.

Also, I have tried to not force a click in my javascript, and click it manually instead. The same thing happens, the tab is created, and when I click on it (and it tries to create the pageview and load the user control), it will close itself. So I can be sure that this bahavior seems to happen when the click action is made upon the tab.

Again, I want to say that this code is working as expected in most cases, except for this very specific case (when using filter or changing page in pager, and no dynamic tab was already created)

Thanks

 
Dimitar Terziev
Telerik team
 answered on 14 May 2012
7 answers
429 views
Hi, i'am new using telerik controls.

I hace an application c#, and i want to transfer Radlistbox items to an other Radlistbox. The first Radlistbox 1 is filled with datasource binding, and the second Radlistbox2 has to be filled with items from Radlistbox1.  Ofcourse with Transfermode="copy"

My application can be transfer items to the other Radlistbox2, but only one of the columns, i think. I want to transfer all columns to Radlistbox2. My code is as follow:

..........
<style type="text/css">
       .list {
               float: left;
               width: 100px;           
               }
        .idClass {
           float: left;
           width: 20px;
        }
 
 
    </style>
 
.........
 
<telerik:RadListBox ID="RadListBox1" runat="server" Width="400px" Height="200px" TransferToID="RadListBox2" AllowTransfer="true"
                                SelectionMode="Multiple" AutoPostBackOnTransfer="true" AllowReorder="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true"
                                OnDropped="RadListBox_Dropped" AppendDataBoundItems="False" DataSourceID="SqlDataSource1" DataTextField="Nombre" DataValueField="ID"
                                OnTransferred="RadListBox1_Transferred" OnItemDataBound="RadListBox1_ItemDataBound" TransferMode="Copy" CausesValidation="false">
                                <ButtonSettings ShowTransfer="false" />
                                  <ItemTemplate>
                                  <span style="float:left;">
                                  <img src='<%# Eval("Foto") %>' width="30px" height="30px" alt="dd"/>
                                  </span>
                                  <span style="float:left;padding:10px">
                                 <asp:Label ID="Label1" runat="server" Text='<%# Eval("ID") %>' CssClass="idClass"></asp:Label>
                                 <asp:Label ID="Label2" runat="server" Text='<%# Eval("Nombre") %>' CssClass="list"></asp:Label>
                                 <asp:Label ID="Label3" runat="server" Text='<%# Eval("Apellidos") %>' CssClass="list"></asp:Label>
                                 <asp:Label ID="Label4" runat="server" Text='<%# Eval("Rol") %>'></asp:Label>
                                 </span>
                                </ItemTemplate>
                        </telerik:RadListBox>
 
<telerik:RadListBox ID="RadListBox2" runat="server" Width="400px" Height="200px" AllowTransfer="true" 
                        SelectionMode="Multiple" AllowReorder="true" AutoPostBackOnTransfer="true" TransferMode="Copy"   
                        AutoPostBackOnReorder="true" TransferToID="RadListBox3" EnableDragAndDrop="true" AppendDataBoundItems="false"  OnDropped="RadListBox_Dropped">     
                             <ItemTemplate>
                             <span style="float:left;">
                             <img src='<%# Eval("Foto") %>' width="30px" height="30px" alt="dd"/>
                             </span>
                             <span style="float:left;padding:10px">
                                 <asp:Label ID="Label5" runat="server" Text='<%# Eval("ID") %>' CssClass="idClass"></asp:Label>
                                 <asp:Label ID="Label6" runat="server" Text='<%# Eval("Nombre") %>' CssClass="list"></asp:Label>
                                 <asp:Label ID="Label7" runat="server" Text='<%# Eval("Apellidos") %>' CssClass="list"></asp:Label>
                                 <asp:Label ID="Label8" runat="server" Text='<%# Eval("Rol") %>'></asp:Label>
                             </span>
                             </ItemTemplate>
                                 
                        </telerik:RadListBox>
 
 
 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CNXPostes%>"
            ProviderName="System.Data.SqlClient"
            SelectCommand="select Foto,ID, Nombre, Apellidos, Rol  from empleado">
 </asp:SqlDataSource>

AND THE CODE BEHIND IS:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Text;
using Telerik.Web.UI;
 
 
public partial class Admin_TratandoProbar : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
    protected void RadListBox_Dropped(object sender, RadListBoxDroppedEventArgs e)
    {
    }
 
    protected void RadListBox1_ItemDataBound(object sender, RadListBoxItemEventArgs e)
    {
 
    }
 
    protected void RadListBox1_Transferred(object sender, RadListBoxTransferredEventArgs e)
    {
       // foreach (RadListBoxItem item in e.Items)
       //{
       //     item.DataBind();
       //}
 
    }
 
 
 
 
     
 
}

Those radlistboxes within a RadPanelBar.

Please help me.

note.- sorry if i wrote with mistakes, my native language is spanish.
Zbysek
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
270 views
Hi,

I would like to change buttons PrimaryIcon at client side. I have used set_iconData(s) but no luck. It sets icon data (can get back correct values with get_iconData) but nothing changed at browser window. I have used repaint function and nothing changed either. Any thoughts?

TIA

PS:Here is my code;
var s = { "primaryIconUrl": "../images/icons/EnableConvex24.png", "primaryHeight": "24px", "primaryWidth": "24px" };
btnActivate.set_iconData(s);
btnActivate.repaint();
Slav
Telerik team
 answered on 14 May 2012
1 answer
136 views
Hi all,

I have a radgrid being loaded with a dataset at page load.  We have ~60 columns in the radgrid with a bunch of radcomboboxes in each row.  I need to have a OnClientFocus event on the radcomboboxes for something I am doing in jquery.  I noticed my page load was a bit slower after I added this, so I added a console.log to the onfocus function, and noticed that it is being called 50+ times (I believe it is the total amount of radcomboboxes I have on the page, or at least pretty close) as soon as the page loads.

Is each one of these radcomboboxes grabbing focus on page load for some reason?  Is this intended behavior?  Is there anything to get around this happening?
Dimitar Terziev
Telerik team
 answered on 14 May 2012
1 answer
168 views
I've got my RadAjaxManager and  RadAjaxLoadingPanel on my master page. My RadMenu is being registered. I have two panels on the page, one is initially hidden. when the RadMenu item is selected, the two panels swap visibility. Ajax is not firing and I get a full post back each time a menu item is clicked.

It looks like it should be working, at least to me. Here's my code...

Thanks!
John

<asp:Panel ID="WelcomePanel" runat="server">
     
<div id="WelcomeMsg" style="margin-left:20px; margin-right:20px; text-align:center;">
<span style="font-weight: bold; font-size: medium; text-align: center;">SCMS Management System Owner / Point-Of-Contact<br />
Requirements Management Interface</span>
<br /> <p style="text-align:justify;">
 
The Office of SCience Management System (SCMS) is primarily a tool for setting institutional standards and conveying related information to staff. It is also the tool by which SC develops, integrates, and demonstrates SC's conformance to requirements.
 
</p><br />
<p style="text-align:left;">
 
Click on one of the High-Level SCMS Requirements to display its detail.
 
</p>
 
</div>
</asp:Panel>
 
 
 
    <asp:Panel ID="Panel1" runat="server">
     
    <div id="inactive" style="text-align:center;">
        <asp:Label ID="lblInactive" runat="server" Text="-- INACTIVE REQUIREMENT --" ForeColor="Red" Font-Bold="True"></asp:Label>
    </div>
    <h1 style="top: 20px; right: 20px; bottom: 20px; left: 20px; text-align: center; margin-bottom: 20px; margin-top: 10px;">
        <asp:PlaceHolder ID="Header_PlaceHolder" runat="server"></asp:PlaceHolder>
    </h1>
    <h2 style="top: 20px; right: 20px; bottom: 20px; left: 20px; text-align: center; margin-bottom: 20px; margin-top: 10px; font-size: medium;">
        <asp:PlaceHolder ID="Header2_PlaceHolder" runat="server"></asp:PlaceHolder>
    </h2>
    <div class="titleLarge">Management Systems</div><br />
    <ul class="RDRImp">
        <asp:PlaceHolder ID="MS_PlaceHolder" runat="server"></asp:PlaceHolder>
    </ul>
    <div class="titleLarge">Policies</div><br />
    <div style="text-align: center;"><asp:Label ID="lblNoPolicies" runat="server" Text="None" Font-Bold="True" Font-Size="Medium"></asp:Label>
    </div>
    <ul class="RDRImp">
        <asp:PlaceHolder ID="Policy_PlaceHolder" runat="server"></asp:PlaceHolder>
    </ul>
    <div class="titleLarge">Subject Areas / Procedures</div><br />
    <div style="text-align: center;"><asp:Label ID="lblNoSAs" runat="server" Text="None" Font-Bold="True" Font-Size="Medium"></asp:Label>
    </div>
    <ul class="RDRImp">
        <asp:PlaceHolder ID="SA_PlaceHolder" runat="server"></asp:PlaceHolder>
    </ul>
 
    <div class="titleLarge">RDR Actions</div><br />
 
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"
        CssClass="RadGrid_Default" CellSpacing="0" style="margin-left: 20px !important; margin-right: 20px !important;" ItemStyle-VerticalAlign="Top">
        <MasterTableView>
        <Columns>
 
        <telerik:GridBoundColumn DataField="Comments"
            FilterControlAltText="Filter line column" HeaderText="Action" UniqueName="Action" FilterControlWidth="150px">
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Bottom"></HeaderStyle>
        </telerik:GridBoundColumn>
 
        <telerik:GridBoundColumn DataField="DueDate"
            FilterControlAltText="Filter line column" HeaderText="Planned" UniqueName="Planned" FilterControlWidth="150px"
            DataFormatString = "{0:MM/dd/yyyy}">
        </telerik:GridBoundColumn>
 
        <telerik:GridBoundColumn DataField="CompDate"
            FilterControlAltText="Filter line column" HeaderText="Complete" UniqueName="Complete" FilterControlWidth="150px"
            DataFormatString = "{0:MM/dd/yy}">
        </telerik:GridBoundColumn>
 
        <telerik:GridBoundColumn DataField="ActionOwner"
            FilterControlAltText="Filter line column" HeaderText="Action Owner" UniqueName="ActionOwner" FilterControlWidth="150px">
        </telerik:GridBoundColumn>
 
        </Columns>
        </MasterTableView>
    </telerik:RadGrid>
 
<br /> 
    <div class="titleLarge">Training</div>
    <div style="text-align: center; margin-top: 20px;"><asp:Label ID="lblNoTraining" runat="server" Text="None" Font-Bold="True" Font-Size="Medium"></asp:Label>
    </div>
    <ul class="RDRImp">
        <asp:PlaceHolder ID="Training_PlaceHolder" runat="server"></asp:PlaceHolder>
    </ul>
 
    <div style="text-align:center;">
    <br />
        <asp:Label ID="Label1" runat="server" Text="RDR Initiate Date:"></asp:Label>  
        <asp:Label ID="lblInitiateDate" runat="server" Text=""></asp:Label>
    <br />
        <asp:Label ID="Label2" runat="server" Text="RDR Approval Date:"></asp:Label>  
        <asp:Label ID="lblApprovalDate" runat="server" Text=""></asp:Label>
    <br />
        <asp:Label ID="Label3" runat="server" Text="RDR Approved By:"></asp:Label>  
        <asp:Label ID="lblApprovedBy" runat="server" Text=""></asp:Label>
 
    </div>
 
 
    </asp:Panel>
 
 
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadMenu1" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="WelcomePanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

Maria Ilieva
Telerik team
 answered on 14 May 2012
1 answer
218 views
Hi,

the data bound to the grid is stored in the session and bound to the grid in the DataBound event. 
Now I want to reload the data from the database only when the user clicks the "Refresh" button. In all other cases, the data is taken from the session.
I thought I could use the 
e.RebindReason == GridRebindReason.ExplicitRebind
but this is also the case when e.g. the columns are reordered.

Whats the check for the Refresh button?

Thanks!
Princy
Top achievements
Rank 2
 answered on 14 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?