Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 views

Hi,

      I am having a menu control on the left side of my page and to the right side of the menu
      I am having a dock layout in which i had the dock zone. On menu item click event i am creating the 
      Docks Dynamically with different user controls in each dock(.ascx). some of the ascx will occur more than once based on the 
      requirement.  

       When more than five docks are created and loaded into the zone the system get hang and its not working.

       And also on closing the docks sometimes its working and sometimes not working and even throw some Java script errors.

      And Another one issue is when this project is uploaded in the server the entire page is too slow. 
      even the menu is taking too much  of time to expand. 

      Please give me some solution to this issue.
      
      Thank You.
      -Anto

     
    


Pero
Telerik team
 answered on 28 Apr 2010
7 answers
140 views
Dear,

I show a picture in a listitem using the telerik radeditor lite (SharePoint). Using mapeditor I identify several areas to make clickable maps. The problem is that the map id for all the maps is the same for all list items. This is not an issue when showing only one item (because then there is only one map to refer to), but if I show multiple items on a page, the same map is always referred to (because all maps have the same map id.).
I can manually change this in html, but I hoped there would be a cleaner solution.

Thanks for the feedback.

Kind Regards,
Luc
Stanimir
Telerik team
 answered on 28 Apr 2010
3 answers
136 views
I am getting following error on dynamically crated user control

I have pasted code starting at line 1784.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.4; FunWebProducts; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Thu, 22 Apr 2010 13:35:02 UTC

Message: Expected ':'
Line: 1784
Char: 754
Code: 0
URI: http://localhost/SecurityPages/SubscriberLogin.aspx?ReturnUrl=%2fSubscriberSetupPages%2fPiggyBankSetup.aspx

 



Sys.Application.add_init(function() {

    $create(Telerik.Web.UI.RadCalendar, {"_DayRenderChangedDays":{},"_FormatInfoArray":[["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["January","February","March","April","May","June","July","August","September","October","November","December",],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",],"dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","MMMM dd","ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","M/d/yyyy","h:mm tt","yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","MMMM, yyyy","AM","PM","/",":",0],"_ViewRepeatableDays":{},"_ViewsHash":{ctl00_ContentPlaceHolder1_pnlbarPiggyBank_i1_i0_i0_6740f64c-f5df-457c-a07c-a89af82cf500_dtTargetDate_calendar_Top : [[2010,4,1], 1]},"_calendarWeekRule":0,"_culture":"en-US","_enableViewSelector":false,"_firstDayOfWeek":7,"_postBackCall":"__doPostBack(\u0027ctl00$ContentPlaceHolder1$pnlbarPiggyBank$i1$i0$i0$6740f64c-f5df-457c-a07c-a89af82cf500$dtTargetDate$calendar\u0027,\u0027@@\u0027)","clientStateFieldID":"ctl00_ContentPlaceHolder1_pnlbarPiggyBank_i1_i0_i0_6740f64c-f5df-457c-a07c-a89af82cf500_dtTargetDate_calendar_ClientState","enableMultiSelect":false,"enabled":true,"monthYearNavigationSettings":["Today","OK","Cancel","Date is out of range.","False","True","300","300"],"skin":"Default","specialDaysArray":[],"stylesHash":{DayStyle: ["", ""],CalendarTableStyle: ["", "rcMainTable"],OtherMonthDayStyle: ["", "rcOtherMonth"],TitleStyle: ["", ""],SelectedDayStyle: ["", "rcSelected"],SelectorStyle: ["", ""],DisabledDayStyle: ["", "rcDisabled"],OutOfRangeDayStyle: ["", "rcOutOfRange"],WeekendDayStyle: ["", "rcWeekend"],DayOverStyle: ["", "rcHover"],FastNavigationStyle: ["", "RadCalendarMonthView RadCalendarMonthView_Default"],ViewSelectorStyle: ["", "rcViewSel"]},"useColumnHeadersAsSelectors":false,"useRowHeadersAsSelectors":false}, null, null, $get("ctl00_ContentPlaceHolder1_pnlbarPiggyBank_i1_i0_i0_6740f64c-f5df-457c-a07c-a89af82cf500_dtTargetDate_calendar"));
Tsvetoslav
Telerik team
 answered on 28 Apr 2010
1 answer
157 views
Hi,
I am trying to put a form with a radcombox in a sticky tooltip.
This is the tooltipo that I want to use: Centred and Modal.

      
<telerik:RadToolTip runat="server" ID="RadToolTip2" Modal="true" Animation="Fade" Skin="Windows7"  HideEvent="ManualClose" 
         TargetControlID="Button_Add" Position="Center" RelativeTo="BrowserWindow" > 
    </telerik:RadToolTip> 
 

The radcombobox use the load on demand feature because it allows the user to look into a very large DB. this Combobox will send a postback when an element is selected.
<telerik:RadComboBox Skin="WebBlue" ID="RadComboBox1" runat="server" Height="190px" 
                                Width="250px"    
                                MarkFirstMatch="true"   
                                EnableLoadOnDemand="true"   
                                HighlightTemplatedItems="true" 
                                DropDownWidth="350px"   
                                ItemRequestTimeout="500"    
                                AutoPostBack="true"    
                                EnableViewState="true"     
                                OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"

The problem is that the RadComboBox is not loading anything, just empty.
When I put the same RadCombobox outside the Tooltip it works just fine.
Am I missing something?

Thanks for your help.
Mohamed


Svetlina Anati
Telerik team
 answered on 28 Apr 2010
3 answers
125 views
Hi, I made this grid with checkboxes and select all function, and it basically works.
Only the grid has an option to allow filtering on columns which ruins my selection.
(when I click select all, the selection (of user id's) is saved into an arraylist which I'm putting in a session variable.
however when I do something like lastname contains "blabla" I don't know how I would filter this.

<telerik:radgrid id="RadUsers"
                allowmultirowselection="true"
                showfooter="True"
                runat="server"
                showstatusbar="True"
                onneeddatasource="RadUsers_NeedDataSource"
                onpageindexchanged ="RadUsers_PageIndexChanged"
                gridlines="None"
                allowpaging="True"
                pagesize="50"
                skin="Vista"
                allowfilteringbycolumn="True"
                autogeneratecolumns="False">
                <groupingsettings casesensitive="false" />
                <mastertableview showfooter="True" datakeynames="UserID" allowsorting="true">
                    <columns>
                        <telerik:gridtemplatecolumn allowfiltering="false">
                            <headertemplate>
                                <asp:checkbox id="headerChkbox" oncheckedchanged="ToggleSelectedState" autopostback="True" runat="server"></asp:checkbox>
                            </headertemplate>
                            <itemtemplate>
                                <asp:checkbox id="cbChecked" runat="server" autopostback="true" oncheckedchanged="OnCheckedChangedEvent" />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn allowfiltering="false">
                            <itemtemplate>
                                <asp:imagebutton id="ibEditUser" runat="server" imageurl="~/images/edit.gif" alternatetext="Edit" commandargument='<%# Eval("UserID") %>' commandname="Bewerk" causesvalidation="false" onmouseover="this.style.cursor = 'hand';" />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn allowfiltering="false">
                            <itemtemplate>
                                <asp:imagebutton id="ibDelete" imageurl="~/images/delete.gif" runat="server" alternatetext="Delete" commandargument='<%# Eval("UserID") %>' commandname="Delete" causesvalidation="false" onmouseover="this.style.cursor = 'hand';" />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridboundcolumn datafield="UserID" headertext="UserID" sortexpression="UserID" uniquename="UserID" allowfiltering="false" allowsorting="false">
                        </telerik:gridboundcolumn>
                        <telerik:gridboundcolumn allowsorting="true" datafield="Lastname" headertext="Lastname" sortexpression="Lastname" uniquename="Lastname">
                        </telerik:gridboundcolumn>
                        <telerik:gridboundcolumn allowsorting="true" datafield="Firstname" headertext="Firstname" sortexpression="Firstname" uniquename="Firstname">
                        </telerik:gridboundcolumn>
                        <telerik:gridboundcolumn allowsorting="true" datafield="Email" headertext="Email" sortexpression="Email" uniquename="Email">
                        </telerik:gridboundcolumn>
                        <telerik:gridboundcolumn allowsorting="true" groupable="true" datafield="Country" headertext="Country" sortexpression="Country" uniquename="Country">
                        </telerik:gridboundcolumn>
                        <telerik:gridboundcolumn allowsorting="true" groupable="true" datafield="UserType" headertext="UserType" sortexpression="UserType" uniquename="UserType">
                        </telerik:gridboundcolumn>
                        <telerik:gridcheckboxcolumn datafield="Authorised" headertext="Authorised" sortexpression="Authorised" uniquename="Authorised" datatype="System.Boolean">
                        </telerik:gridcheckboxcolumn>
                    </columns>
                </mastertableview>
            </telerik:radgrid>
<asp:label id="lblTest" runat="server" />

And then:

#Region "Variables e.d."
        Dim arlCheckedItems As New arraylist
        Dim allChecked As String = "False"
#End Region

#Region "Page_Init"
        Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            Me.ModuleConfiguration.IconFile = "~/desktopmodules/eapc/images/users32.gif"
            BindRoles()
            lblTest.Text = ""
            If Not Page.IsPostBack Then
                Session.Remove("arlCheckedItems")
                Session.Remove("allChecked")
            Else
                If Session("arlCheckedItems") IsNot Nothing Then
                    arlCheckedItems = Session("arlCheckedItems")
                End If
                If Session("allChecked") IsNot Nothing Then
                    allChecked = Session("allChecked")
                End If
            End If
        End Sub
#End Region

#Region "RadUsers_NeedDataSource"
        Sub RadUsers_NeedDataSource(ByVal [source] As Object, ByVal e As GridNeedDataSourceEventArgs)
            Dim objUserController As New MBUserController
            Dim lstUserInfo As List(Of MBUserInfo) = objUserController.GetUsers(PortalId, drpRoles.SelectedValue, drpBoard.SelectedValue, -1)

            RadUsers.DataSource = lstUserInfo
        End Sub
#End Region

#Region "RadUsers_ItemCommand"
        Protected Sub RadUsers_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadUsers.ItemCommand
            Select Case e.CommandName
                Case "Bewerk"
                    Dim formatString As String = EditUrl("uid", e.CommandArgument, "EditUser", "m=u")
                    Response.Redirect(formatString)
                Case RadGrid.FilterCommandName
                    'remove all selections
                    allChecked = "False"
                    Session("allChecked") = "False"
                    arlCheckedItems.Clear()
                    Session.Remove("arlCheckedItems")

                    RadUsers.Rebind()
            End Select
        End Sub
#End Region

#Region "RadUsers_PageIndexChanged"
        Sub RadUsers_PageIndexChanged(ByVal source As Object, ByVal e As Telerik.Web.UI.GridPageChangedEventArgs) Handles RadUsers.PageIndexChanged
            ShowIds()
        End Sub
#End Region

#Region "RadUsers_ItemDataBound"
        Protected Sub RadUsers_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadUsers.ItemDataBound
            If allChecked = "True" Then
                If TypeOf e.Item Is GridHeaderItem Then
                    Dim headerChkbox As CheckBox = DirectCast(e.Item.FindControl("headerChkbox"), checkbox)
                    headerChkbox.checked = True
                End If
            End If
            If TypeOf e.Item Is GridDataItem Then

                Dim deletebutton As ImageButton = CType(e.Item.FindControl("ibDelete"), ImageButton)
                If Not deletebutton Is Nothing Then
                    deletebutton.Attributes.Add("onClick", "javascript:return confirm('Are you sure?');")
                End If

                Dim objEAPCUserInfo As EapcUserInfo = CType(e.Item.DataItem, EapcUserInfo)
                If Not objEAPCUserInfo Is Nothing Then
                    If objEAPCUserInfo.UserID = UserId Then
                        deletebutton.Visible = False
                    End If
                End If

                Dim ditem As GridDataItem = e.Item
                If arlCheckedItems.contains(ditem("UserID").Text.ToString) Then
                    Dim chk As CheckBox = DirectCast(ditem.FindControl("cbChecked"), checkbox)
                    chk.checked = True
                End If
            End If
        End Sub
#End Region

#Region "ToggleSelectedState"
        Protected Sub ToggleSelectedState(ByVal sender As Object, ByVal e As EventArgs)
            If (CType(sender, CheckBox)).Checked Then
                'select all
                allChecked = "True"
                Session("allChecked") = "True"
                Dim objUserController As New MBUserController
                Dim lstUserInfo As List(Of MBUserInfo) = objUserController.GetUsers(PortalId, drpRoles.SelectedValue, drpBoard.SelectedValue, -1)
                Dim objUserInfo As MBUserInfo
                For Each objUserInfo In lstUserInfo
                    arlCheckedItems.add(objUserInfo.UserID.ToString)
                Next

                Session("arlCheckedItems") = arlCheckedItems
            Else
                'deselect all
                allChecked = "False"
                Session("allChecked") = "False"
                arlCheckedItems.Clear()
                Session.Remove("arlCheckedItems")
            End If

            RadUsers.Rebind()

            ShowIds()
        End Sub
#End Region
#Region "OnCheckedChangedEvent"
        Sub OnCheckedChangedEvent(ByVal sender As Object, ByVal e As System.EventArgs)
            Dim box As CheckBox = CType(sender, CheckBox)
            Dim item As GridDataItem = CType(box.NamingContainer, GridDataItem)

            If box.Checked Then
                arlCheckedItems.add(item("UserID").Text.ToString)
                Session("arlCheckedItems") = arlCheckedItems
            Else
                arlCheckedItems.remove(item("UserID").Text.ToString)
                Session("arlCheckedItems") = arlCheckedItems

                If allChecked = "True" Then
                    allChecked = "False"
                    Session("allChecked") = "False"
                    RadUsers.Rebind()
                End If
            End If


            ShowIds()
        End Sub
#End Region
#Region "RadUsers_DeleteCommand"
        Protected Sub RadUsers_DeleteCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadUsers.DeleteCommand
            Try
                Dim userId As Integer = Int32.Parse(e.CommandArgument.ToString)

                Dim user As UserInfo = UserController.GetUserById(PortalId, userId)

                If Not user Is Nothing Then
                    UserController.DeleteUser(user, True, False)
                    RadUsers.Rebind()
                End If

            Catch exc As Exception    'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try
        End Sub
#End Region

#Region "ShowIds"
        Sub ShowIds()
            lblTest.Text = ""
            arlCheckedItems.sort()
            Dim Item As String
            For Each Item In arlCheckedItems
                lblTest.Text += Item.ToString & "<br />"
            Next
        End Sub
#End Region




Pavlina
Telerik team
 answered on 28 Apr 2010
6 answers
117 views
Hi telerik,
 
 I am dunamically loading the usercontrols in pageviews. I have a radcombo having radtreeview. Its not displaying LineImages. I have set 

ShowLineImages

 

="true".

Image of the radcombo attached.

 

Yana
Telerik team
 answered on 28 Apr 2010
3 answers
267 views
Hi,

   I am using RadGrid for displaying the result I get from my search query. There are some conditions where I get result of about 25,000 or more rows. At this time I get the error as  "Exception of type 'System.OutOfMemoryException' was thrown."

   Please do suggest me how I can avoid this error and display my result perfectly. Is there any way to resolve this, its very urgent.

Thanks,

Pinkey
Pavlina
Telerik team
 answered on 28 Apr 2010
2 answers
151 views
I have a grid that uses a custom user control for editing. In the RadGrid1_UpdateCommand event code, the data key values (gridEditableItem.OwnerTableView.DataKeyValues[gridEditableItem.ItemIndex]["LeadDistributionId"]) are returning null. Any idea what would cause this behavior? Note that "gridEditableItem["LeadDistributionId"].Text" returns the correct value.
Joe Kalinowski
Top achievements
Rank 1
 answered on 28 Apr 2010
6 answers
260 views
Hello, I'm trying to use client side code, however, whenever I add a client side event I get this javascript error:

Telerik.Web.UI.RadListBox is undefined

I've tried using RegisterWithScriptManager, that didn't help.  My script manager is in a master page file, if that makes a difference.

Please help, thanks.


Genady Sergeev
Telerik team
 answered on 28 Apr 2010
6 answers
194 views
Hello,

here's my problem: I use a radMaskedTextBox in a RadGrid to display formatted phone numbers. I set the the maskedTextBox to readonly. When the grid is rendered, I can't modify the text or delete it with backspace. But if I press the "delete" or the "del" key it deletes the text.

Is it normal?

best regards,

Laurent
Maria Ilieva
Telerik team
 answered on 28 Apr 2010
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?