Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
35 views
I am using Visual Studio 2008 and NET Framework 3.5. I have an ASPX page with a RadTreeView.

With Chrome, everything works like a charm. With IE 7.0, it gives JavaScript errors

Any Idea?

Thanks in advance

Javier Rojas .



Nikolay Tsenkov
Telerik team
 answered on 07 Dec 2010
2 answers
131 views
Hi, I need your help with this bug. Here is what I did,

I've a Radgrid (Q1 2010) without any Ajax enabled. And, I've implemented a sorting row function to re-order the items, in which user needs to select a row, and click on a custom-made "Move Up/Down" button located above the RadGrid. Everything is working until I've noticed that, after the sorting is done and I click on the "Edit" button to make some changes to the record. RadGrid picked the wrong record in the Edit mode.

In the HTML source code, I've seen that RadGrid has generated the id of "tr" in order such as,

<tr id="ctl00_ctl00_ContentPlaceHolderBase_ContentPlaceHolder1_RadGrid1_ctl00__0"...
...
<tr id="ctl00_ctl00_ContentPlaceHolderBase_ContentPlaceHolder1_RadGrid1_ctl00__1"...
...
<tr id="ctl00_ctl00_ContentPlaceHolderBase_ContentPlaceHolder1_RadGrid1_ctl00__2"...
...
With my sorting function, the order is messed up. Is it because of that? If so, what is the best way to fix this?

Thanks.
Veli
Telerik team
 answered on 07 Dec 2010
3 answers
62 views
Hi,

on my data records pages i'm doing all functionality from client side, i want to dynamically rebind my radtreeview on radgrid client side row selected event.how can i implement this functionality client side?
Nikolay Tsenkov
Telerik team
 answered on 07 Dec 2010
1 answer
260 views
Hi,
I have been using a Telerik grid which displays child records on clicking on master record using <DetailTables>. But i am getting the following issue.

When a user expand a Parent row then the child rows are displayed. But the child are not aligned with the parent grid columns and also if a user resize the column in the parent grid then child columns should also be resized to match with parent grid column.

Please provide me the better solution for this issue.

Thanks in advance.

Veli
Telerik team
 answered on 07 Dec 2010
1 answer
46 views
I have add RadSchedular in UserControl which i call on button click and rendered using Ajax. once control loaded in same page Radschedular is unable to render in theme it comes in html table only no skin ,no theme.
but on same page if i run any post back without ajax then Radschedular render in Theme.


help me


Kind Regards:
Nikolay Tsenkov
Telerik team
 answered on 07 Dec 2010
5 answers
382 views
Hi...
i am new to Telerik, so in lots of trouble.

I need to implement one scneraio using telerik radgrid and update panel. Please guide me on this.

I am having 4 grid on my page. I have kept each of the grid under separate update panel. Each one contains select link button (as GridButtonColumn where i have given the commandName as Select); Now on click of every grid's link button, i have to load other grids which are there in other update panels.
I thought of writing the asynchronous trigger where the control name will be the link button and there is no other condition on which this will be updated. I am doing something in itemCommand event, but when i was running the application, the link button click for the first grid was working for the firt time.. then onwards it was not working. Is there any way i can implement this so that all the grid will not be loaded on selection of row for one of the grids.

its very urgent, so please guide me asap.

 

<asp:UpdatePanel runat="server" ID="upnlASMTClassAndPropertyUse" UpdateMode="Conditional" ChildrenAsTriggers="false">

 

 

<ContentTemplate>

<

 

telerik:RadGrid ID="grdTest" runat="server" EnableViewState="true" DataSourceID="odsTest" GridLines="Both" BorderWidth="0px" ShowHeader="true" CssClass="GridLayout" OnItemCommand="grdTest_ItemCommand" OnItemDataBound="grdTest_ItemDataBound">

 

 

<MasterTableView DataSourceID="odsTest" ShowHeader="true" AutoGenerateColumns="false" >

 

 

<Columns>

 

 

<telerik:GridButtonColumn Text="Select" UniqueName="lbtnSelect" CommandName="Select" ButtonType="LinkButton" >

 

 

 

 

</telerik:GridButtonColumn>

 

....... some columns


</
Columns>

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 

 

</ContentTemplate>

 

 

</asp:UpdatePanel>

 

 

 

Similarly three other grids are there

when i tried using the triggers like this:

 

<Triggers>

<asp:AsyncPostBackTrigger ControlID="lbtnSelect" EventName="Click"/>

</Triggers>

 

 

Then, it was giving some error  ------ A control with ID 'lbtnSelect' could not be found for the trigger in UpdatePanel


Please guide me how to implement this approach using updatepanel?

Maria Ilieva
Telerik team
 answered on 07 Dec 2010
3 answers
60 views
I have two rad grids on a page. The concept is the top grid gets the data at page load and the bottom one is empty at that time. On making some selections in the top grid and pressing a button to drag the selected ones to the bottom grid. Every thing works fine except that after making the drag the top grid doesn't loads the data from the next page in the pagination. To understand it better lets say I'v set the page size of the top grid as 8 and if make all of the them selected and dragged the top grid says "No records to display" even if there are more data available in next pages of the pagination. If I changes my code to make the pagesize of the grid as "pageSize = Me.dgProjects.PageSize" the top grid displays two more items if all 8 of the items on the first page is selected. But on selecting these two again the problem again begins as described above.

I'm a novice in ASp.NET. Please help me accordingly.

Thanks


Code is here

Protected Sub dgProjects_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles dgProjects.NeedDataSource
            dgDataBind = True
            Me.LoadSelectionList()
        End Sub
        Protected Sub LoadSelectionList()
            Dim dg As Telerik.Web.UI.RadGrid
            Dim ds As DataSet
            Dim sortField As String = "name"
            Dim sortOrder As String = "ASC"
            Dim sortOrder1 As String = "DESC"
            Dim filterExpression As String
            Dim pageSize As Int16
            Dim currentPageIndex As Int16
            dg = Me.dgProjects
            'pageSize = 8
            pageSize = Me.dgProjects.PageSize
            currentPageIndex = dg.CurrentPageIndex + 1
            filterExpression = Me.dgProjects.MasterTableView.FilterExpression
            If dg.MasterTableView.SortExpressions.Count > 0 Then
                sortField = dg.MasterTableView.SortExpressions(0).FieldName
                If (dg.MasterTableView.SortExpressions(0).SortOrder = GridSortOrder.Descending) Then
                    sortOrder = "DESC"
                    sortOrder1 = "ASC"
                End If
            Else
                sortField = "name"
            End If
            ds = Project.getProjectsByUserId(userId, selectedVendors(), currentPageIndex, pageSize, filterExpression, sortField, sortOrder, Request.QueryString("Postingid"))
            ' Get # of rows in querry
            ' number of rows will be in table 0
            ' data will be in table 1
            If ds.Tables.Count > 0 Then
                Dim row As DataRow
                For Each row In ds.Tables(0).Rows
                    dg.VirtualItemCount = Convert.ToInt32(row("rows"))
                Next row
            End If
            dg.DataSource = ds.Tables(1)

            If dgDataBind = True Then
                dgDataBind = False
            Else
                dg.DataBind()
            End If



Protected Sub dgProjects_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles dgProjects.ItemCreated
            If TypeOf e.Item Is Telerik.Web.UI.GridFilteringItem Then
                Dim filteringItem As Telerik.Web.UI.GridFilteringItem = CType(e.Item, Telerik.Web.UI.GridFilteringItem)
                Dim box As TextBox
                Dim myimage As Image

                'box = CType(filteringItem("chkBox").Controls(0), TextBox)
                'box.Visible = False
                'myimage = CType(filteringItem("chkBox").Controls(1), Image)
                'myimage.Visible = False

            End If
        End Sub
Pavlina
Telerik team
 answered on 07 Dec 2010
1 answer
83 views
Hi,

i just viewed the telerik demo: http://demos.telerik.com/aspnet-ajax/panelbar/examples/functionality/templates/defaultcs.aspx

but in my asp code file editor in VS i have no chance to choose HeaderTemplate. Im restricted to choose the items: Items, ItemTemplate,  ContentTemplate.

Telerik Web UI Version 2010.2.713.35

How may i insert a asp control into the header item of the panelitem?

- Mario
Shinu
Top achievements
Rank 2
 answered on 07 Dec 2010
3 answers
74 views
Hi,

We want to call a iframe URL within a docking panel.  The iframe URL has some parameters that is passed in query string in order to fetch content relevant for a user that has logged in.

The problem we are facing now is that the URL within an iframe is not getting executed in the dock-panel and it keeps throwing error that the virtual path is invalid.  The iframe URL is an aspx page.

Please help us find a solution to this problem.  Thanks.
Pero
Telerik team
 answered on 07 Dec 2010
1 answer
102 views
Does anyone know if there is a way to put a Checkbox inside the input area of a combobox?  I am trying to achieve the same functionality as Google Mail where a user can select a checkbox inside the combobox or dropdown the arrow and select other choices.

Thanks!

rich
Yana
Telerik team
 answered on 07 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?