Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 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
189 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
183 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
190 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
75 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
174 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
1 answer
183 views
Hi,

I implemented drilldown by following "https://github.com/telerik/aspnet-sdk/tree/master/PivotGrid/DrillDown". In my case, I am building a url and attaching to each cell to open detail report. If I view all the records in PivotGrid in single page, drill works as expected.

If it's multipage grid, then it's throwing an exception except in first page.

Please advice.
Radoslav
Telerik team
 answered on 29 Aug 2014
3 answers
183 views
Hi Friends,
I am looking cloud-upload in rad editor
I think there is example of image upload inside rad-editor but I did not found any example to use cloud upload inside rad-editor can some one please list an example
So I can add a button , open RadCloudUpload in popup and upload images and list those images in rad-editor once upload

Thanks,
Shakti
Ianko
Telerik team
 answered on 29 Aug 2014
5 answers
313 views
It seems like no matter what i do, switching between HTML and code view removes the <!doctype> tag from my content.  I've recorded a video that demonstrates this behavior using your online demos. 

http://youtu.be/G7xR036tRXQ?hd=1

Is there a way to correct this behavior?

Thanks!
-Mark
Ianko
Telerik team
 answered on 29 Aug 2014
1 answer
206 views
Hi,

One of our page uses Radgrid and in client-side wanted to add one more column to the grid. Have been searching the whole site for any ideas or answers but no luck.

Below is the code

<script type="text/javascript">
 
Sys.Application.add_load(function () {

$("#master_DefaultContent_rts_ts1891_s4143_f3987srvgrid_ctl00 thead tr").append("<th>Primary Selection</th>");
$("#master_DefaultContent_rts_ts1891_s4143_f3987srvgrid_ctl00 tr:gt(0)").append("<td><input id='PrimarySelection' type='checkbox' onclick='handleClick(this);' /></td>");

var tableView = $find("<%= master_DefaultContent_rts_ts1891_s4143_f3987srvgrid %>").get_masterTableView();
tableView.rebind();

});

function handleClick(cb) {
var user = $(this).closest("tr").find("td:eq(1)").text();
alert(user);
userIds.splice($.inArray(user, userIds), 1);
if (cb.checked) {
userIds.push(user);
}
}

</script>

Thanks,
Prem
Shinu
Top achievements
Rank 2
 answered on 29 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?