Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
627 views
    I have apage with an RadAjaxManager on it.. in my web user control I attempt to get set the RadAjaxManager variable using the RadAjaxManager.GetCurrent so that i can initiate an ajax postback with javascript when a radwindow closes...

?
Aaron
Top achievements
Rank 1
 answered on 08 May 2013
1 answer
59 views
I have several dock zones with multiple docks. I have one that I want to remain in position 0 always and the remaining docks should be able to be repositioned as the user desires.

I've tried setting the properties to: Pinned="true" DockMode="Docked" EnableDrag="false" and the dock will not move, however, if a user drags the dock to the 0 position, the first dock repositions.

The reason I need to do this is that I am using a collapsable dock as a filter that should remain at the top of the zone 100% of the time.

Is there a setting I am missing or is this not possible?
Slav
Telerik team
 answered on 08 May 2013
2 answers
318 views
I have a RadGrid with horizontal scrolling.  On the initial load, I wish to have the position set to the far right.  How do I set this position?
Matt
Top achievements
Rank 1
 answered on 08 May 2013
2 answers
123 views
My telerik grid below works just fine. However once I add the below code to enable scrolling the grid no longer re sizes correctly.
<ClientSettings>
      <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"/>
</ClientSettings>


It now has a large amount of space between the last row in the grid and the footer or bottom of the grid?

Here is my code:
<head runat="server">
    <link rel="Stylesheet" type="text/css" href="./Styles.css" />
    <title>Content Tracker</title>
</head>
<body class="body">
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
     
    <!-- Page Header -->
        <div class="header">
            <table width="1000px">
                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <img alt="" src="./Images/xxxxx_Logo_Small.gif" />
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td style="float: right">
                        <table border="0">
                            <tr>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>Welcome <asp:Label ID="loggedInUser" runat="server" /></b>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
         
        <div id="Nav" class="nav"></div>
        <div id="spacer" class="divSpacer"></div>
 
    <!-- Page Content -->
    <div id="content" class="content" >
 
    <telerik:RadGrid ID="RadGrid1" Width="990" runat="server" DataSourceID="EntityDataSourceAssignments"
        AllowPaging="True" AllowAutomaticUpdates="True" AllowAutomaticInserts="True" GridLines="Both"
        AllowAutomaticDeletes="true" AllowSorting="true"
        OnItemCreated="RadGrid1_ItemCreated" OnItemInserted="RadGrid1_ItemInserted" OnPreRender="RadGrid1_PreRender">
        <PagerStyle Mode="NextPrevAndNumeric" />
        <MasterTableView DataSourceID="EntityDataSourceAssignments" AutoGenerateColumns="False"
            DataKeyNames="AssignmentsID" CommandItemDisplay="Top">
            <Columns>
                <telerik:GridBoundColumn DataField="JurisdictionCode" HeaderText="Jurisdiction Code" SortExpression="JurisdictionCode"
                    UniqueName="JurisdictionCode" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ObligationName" HeaderText="Obligation Name" SortExpression="ObligationName"
                    UniqueName="ObligationName" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="DevTeamLead" HeaderText="Dev Team Lead" SortExpression="DevTeamLead"
                    UniqueName="DevTeamLead" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Developer" HeaderText="Developer" SortExpression="Developer"
                    UniqueName="Developer" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="TestTeamLead" HeaderText="Test Team Lead" SortExpression="TestTeamLead"
                    UniqueName="TestTeamLead" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="DueDate" HeaderText="Due Date" SortExpression="DueDate"
                    UniqueName="DueDate" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FormsReceived" HeaderText="Forms Received" SortExpression="FormsReceived"
                    UniqueName="FormsReceived" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="EfileComplete" HeaderText="Efile Complete" SortExpression="EfileComplete"
                    UniqueName="EfileComplete" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ESEXTStatus" HeaderText="ES-EXT Status" SortExpression="ESEXTStatus"
                    UniqueName="ESEXTStatus" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="SubmittalStatus" HeaderText="Submittal Status" SortExpression="SubmittalStatus"
                    UniqueName="SubmittalStatus" Visible="true">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Priority" HeaderText="Priority" SortExpression="Priority"
                    UniqueName="Priority" Visible="true">
                </telerik:GridBoundColumn>
 
                <telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton" />
            </Columns>
            <EditFormSettings>
                <EditColumn ButtonType="ImageButton" />
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
            </Scrolling>
        </ClientSettings>
    </telerik:RadGrid>
    <asp:EntityDataSource ID="EntityDataSourceAssignments" runat="server" ConnectionString="name=ContentTrackerEntities"
        DefaultContainerName="ContentTrackerEntities" EntitySetName="Assignments" EnableUpdate="True" EnableDelete="True" EnableInsert="True">
    </asp:EntityDataSource>
    </div>
 
    <div id="page-footer">
        <div id="page-footer-copyright">Copyright © 2010-2012 xxxxxx. All rights reserved.</div>
    </div>
 
    </form>
Julian
Top achievements
Rank 1
 answered on 08 May 2013
14 answers
774 views
Ive been using the FileExplorer successfully when the folder(s) is in the web application.   Im now working on an application where the folder is outside the web application i.e. c:\test .  I can list  the folders/files using GetDirectories and GetFiles in System.IO.  For consistency id like to use the FileExplorer control.  Is this possible and can you point me to a sample - I was unable to find one.
Vessy
Telerik team
 answered on 08 May 2013
4 answers
136 views
I have created a RadGrid in the Page_init and have declared a GridTableView to incorporate the hierarchy.

RadGrid1.MasterTableView.HierarchyDefaultExpanded = True
Dim tableSubCode As New GridTableView(RadGrid1)
tableSubCode.Name = "SubCodes"
tableSubCode.Width = Unit.Percentage(100)
Dim relationFields1 As GridRelationFields = New GridRelationFields()
relationFields1.MasterKeyField = "DetailID"
relationFields1.DetailKeyField = "DetailID"
tableSubCode.ParentTableRelation.Add(relationFields1)
RadGrid1.MasterTableView.DetailTables.Add(tableSubCode)
columnSubCodeCreation("SubCode", "Sub_Code", tableSubCode)
columnSubCodeCreation("Household", "HouseHold_Count", tableSubCode)
If mstrClientDataCategoryID1Description.Trim <> "" Then
    columnSubCodeCreation(mstrClientDataCategoryID1Description.Trim, "CD1", tableSubCode)
End If
If mstrClientDataCategoryID2Description.Trim <> "" Then
    columnSubCodeCreation(mstrClientDataCategoryID2Description.Trim, "CD2", tableSubCode)
End If
If mstrClientDataCategoryID3Description.Trim <> "" Then
    columnSubCodeCreation(mstrClientDataCategoryID3Description.Trim, "CD3", tableSubCode)
End If
If mstrReportDemographicID1Description.Trim <> "" Then
    columnSubCodeCreation(mstrReportDemographicID1Description.Trim, "Demographic1", tableSubCode)
End If
If mstrReportDemographicID2Description.Trim <> "" Then
    columnSubCodeCreation(mstrReportDemographicID2Description.Trim, "Demographic2", tableSubCode)
End If
If mstrReportDemographicID3Description.Trim <> "" Then
    columnSubCodeCreation(mstrReportDemographicID3Description.Trim, "Demographic3", tableSubCode)
End If
If mstrReportDemographicID4Description.Trim <> "" Then
    columnSubCodeCreation(mstrReportDemographicID4Description.Trim, "Demographic4", tableSubCode)
End If
If mstrReportDemographicID5Description.Trim <> "" Then
    columnSubCodeCreation(mstrReportDemographicID5Description.Trim, "Demographic5", tableSubCode)
End If
columnSubCodeCreation("Selected", "Selected", tableSubCode)
If UcHeader.objSession.ApplicationId <> CInt(ConfigurationManager.AppSettings("MediaviewerAppID")) Then
    columnSubCodeCreation("Forced", "Forced", tableSubCode)
End If
columnSubCodeCreation("Circ", "Circ", tableSubCode)
columnSubCodeCreation("Coverage", "Coverage", tableSubCode)
If UcHeader.objSession.ApplicationId <> CInt(ConfigurationManager.AppSettings("MediaviewerAppID")) Then
    Dim dpCounter As Integer = 1
    Dim dpCollection As IList(Of RadListBoxItem) = rlbDistributionPatterns.CheckedItems
    For Each item As RadListBoxItem In dpCollection
        columnSubCodeCreation(item.Text, "DP" & dpCounter.ToString, tableSubCode)
        dpCounter += 1
    Next
End If

My Hierarchy is expanded as a default. So the RadGrid1_DetailTableDataBind is called for every parent row about 1200 with a pagesize of 100. I only want to set the datasource when dealing with 3 of my parents.
Private Sub RadGrid1_DetailTableDataBind(sender As Object, e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles RadGrid1.DetailTableDataBind
    Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
    Select Case e.DetailTableView.Name
        Case "SubCodes"
            Dim detailID As Integer = dataItem.GetDataKeyValue("DetailID").ToString()
            'Dim Geography As String = dataItem.GetDataKeyValue("Geography").ToString()
            'Dim CirculationTypeID As Integer = dataItem.GetDataKeyValue("CirculationTypeID").ToString()
            Dim Day As String = dataItem.GetDataKeyValue("Day").ToString()
            If mintCircSetID > 0 And (detailID = 29 Or detailID = 506 Or detailID = 509) Then
                e.DetailTableView.DataSource = GetDataTable(mstrSQL & ",1," & detailID & ",'" & Day & "'")
            End If
    End Select
End Sub

When I do this, for the parent rows that I do not want to call the datasource, a Child View does come up with the Parents information in it. For the 3 rows I actually call, the correct information comes up. I do not want the Child View of the other parents to show. I am doing this this way for effeciency. I see my performance times greatly shrink if I only assign the datasource to the parents I want and not have the call to every parent. How can I stop from the child view showing up on the other parents?
David Kucharski
Top achievements
Rank 1
 answered on 08 May 2013
3 answers
291 views
Dear Telerik team

I have the same issue that requested in this post.

I want to load all the records into the radgrid without using Normal paging or Virtual scrolling /paging.

for example my datasource have 9,000 rows, i want to render first 100 record at user button click
then automatically loading the rest by 100 row per travel to server appending the data displayed on the grid.

something like buffering.

Is that applicable with RadGrid ?

Thanks in advance. 


Elliott
Top achievements
Rank 2
 answered on 08 May 2013
0 answers
194 views
How can i remove RadScriptManager from a page?  I want to include the JS manualy with <script /> tags instead of using the  RadScriptManager on a few pages I have.  I already found all the JS the Telerik controls on the page are using but when I try and include them outside the RadScriptManager the page throws JS errors.
Andrew
Top achievements
Rank 1
 asked on 08 May 2013
3 answers
321 views
I have created a usercontrol to edit the values on a RadGrid.  One of the fields on the grid is stored in the database as a comma separated string.  In order to allow the user to change the stored values for this field, a multiselect listbox has been placed on the usercontrol.  Currently I use the edit event to store the currentvalues in this field in a session variable.  Then on the databound event, I retrieve the value from the session variable, parse them and select the appropriate rows in the listbox to show what the past values were.  The code works but I was wondering if there was any way to use the bind statement to effect the same end?  If there is only one value to be selected the bind will work but if more than one value is to be selected I don't know of or how the bind statement would work.
Daniel
Telerik team
 answered on 08 May 2013
6 answers
246 views
I have a RadGrid with some bound columns and calculated columns. There is a calculated column for each month in a year which calculates a value multiplied by a UnitPrice. I am getting an error when I try to group by any of the columns, even the bound columns. For example, I have a column called "July" and when I try to group by any of the columns I get an error saying "Column 'JulyResult' does not belong to table." There is no column in my DataTable called 'JulyResult', I assume this column is created because it's a calculated column. The same error happens for all the other calculated columns. I am using the NeedDataSource event to set the RadGrid's datasource to a DataTable. I am using Telerik RadControls for ASP.NET Ajax Q1 2011 SP2. Any ideas why I am getting this error? Thanks.
Scott
Top achievements
Rank 1
 answered on 08 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?