Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
77 views
The new "Social Share" feature is a great feature and thank you for this. I think the next step for Telerik, is to provide a control that we can allow user to authenticate via their FB or Twitter or Google+ account.
Instead of each one of us writing the API code to these three social network, it would be best to be part of a control.

It's also very important for Telerik to provide events and methods/properties that when a person is logged in successfully, then we can retrieve the available attributes that FB or Twitter or Google+ provides from their account (at least name and Email address). This is important, because in many cases (for example), I need to create that person into the ASP.Net membership system and I also create a series of other tables to extend that user (i.e. Profile, settings, privacy setting and etc.) as part of my system. So, just authenticating them is not enough, but to be able to get access to the their attributes (of course this is with their "Allow" permission).

Love to hear comments on this!
Thank you in advance!
Ben Hayat
Top achievements
Rank 2
 answered on 01 Feb 2012
4 answers
103 views
OK, here is what I am trying to do. I have a grid and the customer wants totals at the bottom.  Here is an example of the columns in the grid.
<telerik:GridBoundColumn DataField="RulesIdentifiedCount" HeaderText="Rules Identified" Visible="true"                                    UniqueName="RulesIdentifiedCount">
</telerik:GridBoundColumn>
Here is an the code from the itemdatabound event.


Dim

 

 

rulesidentified As Integer = 0

 

If dtr.Read() Then
gridItem("RulesIdentifiedCount").Text = dtr("RulesIdentifiedCount")
rulesidentified = rulesidentified = dtr("RulesIdentifiedCount")
End If

At the end I am taking the rulesidentified variable and trying to set the footer.
If (TypeOf e.Item Is GridFooterItem) Then
Dim footerItem As GridFooterItem = CType(e.Item, GridFooterItem)
footerItem("RulesApplicableCount").Text = rulesidentified
End If


I am not getting the footer to show anything.  What am I doing wrong?
Richard
Top achievements
Rank 1
 answered on 01 Feb 2012
2 answers
51 views
Is it possible to display a Silverlight chart in a tooltip on a radgrid?
Matt
Top achievements
Rank 1
 answered on 01 Feb 2012
19 answers
214 views
Hi Guys,

I was wondering if any of you have tried to create a "OS" like webpage, with a taskbar showing your open windows??

I am trying to create a smalle web-os for a cms like system, and the "start" button is ready, and the windows open as I want them to - But it gets cluttered - so I was wondering if the windows like taskbar was an option??

Thank you in advance :-)

// Morten
Marin Bratanov
Telerik team
 answered on 01 Feb 2012
11 answers
101 views
Hi guys,
this is my second notice regarding this issue.I have aspx page with various telerik controls.There is a RadCombobox control where user choose 'Yes' or 'No' and after postback should go to the next control which is a RadNumericTextBox.
In IE8 works fine but in IE7 instead of going to the next control after postback it is jump on top of the screen.
Please help me with this issue.

Thanks so much,.
Vasil
Telerik team
 answered on 01 Feb 2012
5 answers
172 views
RadControls version 2011.3.1305.35

I have a very simple RadGrid example that allows column sorting.  I have added checkboxes to each column header.  I am experiencing 2 issues when attempting to sort.  The 1st, 3rd, 5th, ... (every other time) times that I click on the column header, my checkboxes disappear and the data does not sort.  This is undesired behavior.  The 2nd, 4th, 6th, ... times that I click on the column header, it sorts as expected and my checkboxes are visible as expected.  What I would like to accomplish is:

#1 - Everytime I click on a column header, the grid sorts.  I would expect the SortCommand event to get raised each time.
#2 - Everytime I click on a column header, the checkboxes are visible.

Please watch this video clip to see the what I have decribed as the issue.  I would expect my breakpoint to be hit on every column sort.

http://screencast.com/t/V8OTlSGMdXSL

Here is my code:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="RadGridSorting.aspx.vb" Inherits="RadGridSorting" %>
      
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>    
        <telerik:RadScriptManager runat="server" ID="mgrJS">
        </telerik:RadScriptManager>        
        <telerik:RadGrid runat="server" ID="dgHeader" Skin="Web20" AllowSorting="true" >
            <ClientSettings>
                <Scrolling UseStaticHeaders="True" />
                <Selecting EnableDragToSelectRows="False" />
            </ClientSettings>
            <MasterTableView BorderWidth="1px" GridLines="Both" style="border-collapse: collapse !Important;" Font-Bold="false" 
                             TableLayout="Fixed" AutoGenerateColumns="false" ShowHeader="True" >
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn Resizable="False" Visible="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <EditFormSettings>
                    <PopUpSettings ScrollBars="None" />
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>   
    </form>
</body>
</html>
Partial Class RadGridSorting
    Inherits System.Web.UI.Page
  
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            Dim dtHeader As New DataTable
            dtHeader.Columns.Add(New DataColumn("COL_ID", GetType(String)))
            Dim colRow As DataRow = dtHeader.NewRow
            colRow(0) = "1234567"
            dtHeader.Rows.Add(colRow)
            colRow = dtHeader.NewRow
            colRow(0) = "2345678"
            dtHeader.Rows.Add(colRow)
            colRow = dtHeader.NewRow
            colRow(0) = "3456789"
            dtHeader.Rows.Add(colRow)
            colRow = dtHeader.NewRow
            colRow(0) = "4567890"
            dtHeader.Rows.Add(colRow)
            colRow = dtHeader.NewRow
            colRow(0) = "5678901"
            dtHeader.Rows.Add(colRow)
            colRow = dtHeader.NewRow
            colRow(0) = "6789012"
            dtHeader.Rows.Add(colRow)
            colRow = dtHeader.NewRow
            colRow(0) = "7890123"
            dtHeader.Rows.Add(colRow)
            'Define columns of master table view.
            For Each row As DataRow In dtHeader.Rows
                Dim newCol As New GridBoundColumn
                dgHeader.MasterTableView.Columns.Add(newCol)
                newCol.HeaderText = row("COL_ID")
                newCol.DataField = row("COL_ID")
                newCol.DataFormatString = "{0:N0}"
                newCol.HeaderStyle.Width = 100
                newCol.ItemStyle.Width = 100
            Next
            Session("header") = dtHeader
        End If
    End Sub
  
    Protected Sub dgHeader_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles dgHeader.ItemDataBound
        If e.Item.ItemType = GridItemType.Header Then
            Dim hdrItem As GridHeaderItem = CType(e.Item, GridHeaderItem)
            For i As Integer = 2 To hdrItem.Cells.Count - 1
                Dim ctrl As LinkButton = CType(hdrItem.Cells(i).Controls(0), LinkButton)
                If ctrl IsNot Nothing Then
                    Dim val As Integer = 0
                    Integer.TryParse(ctrl.Text, val)
                    If val > 0 Then
                        Dim chk As New CheckBox
                        chk.ID = "chk" & val
                        hdrItem.Cells(i).Controls.Clear()
                        hdrItem.Cells(i).Controls.Add(chk)
                        hdrItem.Cells(i).Controls.Add(ctrl)
                        hdrItem.Cells(i).HorizontalAlign = HorizontalAlign.Center
                    End If
                End If
            Next
  
        End If
    End Sub
  
    Protected Sub dgHeader_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles dgHeader.NeedDataSource
        If Session("data") Is Nothing Then
            Session("data") = CreateTable()
        End If
        dgHeader.DataSource = Session("data")
    End Sub
  
    Private Function CreateTable() As DataTable
        Dim dtHeader As DataTable = Session("header")
        Dim dtData As New DataTable
  
        For Each dr As DataRow In dtHeader.Rows
            dtData.Columns.Add(New DataColumn(dr("COL_ID"), GetType(Integer)))
        Next
  
        'Populate w/ data
        Dim Generator As System.Random = New System.Random()
        Dim r As DataRow
        For i As Integer = 0 To 9
            r = dtData.NewRow
            For j As Integer = 0 To 6
                r(j) = Generator.Next(0, 100)
            Next
            dtData.Rows.Add(r)
        Next
        Return dtData
    End Function
  
    Protected Sub dgHeader_SortCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridSortCommandEventArgs) Handles dgHeader.SortCommand
        Dim s As String = ""
    End Sub
End Class

Thanks.
Rob
Top achievements
Rank 1
 answered on 01 Feb 2012
1 answer
656 views
Hi,

I'm trying to disable the button by clicking submit (In order to avoid double-click from the user). Below the code which I'm using:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function RequestStart(sender, args) {
var submitButton = $get("<%= EditButton.ClientID %>");
submitButton.disabled = true;
}
</script>
</telerik:RadCodeBlock
<telerik:RadAjaxPanel ID="MainRadAjaxPanel" runat="server" LoadingPanelID="MainRadAjaxLoadingPanel" ClientEvents-OnRequestStart="RequestStart" >
....... The form controls ....
<asp:Button ID="EditButton" runat="server" Text="Edit" SkinID="NormalButton" OnClick="EditButton_Click" />
</telerik:RadAjaxPanel>

Since the above javascript function is needed to be used in many pages in the website, and the submit button name may be changed (For example: EditButton, SubmitButton, ChangeButton ....), I'm wonder If it is possible to find the submit button name and to disable it using the above javascript.

Please, I need your help.

Regards,
Bader
Maria Ilieva
Telerik team
 answered on 01 Feb 2012
1 answer
36.0K+ views
Hello,

While trying to debug an issue with the RadEditor that we're having I ran into this and am not sure why or where it's coming from.
In Design mode I create a table, for example a 2x2 table with a number in each cell.
I go into HTML mode and remove the <p><br /></p> tags.

So all I have in the HTML is the following:
<table>
    <tbody>
        <tr>
            <td>1&nbsp;</td>
            <td>2&nbsp;</td>
        </tr>
        <tr>
            <td>3&nbsp;</td>
            <td>4&nbsp;</td>
        </tr>
    </tbody>
</table>

Now I got back into Design mode, press the Enter key, and copy and paste the existing table.
The result is the following:
<table>
    <tbody>
        <tr>
            <td>1&nbsp;</td>
            <td>2&nbsp;</td>
        </tr>
        <tr>
            <td>3&nbsp;</td>
            <td>4&nbsp;</td>
        </tr>
    </tbody>
</table>
<div style="padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; background-image: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<table>
    <tbody>
        <tr>
            <td>1&nbsp;</td>
            <td>2&nbsp;</td>
        </tr>
        <tr>
            <td>3&nbsp;</td>
            <td>4&nbsp;</td>
        </tr>
    </tbody>
</table>
</div>
<br class="Apple-interchange-newline">
<br>

Where did that class reference come from and why is it there?
FYI, we are using version 2011.3.1305.40. I am using the RadEditor on Chrome on a Windows 7.

Any ideas would be good.

One side question: what does FixEnclosingP literally do when you disable it? What does it do when you enable it?

Thanks,
Cameron
Rumen
Telerik team
 answered on 01 Feb 2012
1 answer
115 views
Problem: LoadingPanel does not display when using custom paging with a RadDataPager and a RadListView.

This is on a User Control using RadAjaxManagerProxy to configure Ajax settings. The manager is working correctly because the ListView does postback and page correctly. It's just the loading panel that will not display.

The outline of the control is as follows:

-RadAjaxManagerProxy
-RadAjaxLoadingPanel
-RadTabStrip
-RadMultiPage
   -RadPageView
      -RadListView
          -RadDataPager (on ListView ItemTemplate)

I've tried moving the Loading Panel around, changing how the manager updates the controls, etc. I have not been able to make the LoadingPanel appear in any scenario. Any thoughts on what could be causing this problem?
Maria Ilieva
Telerik team
 answered on 01 Feb 2012
3 answers
149 views
Hi all,
How to determine the RadDock height at codebehind and also clientside.
I am not setting RAdDock height explicitly,and I'm creating docks dynamicaly from code behind.
Depending on the controls in RadDock and the content in the Controls its height varies.
Even Edit of RadDock changes the height of RAdDock.
So can anyone help me in accessing the height everytime i make changes at runtime .(Both codebehind and Clientside)
pls help me asap.its very imp
Note:I'm using dock and old raddockableobject
Thank you.

Slav
Telerik team
 answered on 01 Feb 2012
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?