Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
202 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
397 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
174 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
189 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
429 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
225 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
212 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
113 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
0 answers
112 views
In demo about Customizing Advanced Insert and Edit Forms , you guide a custom control used for editing resources that support multiple values.So How to diplay multiple values in checkboxlist  to a table, instead of`a list?
Thanks!
Vi
Top achievements
Rank 1
 asked on 17 Jan 2014
4 answers
100 views
I implemented the RadNotification control on my website and it works great in IE9 and FF.  When I browse to the site using IE8, an "Unspecified Javascript Error" dialog pops up and the notification control never displays.  Please help!!!
RBarnes
Top achievements
Rank 1
 answered on 17 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?