Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
148 views

I am using radmultipage. I want to extend radpageview using ascx. So I want to add myRadPageview to radmultipage at runtime. At runtime I can add myRadPageview to radmultipage like that


  

deneme = new Page1();
deneme.ID = "123
RadMultiPage1.PageViews.Add(deneme);
RadMultiPage1.SelectedIndex = 0;


After that I add myRadPageview to radmultipage but controls in myRadPageview doesn't exist when I clicked view source in my browser



 

   < div id="RadMultiPage1"><br>           <br>           </div><div id="123"><br>        <br>           </div><input id="RadMultiPage1_ClientState" name="RadMultiPage1_ClientState" type="hidden" /><br>          </div>




page1.ascx.cs

   

public partial class Page1 : Telerik.Web.UI.RadPageView{
 public Page1{
int i = 5
}
protected void Page_Load(object sender, EventArgs e; ; }
{}


page1.ascx



    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Page1.ascx.cs" Inherits="Organon.IM.Presentation.ModellingModule.Page1" %><br>    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><br>    <br>    <telerik:RadPageView ID="rpv1" runat="server" Height="159px" Width="163px"><br>    <br>        <
 
asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br>       
 <asp:Button ID="Button1" runat="server" Text="Button32432"/><br>
 
    <br>    </telerik:RadPageView>


Why controls which in page1 doesn't show in radmultipage?

Princy
Top achievements
Rank 2
 answered on 20 Jan 2014
1 answer
71 views
Hi,
                   I Want to Horizontal Scroll bar on Grid but i have problem they not shown on grid. I use following client setting property of a grid.
 <ClientSettings >
               <Selecting AllowRowSelect="true" />
               <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
              <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false"
      ClipCellContentOnResize="true" EnableRealTimeResize="false" AllowResizeToFit="true"   />
   </ClientSettings>

please provide solution on it.
Thanks,
Rahul



Princy
Top achievements
Rank 2
 answered on 20 Jan 2014
1 answer
167 views
hi,

I am using radlistview but ı can't select a row at run time using mouse click. my code is

<telerik:RadListView ID="rlvNominal" runat="server" ItemPlaceholderID="Layout" AllowMultiItemSelection="True">
                            <LayoutTemplate>
                                <asp:PlaceHolder runat="server" ID="Layout"></asp:PlaceHolder>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <div><p>Lorem ipsum dolor sit posuere.</p></div>
                                
                            </ItemTemplate>
                            <SelectedItemTemplate>
                               <div><p>choosed</p></div> 
                            </SelectedItemTemplate>
                        </telerik:RadListView>


how can I select a row? note: I added a few rows at aspx.cs
Shinu
Top achievements
Rank 2
 answered on 20 Jan 2014
1 answer
363 views
Hi,
          I want to do change the RadGrid Filter Icon how can do it. please provide demo example.

Thanks,
Rahul
Princy
Top achievements
Rank 2
 answered on 20 Jan 2014
1 answer
135 views
How to get the selected Item Value and at time that value go to input to  radgrid
Shinu
Top achievements
Rank 2
 answered on 20 Jan 2014
1 answer
156 views
I have a quite complex nested controls scenario so I wasn't sure to post here on in the RadGrid section anyway..
The control chain is this:
RadGrid (HierarchyLoadMode = "Conditional") > NestedViewTemplate > Panel > RadMultipage (RenderSelectedPageOnly = "false") > UserControl > FormView

Inside the FormView I have some RadScriptBlock that provide functions or some page load initialization.
Just to make an example (that I'm trying to use for debugging as well) let's say inside the ItemTemplate of the FormView I have

<telerik:RadScriptBlock runat="server">
    <script type="text/javascript">
        alert('test');
   </script>
</telerik:RadScriptBlock>

While inside the EditItemTemplate of the FormView I don't have this script.
I expand the RadGrid nested view of a row and initialize the FormView inside my User Control to FormViewMode = Edit.

So the script inside ItemTemplate it's not fired and that's correct.

Then upon postback (ajax since the RadGrid is Ajaxified with RadAjaxManager) I switch the FormView inside my User Control to FormViewMode = ReadOnly and the problem is that the javascript alert it's not called the same and this is not good.

Same thing of course apply if I expand the RadGrid NestedViewTemplate with FormView inside in FormViewMode = ReadOnly (script works) then after ajax postback I switch to FormViewMode = Edit (no script there it's ok) then after another ajax postback switch back to FormViewMode = ReadOnly (script doesn't work anymore)

I don't know where in the chain is the culprit if in Multipage rendering behaviour or in RadGrid or in ajax or it's not even tied to Telerik controls (in this case forgive me for the question and you can delete the topic).

Any hint? This is driving me crazy.. :)
Massimiliano
Top achievements
Rank 1
 answered on 19 Jan 2014
1 answer
356 views
I have a Radgrid with a column "Period " which is shown as month/year (MMM/yyyy).
The column is bound to an sql table and the field is a datetime.

I have multiple entries for each period and I would like to group the rows by such filed in order to have all months/years collapsable and separated in the grid. How can I achieve that?
I have looked at various examples but I am not coming right. Your support is appreciated.
Thank you,
Felice

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" CellSpacing="0" Culture="it-IT" DataSourceID="SqlDataSource1" GridLines="None"  Height="560px" Skin="WebBlue">
                        <ExportSettings>
                           <Pdf  PaperSize="A4">
                           </Pdf>
                       </ExportSettings>
                       <ClientSettings>
                           <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                       </ClientSettings>
                       <MasterTableView AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="SqlDataSource1" PageSize="20">
                           <CommandItemSettings ShowExportToExcelButton="True" ShowExportToPdfButton="True" />
                           <RowIndicatorColumn Visible="False">
                           </RowIndicatorColumn>
                           <ExpandCollapseColumn Created="True">
                           </ExpandCollapseColumn>
                           <Columns>
                               <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" FilterControlAltText="Filter Id column" HeaderText="Id" ReadOnly="True" SortExpression="Id" UniqueName="Id">
                                   <ColumnValidationSettings>
                                       <ModelErrorMessage Text="" />
                                   </ColumnValidationSettings>
                                   <HeaderStyle Width="50px" />
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn DataField="Periodo" DataType="System.DateTime" FilterControlAltText="Filter Periodo column" HeaderText="Period" SortExpression="Periodo" UniqueName="Periodo" DataFormatString="{0:MMM/yyyy}">
                                   <ColumnValidationSettings>
                                       <ModelErrorMessage Text="" />
                                   </ColumnValidationSettings>
                                   <HeaderStyle Width="80px" />
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn DataField="Due" DataType="System.Int32" FilterControlAltText="Filter Due column" HeaderText="Due" SortExpression="Due" UniqueName="Due" DataFormatString="{0:R #.###,##}">
                                   <ColumnValidationSettings>
                                       <ModelErrorMessage Text="" />
                                   </ColumnValidationSettings>
                                   <HeaderStyle Width="80px" />
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn DataField="Paid" DataType="System.Int32" FilterControlAltText="Filter Paid column" HeaderText="Paid" SortExpression="Paid" UniqueName="Paid" DataFormatString="{0:R #.###,##}">
                                   <ColumnValidationSettings>
                                       <ModelErrorMessage Text="" />
                                   </ColumnValidationSettings>
                                   <HeaderStyle Width="80px" />
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn DataField="Data_pag" DataType="System.DateTime" FilterControlAltText="Filter Data_pag column" HeaderText="Payment date" SortExpression="Data_pag" UniqueName="Data_pag" DataFormatString="{0:dd/MM/yyyy}">
                                   <ColumnValidationSettings>
                                       <ModelErrorMessage Text="" />
                                   </ColumnValidationSettings>
                                   <HeaderStyle Width="100px" />
                               </telerik:GridBoundColumn>
                               <telerik:GridCalculatedColumn  DataFields="Due, Paid" Expression="{0}-{1}" FilterControlAltText="Filter column column" UniqueName="Balance" DataFormatString="{0:R #.###,##}" HeaderText="Balance">
                                   <HeaderStyle Width="80px" />
                               </telerik:GridCalculatedColumn>
                               <telerik:GridBoundColumn DataField="Expenses" DataType="System.Int32" FilterControlAltText="Filter Expenses column" HeaderText="Expenses" SortExpression="Expenses" UniqueName="Expenses" DataFormatString="{0:R #.###,##}">
                                   <ColumnValidationSettings>
                                       <ModelErrorMessage Text="" />
                                   </ColumnValidationSettings>
                                   <HeaderStyle Width="80px" />
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn DataField="Ritardo" DataType="System.Int32" FilterControlAltText="Filter Ritardo column" HeaderText="Delay" ReadOnly="True" SortExpression="Ritardo" UniqueName="Ritardo">
                                   <ColumnValidationSettings>
                                       <ModelErrorMessage Text="" />
                                   </ColumnValidationSettings>
                                   <HeaderStyle Width="50px" />
                               </telerik:GridBoundColumn>
                               <telerik:GridBoundColumn DataField="Notes" FilterControlAltText="Filter Notes column" HeaderText="Notes" SortExpression="Notes" UniqueName="Notes">
                                   <ColumnValidationSettings>
                                       <ModelErrorMessage Text="" />
                                   </ColumnValidationSettings>
                               </telerik:GridBoundColumn>
                           </Columns>
                       </MasterTableView>
                   </telerik:RadGrid>
Felice
Top achievements
Rank 1
 answered on 18 Jan 2014
1 answer
168 views
ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL execution], [], [], [], [], [], [], [], [], [], []

ORA-06544: PL/SQL: internal error, arguments: [78502], [], [], [], [], [], [], []

ORA-06553: PLS-801: internal error [78502] 
pls help me.....
David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 18 Jan 2014
1 answer
179 views
Hi.

I am trying to replace specific characters when exporting to excel as it doesn't recognise the contents as numeric data when I do not.  I have managed to get it working for the normal cells but it I cannot seem to get it working for the footers.

Please find my code snippet below, and advise on any possible ways to do this.

Protected Sub grdSingleCurrency_ExportCellFormatting(sender As Object, e As ExportCellFormattingEventArgs) Handles grdSingleCurrency.ExportCellFormatting, grdHoldingsSummary.ExportCellFormatting,
grdMultiCash.ExportCellFormatting, grdMultiCurrency.ExportCellFormatting, grdSingleCash.ExportCellFormatting
    
    If (Not String.IsNullOrWhiteSpace(e.Cell.Text)) Then
        e.Cell.Text = e.Cell.Text.Replace(",", String.Empty).Replace(" ", String.Empty)
    End If
 
    If (Not String.IsNullOrWhiteSpace(e.FormattedColumn.FooterText)) Then
        e.FormattedColumn.FooterText.Replace(",", String.Empty)
    End If
 
End Sub

On to the second issue, how/where can I do the same as the above, but for csv export?  As there isn't a csvExportFormatting event.

Any and all help will be greatly appreciated.

Kind regards.
Leon Havenga
Princy
Top achievements
Rank 2
 answered on 18 Jan 2014
1 answer
85 views
Hello,
I've a radgrid which is working properly when I access the website using localhost i.e. localhost/mywebsite
when I use the server name (the same machine i.e. dev machine) devmachine/mywebsite  I got two problems
1. in the UI radgrid skin is changed mainly for the grouping header
2. getting js exception
in line:
 var d=h.tHead.rows;
in this method:
Telerik.Web.UI.Grid.getMultiHeaderCells=function(k){var c="MultiHeader";

exception is unable to get property 'rows' of undefined or null reference.

As I've multi header for this grid,

note everything is working without any errors using localhost/mywebsite.
I'm using VS2012, windows 8.1, IE 11
Ahmed
Top achievements
Rank 1
 answered on 18 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?