Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
230 views
for test , we download the trial version of telerik and face following problems 
It Dosnot have  any problem on local Dnn Portal,but it takes us the bellow error on main website
 " Error loading RadChart inage ..." .
we added the tag Shown on first load of radchart in Web.Config > httphandler Section .
and add folder radcontrols>chart wich contains file image.aspx.
Please Guid us as soon as posible.
Lori
Top achievements
Rank 1
 answered on 10 Jan 2013
0 answers
87 views
One of our users alerted us to a problem in Chrome with the RAD grid control.  He has about 100 items and after the operation (insert/delete) completes, the grid doesn't redraw.  If you move the mouse over the rows, it will redraw around the cursor as you move it.   Once you scroll the screen, it redraws the pieces that go off screen.   See attached screenshots.

We were only able to reproduce the problem in Chrome.  It worked fine in IE and Firefox.  I was just wondering if anyone else has seen similar issues.  We had not seen such problems before and I wondered if it wasn't something broken in the last Chrome update.

Thanks!
HorseFly
Top achievements
Rank 1
 asked on 10 Jan 2013
6 answers
596 views
I'm trying to change the tab text in javascript.  I thought it would be a simple task but I haven't had any success with anything I've tried.

The first thing I tried was tab.set_text("NewValue").  This set the text property in the tab client object but didn't update the text currently visible to users. 

I then tried to get the DOM element for the tab text to update it directly using tab.get_textElement() but that comes back as null.

Does anyone have any idea how to update the tab text so it's updated in the browser?
Chris
Top achievements
Rank 1
 answered on 10 Jan 2013
2 answers
217 views
Hi there,

I cannot get the correct pagesize selected when I use AllowCustomPaging="true".
When you look in the code below I can see PAGESIZE_NEW is set to the new pagesize selected (f.e. 50) in the grHit_PageSizeChanged event.
After that it hits the grHit_NeedDataSource event. The PAGESIZE variable is set to it's original value of 25 instead of 50 like the value in the grHit_PageSizeChanged event.

Any idea?

I am using Telerik: 202.3.1016.35.


Regards,

Marcel

    <head>
        <title>HitGrid</title>
    </head>
    <body
        <telerik:RadGrid ID="grHit" runat="server"
            OnNeedDataSource="grHit_NeedDataSource"
            OnDetailTableDataBind="grHit_DetailTableDataBind"  OnPageSizeChanged="grHit_PageSizeChanged"
            OnItemCreated="grHit_ItemCreated">
 
            <MasterTableView AutoGenerateColumns="False"
                AllowSorting="true"
                AllowNaturalSort="false"
                AllowFilteringByColumn="true"
                AllowPaging="true"
                AllowCustomPaging="true"
                DataKeyNames="Date hit, User id, Application id, Function id">
 
                <Columns>
                    <telerik:GridDateTimeColumn UniqueName="coDateHit" HeaderText="Date"
                        MinDate="1899/12/30"
                        DataField="Date hit" >
                    </telerik:GridDateTimeColumn>
                     
                    <telerik:GridBoundColumn UniqueName="coUserName" HeaderText="User"
                        DataField="User name" >
                    </telerik:GridBoundColumn>
                     
                    <telerik:GridBoundColumn UniqueName="coFunctionName" HeaderText="Function"
                        DataField="Function name" >
                    </telerik:GridBoundColumn>
                      
                    <telerik:GridBoundColumn UniqueName="coIPAddress" HeaderText="IP address"
                        DataField="User host address" >
                    </telerik:GridBoundColumn>
                     
                    <telerik:GridBoundColumn UniqueName="coBrowser" HeaderText="Browser"
                        DataField="Browser" >
                    </telerik:GridBoundColumn>
                </Columns>
 
                <DetailTables>
                    <telerik:GridTableView Name="HitDetail"
                        AutoGenerateColumns="False"
                        ShowHeader="false"
                        Width="100%">
                         
                        <Columns>
                            <telerik:GridBoundColumn UniqueName="coColumn1"
                                DataField="Column 1" >
                            </telerik:GridBoundColumn>
                             
                            <telerik:GridBoundColumn UniqueName="coColumn2"
                                DataField="Column 2" >
                            </telerik:GridBoundColumn>
                        </Columns>
                         
                    </telerik:GridTableView>
                </DetailTables>
 
            </MasterTableView>
             
        </telerik:RadGrid>
    </body>
</html>

public partial class HitGrid : System.Web.UI.UserControl
    {
        public int WIDTH
        {
            //totale breedte
            set
            {
                grHit.Width = Unit.Percentage(value);
            }
        }
 
        override protected void OnInit(EventArgs e)
        {
            InitializeComponent();
            base.OnInit(e);
        }
 
        private void InitializeComponent()
        {
            //sorting
            Telerik.Web.UI.GridSortExpression sortExpr = new Telerik.Web.UI.GridSortExpression();
            sortExpr.FieldName = "Date hit";
            sortExpr.SortOrder = Telerik.Web.UI.GridSortOrder.Descending;
            grHit.MasterTableView.SortExpressions.AddSortExpression(sortExpr);
 
            //paging
            grHit.PageSize = Convert.ToInt16(ConfigurationManager.AppSettings.Get("Page size"));
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //initialise
                HITGRID_INIT();
            }
        }
 
        private void HITGRID_INIT()
        {}
 
        protected void grHit_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is Telerik.Web.UI.GridFilteringItem)
            {
                Telerik.Web.UI.GridFilteringItem FilterItem = e.Item as Telerik.Web.UI.GridFilteringItem;
 
                //User
                TextBox txtUserName = FilterItem["coUserName"].Controls[0] as TextBox;
                txtUserName.Width = Unit.Pixel(100);
 
                //Function
                TextBox txtFunctionName = FilterItem["coFunctionName"].Controls[0] as TextBox;
                txtFunctionName.Width = Unit.Pixel(100);
 
                //IP address
                TextBox txtIPAddress = FilterItem["coIPAddress"].Controls[0] as TextBox;
                txtIPAddress.Width = Unit.Pixel(80);
 
                //Browser
                TextBox txtBrowser = FilterItem["coBrowser"].Controls[0] as TextBox;
                txtBrowser.Width = Unit.Pixel(100);
            }
        }
 
        protected void grHit_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            int PAGESIZE = grHit.PageSize;
 
            //get hits
            NMHG.Data.NMHGHome.HOH100PF.GetHits2 HOH100PF_List = new NMHG.Data.NMHGHome.HOH100PF.GetHits2();
            HOH100PF_List.H1APID = "";
            HOH100PF_List.H1USID = "";
            HOH100PF_List.PageNumber = grHit.CurrentPageIndex;
            HOH100PF_List.Main();
 
            //fill grid
            grHit.DataSource = HOH100PF_List.HitTable;
 
            //set virtual item count
            grHit.VirtualItemCount = HOH100PF_List.COUNT;
        }
 
        protected void grHit_PageSizeChanged(object source, Telerik.Web.UI.GridPageSizeChangedEventArgs e)
        {
            int PAGESIZE_NEW = e.NewPageSize;
        }
 
        protected void grHit_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
            Telerik.Web.UI.GridDataItem DataItem = (Telerik.Web.UI.GridDataItem)e.DetailTableView.ParentItem;
            switch (e.DetailTableView.Name)
            {
                case "HitDetail":     //Hit detail
 
                    //get hit
                    NMHG.Data.NMHGHome.HOH100PF.Hit HOH100PF = new NMHG.Data.NMHGHome.HOH100PF.Hit();
                    HOH100PF.H1DATE = (DateTime)DataItem.GetDataKeyValue("Date hit");          //Date hit
                    HOH100PF.H1USID = DataItem.GetDataKeyValue("User id").ToString();           //User id
                    HOH100PF.H1APID = DataItem.GetDataKeyValue("Application id").ToString();    //Application id
                    HOH100PF.H1FNID = DataItem.GetDataKeyValue("Function id").ToString();       //Function id
                    HOH100PF.GetHit();
 
                    //initialise datatable
                    DataTable HitTable = new DataTable("Hit detail data");
                    HitTable.Columns.Add("Column 1", System.Type.GetType("System.String"));
                    HitTable.Columns.Add("Column 2", System.Type.GetType("System.String"));
 
                    //Date
                    DataRow HitRow = HitTable.NewRow();
                    HitRow["Column 1"] = "Date:";
                    HitRow["Column 2"] = HOH100PF.H1DATE;
                    HitTable.Rows.Add(HitRow);
 
                    //get username
                    NMHG.Data.NMHGHome.AUUS00PF.User AUUS00PF = new NMHG.Data.NMHGHome.AUUS00PF.User();
                    AUUS00PF.USUSID = HOH100PF.H1USID;
                    AUUS00PF.GetUser();
 
                    //User
                    HitRow = HitTable.NewRow();
                    HitRow["Column 1"] = "User:";
                    HitRow["Column 2"] = AUUS00PF.USUSNM;
                    HitTable.Rows.Add(HitRow);
 
                    //get application function name
                    NMHG.Data.NMHGHome.AUAF00PF.ApplicationFunction AUAF00PF = new NMHG.Data.NMHGHome.AUAF00PF.ApplicationFunction();
                    AUAF00PF.AFAPID = HOH100PF.H1APID;
                    AUAF00PF.AFFNID = HOH100PF.H1FNID;
                    AUAF00PF.GetApplicationFunction();
 
                    //Function
                    HitRow = HitTable.NewRow();
                    HitRow["Column 1"] = "Function:";
                    HitRow["Column 2"] = AUAF00PF.AFFNNM;
                    HitTable.Rows.Add(HitRow);
 
                    //URL
                    HitRow = HitTable.NewRow();
                    HitRow["Column 1"] = "URL:";
                    HitRow["Column 2"] = HOH100PF.H1URL;
                    HitTable.Rows.Add(HitRow);
 
                    //IP address
                    HitRow = HitTable.NewRow();
                    HitRow["Column 1"] = "IP address:";
                    HitRow["Column 2"] = HOH100PF.H1ADDR;
                    HitTable.Rows.Add(HitRow);
 
                    //Platform
                    HitRow = HitTable.NewRow();
                    HitRow["Column 1"] = "Platform:";
                    HitRow["Column 2"] = HOH100PF.H1PLAT;
                    HitTable.Rows.Add(HitRow);
 
                    //Browser
                    HitRow = HitTable.NewRow();
                    HitRow["Column 1"] = "Browser:";
                    HitRow["Column 2"] = HOH100PF.H1BRWS;
                    HitTable.Rows.Add(HitRow);
 
                    //fill grid
                    grHit.DataSource = HitTable;
 
                    break;
            }
        }
    }

Marcel
Top achievements
Rank 1
 answered on 10 Jan 2013
7 answers
196 views
RadDockZone1.Docks.Sort(Function(dock1 As RadDock, dock2 As RadDock) dock1.Index.CompareTo(dock2.Index))
 
       For Each dock As RadDock In RadDockZone1.Docks
           For Each control As Control In dock.ContentContainer.Controls(0).Controls
               If (TypeOf control Is CheckBox) Then
                   checkBox = CType(control, CheckBox)
                   If checkBox.Checked Then
                       selectedWebParts.Add(dock.ID)
                   End If
               End If
           Next
       Next

I have a RadDockZone in which i am adding docks at runtime.
User can drap and drop any dock and can change their position in RadDockZone.
Now on postback, I am trying to get the docks from Raddockzone ordered be Dock index.
I am using the above code but it is not working the way I want.

Could you please help me to get the docks from Raddockzone ordered by their index.
Slav
Telerik team
 answered on 10 Jan 2013
1 answer
76 views
We have developed an application runs at intranet. When users browse the application with IE9, none of tabstrip tabs works(User cannot click anything). When I checked the client internet explorer i saw that the compability mode is active. When i disable it everything works fine. 
When users who has the IE8 and compability mode is disabled, they cannot click anything too. When they activate the compability mode everything works fine.
How could we solve this problem?
Nencho
Telerik team
 answered on 10 Jan 2013
3 answers
120 views
If I have the following controls.

        <telerik:RadCodeBlock ID="codeBlock" runat="server">
        <script type="text/javascript">
           function OnClientSeriesClicked(sender, args)
           {
              if (args.get_seriesName() != "Months")
               $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(args.get_category());
              
           }
           function openWinNavigateUrl()
           {
              $find("<%=RadWindow_NavigateUrl.ClientID %>").show();
           }
        </script>
    </telerik:RadCodeBlock>
 
<telerik:RadHtmlChart ID="RadHtmlMainBar" Transitions="true"   runat="server"   
        Height="450px" Width="550px" OnClientSeriesClicked="OnClientSeriesClicked">
               </telerik:RadHtmlChart>
 
    <telerik:RadWindow runat="server" ID="RadWindow_NavigateUrl" NavigateUrl="/pagesModules/ComplienceDetail.aspx?Category=19791978"
        Modal="true" InitialBehaviors="Maximize" RestrictionZoneID="NavigateUrlZone">
    </telerik:RadWindow>
 
            <asp:Button ID="Button4" Text="open the window" runat="server" 
            OnClientClick="openWinNavigateUrl(); return false;" />

 

Andy
Top achievements
Rank 1
Iron
 answered on 10 Jan 2013
5 answers
372 views

Hi,
I have a scenario where im using RadTabStrip in usercontrol.This userControl is registred on .aspx page. RadStrip has 4 to 5 tabs. Each tab click should be navigated to new page with some contents.I can set the NavigateUrl="FirstTab.aspx" so that it will navigate to respective pages, But these pages don't have Tabstrip.It only contains Contents of particular page. How to load contents of page with radstrip still visible ?.  How to go about this scenario.

Attached is screenshot.

Please Suggest

Regards,
Akki
Nencho
Telerik team
 answered on 10 Jan 2013
1 answer
29 views
After I made a AjaxRequest Call, I got a message before the update panel as below automatically.  Any idea how to disable it?

Thanks.

Yingyi

8287|updatePanel|ctl21_coverageplan_ctl21_coverageplan_CoveragePlanGridViewPanel|
Andrey
Telerik team
 answered on 10 Jan 2013
0 answers
90 views
Hi There,
I am unable to access the gridview present inside the RadMultiPage control in my C# code.I am having this issue in PageIndexChanging event.I have attached my code for your reference.

ASPX:

 

<div>
        <div class="text">
            <img alt="Dashboard" class="text" src="images/module/iReport.png" width="30" height="30" />Special
            Reports
        </div>
        <telerik:RadWindowManager ID="RadWindowManager1" Modal="true" runat="server" Behaviors="Close,Maximize"
            Skin="Vista" IconUrl="./images/module/PopUp_iCon.png" Height="500px" Width="600px">
        </telerik:RadWindowManager>
        <div class="pageContent">
            <table border="0" cellpadding="0" cellspacing="5" width="100%">
                <tr>
                    <td align="left" valign="middle">
                        <div>
                            <uc1:SpecialReportsMenu ID="SpecialReportsMenu1" runat="server" />
                        </div>
                        <table width="80%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="13%" style="height:20px;">
                                </td>
                                <td width="50%">
                                </td>
                                <td width="17%">
                                </td>
                            </tr>
                            <tr>
                                <td class="formLeft" style="height:20px;">
                                    Choose project :
                                </td>
                                <td class="formLeft">
                                    <asp:DropDownList ID="ddlProjectID" runat="server" OnSelectedIndexChanged="ddlProjectID_SelectedIndexChanged"
                                        CssClass="selectboxsize" AutoPostBack="True" class="selectboxsize" Width="250px">
                                    </asp:DropDownList>
                                </td>
                                <td class="formRight">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlProjectID"
                                        SetFocusOnError="true" ErrorMessage="Please select Project ID" InitialValue="0"
                                        ValidationGroup="VGRespondentData"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="formLeft" style="height:20px;">
                                    Choose question :
                                </td>
                                <td class="formLeft">
                                    <asp:DropDownList ID="ddlQuestion" runat="server" Width="250px" AutoPostBack="true"
                                        OnSelectedIndexChanged="ddlQuestion_SelectedIndexChanged" CssClass="selectboxsize">
                                        <asp:ListItem Value="-1">Choose</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="formLeft" style="height:20px;">
                                    Selected question :
                                </td>
                                <td class="formLeft">
                                    <asp:Label runat="server" ID="lblFulltxtquest" Text="" Width="100%"></asp:Label>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="formLeft" style="height:20px;">
                                    No.of responses :
                                </td>
                                <td class="formLeft">
                                    <asp:Label runat="server" ID="lblResponse"></asp:Label>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr id="tr1" runat="server">
                                <td>
                                </td>
                                <td align="center" style="padding-top: 5px">
                                    <asp:Label ID="lblerror" runat="server" ForeColor="Red" CssClass="labeltext" Font-Bold="True"></asp:Label>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table id="tblRespData" runat="server" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td align="center">
                                    <asp:Label ID="lblMsgResData" runat="server" CssClass="labeltext" Text="Label" Visible="false"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tr id="trComFilter" runat="server">
                                            <td align="left">
                                                <table width="100%" id="tblMapView" runat="server">
                                                    <tr>
                                                        <td align="right">
                                                            <asp:UpdateProgress ID="updProgress" AssociatedUpdatePanelID="" runat="server">
                                                                <ProgressTemplate>
                                                                    <table>
                                                                        <tr>
                                                                            <td style="width: 50px; background-color: Red;">
                                                                                <asp:Label ID="lblProcessResp" ForeColor="White" BorderColor="red" Text="Loading..."
                                                                                    runat="server"></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </ProgressTemplate>
                                                            </asp:UpdateProgress>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                <tr style="width: 40px">
                                                                    <td>
                                                                        <telerik:RadTabStrip ID="rtabstripChart" runat="server" MultiPageID="radMultiPg"
                                                                            SelectedIndex="0" Width="227px">
                                                                            <Tabs>
                                                                                <telerik:RadTab Text="Heat Map" CssClass="labeltext">
                                                                                </telerik:RadTab>
                                                                                <telerik:RadTab Text="Individual Images" CssClass="labeltext">
                                                                                </telerik:RadTab>
                                                                            </Tabs>
                                                                        </telerik:RadTabStrip>
                                                                        <telerik:RadMultiPage ID="radMultiPg" runat="server" SelectedIndex="0">
                                                                            <telerik:RadPageView ID="radHeatMap" runat="server">
                                                                                <div>
                                                                                    <table width="100%" border="0">
                                                                                        <tr>
                                                                                            <td width="50%" align="left" class="formLeft" style="padding-left: 100px; padding-top: 10px">
                                                                                                Heat map of Green selection
                                                                                            </td>
                                                                                            <td width="50%" align="left" class="formLeft" style="padding-left: 100px; padding-top: 10px">
                                                                                                Heat map of Red selection
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr style="height: 100px;">
                                                                                            <td align="left" runat="server" id="tdDispArea" valign="top" width="60%">
                                                                                             <table><tr><td  class="ImageFix">
                                                                                                <div id="divBackCombinedfront" runat="server" class="Redtransparent">
                                                                                                </div>
                                                                                                <asp:Image runat="server" ID="divBackCombinedbottom" class="Redtransparent" />
                                                                                                <div id="divBackCombinedtop" runat="server" class="OriginalImage">
                                                                                                </div>
                                                                                                 </td></tr></table>   
                                                                                            </td>
                                                                                            <td align="left" runat="server" id="tdDispArea_Red" valign="top" width="40%">
                                                                                            <table><tr><td  class="ImageFix">
                                                                                                <div id="divBackCombinedtop_Red" runat="server" class="Redtransparent">
                                                                                                </div>
                                                                                                <asp:Image runat="server" ID="divBackCombinedbottom_Red" class="Redtransparent" />
                                                                                                <div id="divBackCombinedfront_Red" runat="server" class="OriginalImage">
                                                                                                </div>
                                                                                                </td></tr></table>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td style="height: 5px;">
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="2" valign="bottom">
                                                                                                <div style="width: 280px; height: 38px; text-align: center; vertical-align: middle;
                                                                                                    padding-left: 13px;">
                                                                                                    <div style="width: 280px; float: left" runat="server" id="divCommonPalete">
                                                                                                        <div style="width: 280px; padding-top: 3px">
                                                                                                            <span style="width: 85px; display: block; float: left; text-align: left" class="formLeft">
                                                                                                                high</span> <span style="width: 85px; display: block; float: left; text-align: center;
                                                                                                                    font-family: Arial, Helvetica, sans-serif; font-size: 12px" class="formCenter">medium</span>
                                                                                                            <span style="width: 80px; display: block; float: left; text-align: right" class="formRight">
                                                                                                                low</span>
                                                                                                        </div>
                                                                                                        <div style="height: 20px">
                                                                                                        </div>
                                                                                                        <div style="width: 256px">
                                                                                                            <asp:Image ID="imgPallete3" runat="server" ImageUrl="~/images/module/pallete.bmp" Height="5px"
                                                                                                                Width="256px" />
                                                                                                        </div>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </div>
                                                                            </telerik:RadPageView>
                                                                            <telerik:RadPageView ID="radIndividuals" runat="server">
                                                                                <div>
                                                                                    <asp:Panel ID="pnlGV" runat="server" ScrollBars="Auto">
                                                                                        <asp:Repeater ID="rptrQuestion" runat="server" OnItemDataBound="rptrQuestion_ItemDataBound">
                                                                                            <ItemTemplate>
                                                                                                <table width="100%" border="0">
                                                                                                    <tr>
                                                                                                        <td class="formLeft">
                                                                                                            <asp:Label ID="lblQuesttxt" runat="server" Visible="false"></asp:Label>
                                                                                                        </td>
                                                                                                        <td align="right" style="width: 80px; padding-right: 15px" valign="top" class="labeltext">
                                                                                                            <asp:LinkButton ID="lnkBtnViewFile" Text="View file" CssClass="labeltext" runat="server"
                                                                                                                Visible="false" CommandArgument='<%#Eval("Path")%>' CommandName="View file"></asp:LinkButton>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="2">
                                                                                                               
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="2" align="left">
                                                                                                            <table width="390px" border="0" cellpadding="0" cellspacing="0" class="tablebg">
                                                                                                                <tr>
                                                                                                                    <td align="center">
                                                                                                                        <table width="390px" cellpadding="0" cellspacing="0" border="0" class="tablemain">
                                                                                                                            <td>
                                                                                                                                <asp:GridView ID="GVRespondentData" runat="server" EnableViewState="true" Width="390px"
                                                                                                                                    AutoGenerateColumns="False" GridLines="None" OnRowDataBound="GVRespondentData_RowDataBound" AllowPaging="True" PageSize="2" OnPageIndexChanging="GVRespondentData_PageIndexChanging" >
                                                                                                                                    <Columns>
                                                                                                                                        <asp:BoundField DataField="PaM_Id" HeaderText="RespondentID" HeaderStyle-Width="130px"
                                                                                                                                            ItemStyle-Width="120px">
                                                                                                                                            <ItemStyle Font-Bold="True" Font-Size="8pt" HorizontalAlign="Center" />
                                                                                                                                        </asp:BoundField>
                                                                                                                                        <asp:BoundField DataField="Response_ID" HeaderText="ResponseID" HeaderStyle-Width="130px"
                                                                                                                                            ItemStyle-Width="120px">
                                                                                                                                            <ItemStyle Font-Bold="True" Font-Size="8pt" HorizontalAlign="Center" />
                                                                                                                                        </asp:BoundField>
                                                                                                                                        <asp:BoundField DataField="WebApp_Id" HeaderText="WebAppID" Visible="false">
                                                                                                                                            <ItemStyle Font-Bold="True" Font-Size="8pt" HorizontalAlign="Center" />
                                                                                                                                        </asp:BoundField>
                                                                                                                                        <asp:TemplateField HeaderText="View map" HeaderStyle-Width="130px" ItemStyle-Width="130px">
                                                                                                                                            <ItemTemplate>
                                                                                                                                                <asp:LinkButton ID="lnkBtnViewMap" CssClass="labeltext" Text="View map" runat="server"
                                                                                                                                                    CommandArgument='<%#Eval("Ans_Id")%>' ></asp:LinkButton>
                                                                                                                                            </ItemTemplate>
                                                                                                                                            <ItemStyle HorizontalAlign="Center" />
                                                                                                                                        </asp:TemplateField>
                                                                                                                                        <asp:BoundField DataField="Ans_Id" />
                                                                                                                                    </Columns>
                                                                                                                                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                                                                                                                    <SelectedRowStyle />
                                                                                                                                    <HeaderStyle CssClass="tdheader" HorizontalAlign="Center" Height="30px" />
                                                                                                                                    <RowStyle CssClass="tdfirst" />
                                                                                                                                    <AlternatingRowStyle CssClass="tdsecond" />
                                                                                                                                    <EmptyDataTemplate>
                                                                                                                                        No response found.
                                                                                                                                    </EmptyDataTemplate>
                                                                                                                                </asp:GridView>
                                                                                                                            </td>
                                                                                                                        </table>
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </table>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </ItemTemplate>
                                                                                        </asp:Repeater>
                                                                                    </asp:Panel>
                                                                                    <asp:Label ID="lblNoData" Text="No data found." runat="server" Visible="False" Font-Size="9pt"
                                                                                        ForeColor="#FF3300"></asp:Label></div>
                                                                            </telerik:RadPageView>
                                                                        </telerik:RadMultiPage>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                                <tr style="width: 40px">
                                                                    <td>
                                                                    </td>
                                                                </tr>
                                                                <tr id="trRespData" runat="server">
                                                                    <td align="center" style="padding-top: 20px">
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 5px">
                                       
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div runat="server" id="divContainer" style="position: absolute; display: none;">
            <div style="color: Red; float: right; font-size: 9pt; cursor: hand;" onclick="hideViewFile();">
                [X]</div>
            <img runat="server" id="imgViewFile" src="" alt="Background Image" />
        </div>
    </div>

CS:

protected void GVRespondentData_PageIndexChanging(object sender, GridViewPageEventArgs e)
  
{
  
GridView GVRespondentData = radMultiPg.FindControl("radIndividuals").FindControl("pnlGV").FindControl("rptrQuestion").FindControl("GVRespondentData") as GridView;
  
//GridView GVRespondentData = pnlGV.FindControl("ctl00_ContentPlaceHolder1_rptrQuestion_ctl00_GVRespondentData") as GridView;
  
  
  
GVRespondentData.PageIndex = e.NewPageIndex;
  
GVRespondentData.DataBind();
  
}
i am unable to access the gridview "GVRespondentData" directly and also using find control.I am getting the issue when i click on the page number of the grid.I am getting null when i did quick watch for the variable GVRespondentData.

Error Message:
"Object reference not set to an instance of an object."
Stack Trace:

"   at iPinion.ControlPanel.Web.iPi_HeatMapRespondentData.GVRespondentData_PageIndexChanging(Object sender, GridViewPageEventArgs e) in E:\\WorkArea.Rajesh\\Projects\\Source\\Ipinion_New\\Source\\iPinion\\Ipinion_IAIntegration_Final\\iPinion.ControlPanel.Web\\iPi_HeatMapRespondentData.aspx.cs:line 229\r\n   at System.Web.UI.WebControls.GridView.OnPageIndexChanging(GridViewPageEventArgs e)\r\n   at System.Web.UI.WebControls.GridView.HandlePage(Int32 newPage)\r\n   at System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup)\r\n   at System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument)\r\n   at System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)\r\n   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)\r\n   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)\r\n   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)"

Please reply me ASAP.
Regards,
Rajesh D

 

Rajesh
Top achievements
Rank 1
 asked on 10 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?