Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
43 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
374 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
56 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
77 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
70 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
96 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
1 answer
35 views
Hi All,
I have multiple Raddocs with <iframe> in a page under a RadLayout.


AND I want to save the state of raddocs in database and retrieve the saved state.

 
waiting for reply...
Its urgent
Pero
Telerik team
 answered on 07 Dec 2010
1 answer
68 views
I have created two radgrid(Same as drag and drop radgrid demo) and able to drag and drop each item in both direction. Now, first radgrid is binding during page load and getting values. But I want to bind it on a button click event. Can I create a datatable instead of Pendingorders on that button click event. Anybody can help.
thanks
Princy
Top achievements
Rank 2
 answered on 07 Dec 2010
1 answer
58 views

Hi,

I have a master page with Rad Tree View. I also got few chid pages.  I use previous page properties for my methods.
All tree nodes are bounded to child web pages. when a Tree node is selected related child web page is populated on the main container. All child pages are used a common toolbar on the Master Page. when user select a row of the Radgrid (in the child page) and click edit button it will open edit web page with selected row data. (see images)

I want to save state(seleted values) of all the controls in a web page when user navigate back and forth using browser back button and postbacks to same page.

 

Could you please let me know which methods I can use in order to accomplish my requirement? I am really appreciated if you can help me solve my issues.

Pri

Yana
Telerik team
 answered on 07 Dec 2010
1 answer
150 views
hi sir,

which event i can use before item inserting in radgrid.

thanks
Shinu
Top achievements
Rank 2
 answered on 07 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?