Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Hi, i want to edit the pager message at the bottom of grid to something like : showing 1-10 of 50 items in 50 pages. How to edit it? 
Princy
Top achievements
Rank 2
 answered on 29 Aug 2014
10 answers
776 views
Hello,

I have a field in my RadGrid where I want to be able to select multiple items. For example, field "Colors" will allow users to choose Red, Blue, Green, Yellow and/or Orange. Multiple selections allowed. How can this be implemented within RadGrid? I am aware of GridCheckBoxColumn but that only provides a single checkbox.

I'm open to using other selection controls, like combobox. 

Thank you.
Windhoek2010
Top achievements
Rank 1
 answered on 29 Aug 2014
1 answer
289 views
Hello,

I'm using a custom file browser provider which works fine. 

I have a tree with many folders and I override the folder icon in css :

.RadFileExplorer .rfeThumbnailView .rfeFile .rfeFileIcon.folder {
 ...
}

Now, I want to change the icon for a single folder (i.e. the recycle bin folder).

How can I do this ?
Shinu
Top achievements
Rank 2
 answered on 29 Aug 2014
3 answers
228 views

Hi Team,

I am using treelist. I am binding data to treelist and calling below method

<ClientSettings>
                            <ClientEvents OnItemDeselected="ReviewerAssignmentList_OnItemDeselected"  OnItemSelected="ReviewerAssignmentList_OnItemSelected"
                                 OnItemCreated="ReviewerAssignmentList_OnItemCreated" />
                            <Selecting AllowItemSelection="true" UseSelectColumnOnly="true" />
                            <Scrolling AllowScroll="true" ScrollHeight="431px" UseStaticHeaders="true" />
                        </ClientSettings>

Data is binded to treelist.

And in method ReviewerAssignmentList_OnItemCreated

function ReviewerAssignmentList_OnItemCreated(sender, args) {               
                alert('1');               
            }

It is not called method ReviewerAssignmentList_OnItemCreated, but If I click anywhere on page this method is called and displays alert.

Could any body help me on this, so that alert is displayed when rows are created.

Regards
Sandy
Princy
Top achievements
Rank 2
 answered on 29 Aug 2014
1 answer
75 views
Hi.
I am starting a new project and can not choose which product should I use (Kendo UI or ASP.NET AJAX). I started with KendoUI and PHP, but ASP.NET has some really good stuff to write server code, so I said I will give a try to ASP.NET AJAX. Then I started to think if I really need ASP.NET AJAX to use ASP.NET for server code (of course not, but what advantage do I get).
I like KendoUI because it has nice design (ASP.NET AJAX looks like desktop application not web page). But ASP.NET AJAX has many more controls.

My application will definitely be SPA. I don't plan to change content, but use Window control for showing different contents. I plan to get data (ListView, ComboBox, Grid) from server from database (PostgreSQL for PHP or MsSQL for ASP.NET).

My main question is if page main goal is SPA and showing content in windows should I go with KendoUI or ASP.NET AJAX? What advantages they had? Do I really need all that ASP.NET AJAX offer if I don't plan to use any server round trips (no server side events ...)?

Marin Bratanov
Telerik team
 answered on 29 Aug 2014
2 answers
171 views
I'm creating dynamic multi header radgrid and inside the rows used colspan as well. everything works fine until i do horizontal scroll. during the horizontal scroll the cells are collapsed and some cells are missing. everything went wrong if we do horizontal scroll. any solution to fix this issue?
yogaraj
Top achievements
Rank 1
 answered on 29 Aug 2014
3 answers
175 views
I am attempting to upgrade from IE8 and RadControls Q4 2008 to IE11 and RadControls Q1 2014.  The grid uses the Web20 skin.  Attached are screen shots of the previous look (Grid2008.jpg) and the upgraded look (Grid2014.jpg).  In the header of the grid, a long, dark horizontal line has appeared at the bottom of the header and a blue block has appeared at the far right of the header just above the scrollbar.  I need assistance removing the horizontal line and the blue block in the header.  Is there a CSS solution for this?

Thanks,
Rob
Pavlina
Telerik team
 answered on 29 Aug 2014
1 answer
172 views
I have 4 grid controlss on 4 MultiPage controls and am exporting to a single Excel file.  The problem is that when I load the spreadsheet into Excel, It loads in Protected View. When I click the 'Enable Editing' button each of the data cells shows a comment that says," The number in this cell is formatted as text or preceded by an apostrophy." I then have to click the warning and convert 'each' cell to a number. Trying to select a whole column and format to number does not work.  I've looked at some of the articles on formatting cells when exporting but don't think the discussed events are firing.
Here is my exporting code:
#Region "exporting"

    Private struct As xls.ExportStructure = New xls.ExportStructure()
    Private tbl As xls.Table = New xls.Table()
    Private row As Integer = 1
    Private col As Integer = 1
    Private gridControlsFound As List(Of RadGrid) = New List(Of RadGrid)

    Private Sub btnexport_Click(sender As Object, e As EventArgs) Handles btnexport.Click
        FindGridsRecursive()
        ExportGrid()
    End Sub
    Private Sub FindGridsRecursive()
        Dim i = 1
        For Each pg As RadPageView In RadPageView1.MultiPage.PageViews
            Select Case i
                Case 1
                    Dim Grid As RadGrid = FindControl("Week1")
                    gridControlsFound.Add(DirectCast(Grid, RadGrid))
                    i += 1
                Case 2
                    Dim Grid As RadGrid = pg.FindControl("Week2")
                    gridControlsFound.Add(DirectCast(Grid, RadGrid))
                    i += 1
                Case 3
                    Dim Grid As RadGrid = pg.FindControl("PayPeriod")
                    gridControlsFound.Add(DirectCast(Grid, RadGrid))
                    i += 1
                Case 4
                    Dim Grid As RadGrid = pg.FindControl("ACDetail")
                    gridControlsFound.Add(DirectCast(Grid, RadGrid))
            End Select
        Next
    End Sub

    Private isFirstItem As Boolean = True
    Private Sub GenerateTable(grid As RadGrid, singleTable As xls.Table)
        '       If ExportingType.SelectedValue = "1" Then
        singleTable = New xls.Table(grid.ID)
        row = 1
        col = 1
        'Else
        'If Not isFirstItem Then
        'row += 1
        'Else
        'isFirstItem = False
        'End If
        'End If

        Dim headerItem As GridHeaderItem = TryCast(grid.MasterTableView.GetItems(GridItemType.Header)(0), GridHeaderItem)

        For i As Integer = 3 To headerItem.Cells.Count - 1
            singleTable.Cells(i - 1, row).Value = headerItem.Cells(i).Text
        Next

        row += 1

        For Each item As GridDataItem In grid.MasterTableView.Items
            For Each column As GridColumn In grid.Columns
                singleTable.Cells(col, row).Value = item(column.UniqueName).Text
                col += 1
            Next
            col = 1
            row += 1
        Next

        struct.Tables.Add(singleTable)
    End Sub

    Private Sub ExportGrid()
        For Each grid As RadGrid In gridControlsFound
            grid.AllowPaging = False
            grid.CurrentPageIndex = 0
            getlocadate()
            grid.Rebind()
            GenerateTable(grid, tbl)
        Next

        Dim renderer As New xls.XlsBiffRenderer(struct)
        Dim renderedBytes As Byte() = renderer.Render()
        Response.Clear()
        Dim filename As String = loca & "|" & startDate.ToShortDateString & "<>" & endDate2.ToString & ".xls"
        Response.AppendHeader("Content-Disposition:", "attachment; filename=" & filename)
        Response.ContentType = "application/vnd.ms-excel"
        Response.BinaryWrite(renderedBytes)
        Response.End()
    End Sub
#End Region
Kostadin
Telerik team
 answered on 29 Aug 2014
1 answer
70 views
Mycode: 
<telerik:RadAjaxManagerProxy ID="uxRMP" runat="server">
    <AjaxSettings>
        <ext:AjaxSetting AjaxControlID="bt_sencomments">
            <UpdatedControls>
                <ext:AjaxUpdatedControl ControlID="rpcommentcontainner" LoadingPanelID="uxLoadingPanel" UpdatePanelCssClass="" />
            </UpdatedControls>
        </ext:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 <div id="commentsContainer">
            <asp:Repeater runat="server" ID="rpcommentcontainner">
                <ItemTemplate>
                    <div class="commentWrapper">
                        <img alt="avatar" src='<%#ProcessingImage((byte[])Eval("ProfilePicture"))  %>'>
                        <span>
                            <strong>From: </strong><%# Eval("FullName")%> - <%#Eval("CreatedDate")%>
                            
                        </span>
                        <div class="commentContent">
                            <%# Eval("CommentContent")%>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
------------
I dont see effect, webpage have loaded again!
Do you have a method for me?
Eyup
Telerik team
 answered on 29 Aug 2014
2 answers
161 views
Hello

Can you accept  Zero : "0" or null value in ROOT item : please ?

I don't usually  use Null value in my database.

thanks
Olivier
Olivier
Top achievements
Rank 2
 answered on 29 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?