Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
140 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
402 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
39 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
109 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
1 answer
64 views
  1. Could someone please provide dates when PivotGrid exit beta phase.
  2. Also, will export to excel functionality be provided out of the box in the first stable release?
Maria Ilieva
Telerik team
 answered on 10 Jan 2013
1 answer
152 views
I have a navigation repeater that emits a series of link buttons, each of which calls a client-side function and passes an ID that I want to use to bind a second (detail) repeater on the page. I then call the RadAjaxManager's AjaxRequest() method to perform the binding of the detail repeater. When I click any of the rendered link buttons the detail repeater is not being bound.

I've created RadAjaxManager settings as follows...

<ajaxsettings>
    <telerik:AjaxSetting AjaxControlID="rptNav">
        <updatedcontrols>
            <telerik:AjaxUpdatedControl ControlID="rptDetail" />
        </updatedcontrols>
    </telerik:AjaxSetting>
</ajaxsettings>

Is it sufficient to cover the entire navigation repeater with a single Ajax setting in the Ajax Manager as above, or should I be programmatically adding each Link Button to the Ajax Manager's settings at runtime?

Rob
Maria Ilieva
Telerik team
 answered on 10 Jan 2013
4 answers
133 views

I'm using the normal jquery to retrieve a reference to the scheduler like below.  The problem is that it only works sometimes.  With no code changes it might work once, then immediately after that not.  sched would just return as null.

var sched = $find('RadScheduler1');

I've tried different variations, and I can get a reference to the emitted <div> element, but it won't have any of the Telerik properties or methods hooked up.

ETA - it seems it might be related to the VS environment.  If I open it from there with debugging, it occurs much more than without or opening it directly from IIS.

Marbry
Top achievements
Rank 1
 answered on 10 Jan 2013
5 answers
79 views
I'm currently in the process of updating our web application to be more iPad/iPhone friendly and I've run into a problem with the FormDecorator.  I have the FormDecorator set to decorate text boxes.  I have a text box for an email address, and to make the iPad/iPhone display a keyboard formatted for email, I need to change the "type" attribute of the text box to be "email" instead of "text".  When I do this, it is no longer decorated by the FormDecorator.  I know that the "email" type is part of HTML 5, so I was wondering if you were planning on supporting this in a future update or if there is a way that I can manually make this field get recognized by the FormDecorator.  Thanks for your help.
Peter
Top achievements
Rank 1
 answered on 10 Jan 2013
1 answer
124 views
Hi

Is it possible to show the dropdown in the autocompletebox on focus in the ASP.NET controls? I have searched the web but have only found solutions that apply to the silverlight and wpf controls.
Nencho
Telerik team
 answered on 10 Jan 2013
5 answers
297 views
Hi,
We have upgraded telerik control version 2012.2.912.40 recently. After upgrade, the radwindow vertical scrollbar is not complectly visible. The scroll bar "width" is hidden half in IE. Using developer tool, if we reduce the IFrame width from 100% to 99%, vertical scroll bar width is getting displayed correctly. It seems IFrame width is beyond the content window. No issues with horizontal scroll bar.
Attached the screenshot for the same. No luck even if we apply CSS. No issues before upgrade.

Please help us to resolve this issue.

Thanks
Hari
Rhbkv
Top achievements
Rank 1
 answered on 10 Jan 2013
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?