Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
160 views
How could I hide RadEditor toolbar by custom button clicked and show RadEditor toolbar by RadEditor clicked, when EditType is set to "Inline".
Ianko
Telerik team
 answered on 21 Jun 2016
1 answer
57 views

Hi, I'm trying to highlight a week on mouse over (and not a single day, as it is now), and I would do it with javascript.

But it seems that RadDatePicker and Calendar does not provide the OnMouseOver method. Suggestions?

 

 

Konstantin Dikov
Telerik team
 answered on 21 Jun 2016
1 answer
89 views

Hello, I'm using a telerik RadScheduler control to create appointments in the application. Everything works fine except deleting a single entry from recurring appointment. The deleted entry keeps displaying on the control, the EXDATE property does contain dates that I delete but they are not hiding from the UI. The telerik version I have is as follows:

Runtime version: v4.0.30319
Version: 2015.2.623.45

Is this a reported issue? How should I resolve it? Please suggest.

Ibad
Top achievements
Rank 1
 answered on 21 Jun 2016
15 answers
629 views
I have a tabstrip with 5 tabs on it. There is a multipage as well. The pageviews are created when the tab for it is clicked, if it doesn't already exist.

If I click on tab 1, the pageview1 for tab 1 is created and displayed. If I click on tab 2, the page load in pageview1 loads, then the pageview2 for tab 2 is created. If I click on tab 3, the page load for pageview1 loads, then the page load for pageview2 loads then the pageview3 for tab 3 is created.

How can I avoid having to load the other pageviews when I go from tab-to-tab? That really slows things down and makes absolutely no sense. If I click on tab 3, I don't want to load pageview1 and pageview2.
Nencho
Telerik team
 answered on 21 Jun 2016
7 answers
162 views
 Hi,

Im storing the radgrid Persistance xml format string values into my Database table.
if i remove any static column from radgrid and datatable  then load  the already saved persistance values into radgrid its throwing error like 
DataField Column is not found in Datasource .

Please give me solution as soon as possible


Thanks
Nanthakumar.t
Bryan
Top achievements
Rank 1
 answered on 20 Jun 2016
7 answers
696 views
I have a radgrid in batch edit mode. I have GridDateTimeColumn. How can i get the selected value for the raddatepicker control in batch edit mode. I would like to do this on code behind. 

I have copied radgrid control and radgrid's itemdatabound event below.

But here is the part of the code behind code snippet with my problem.
Inside the Itemdatabound event, i have this code to find the datepicker control.

 drVal("Expected_Date") is always dbnull. Why? 

If drVal IsNot Nothing Then
Dim dtExpected As RadDatePicker = DirectCast(editedItem("Expected_Date").Controls(0), RadDatePicker)
                If drVal("Expected_Date") IsNot Nothing Then
                    If Not String.IsNullOrEmpty(drVal("Expected_Date").ToString) Then
                        dtExpected.SelectedDate = drVal("Expected_Date")
                    End If
                End If
 End If

aspx page
========
<telerik:RadGrid ID="rgCriticalCaps" runat="server" CssClass="SubGridGeneral"  Width="100%"
    BorderStyle="Solid" BorderWidth="0px"  AllowAutomaticUpdates="True"
    AutoGenerateColumns="False" AllowPaging="false"
    AllowMultiRowEdit="True">
    <ClientSettings>
        <ClientEvents OnBatchEditOpening="BatchEditOpening" />
    </ClientSettings>
    <MasterTableView EditMode="Batch" DataKeyNames="PK_OrgSubmission, CapabilityID">
        <BatchEditingSettings EditType="Cell" />
        <NoRecordsTemplate>
            Test message
        </NoRecordsTemplate>
<Columns>
                 
            <telerik:GridDropDownColumn UniqueName="Reason"
                HeaderText="Reasons Not Met."
                  DropDownControlType="RadComboBox" AllowSorting="false" HeaderStyle-VerticalAlign="Top">
            </telerik:GridDropDownColumn>


            <telerik:GridDateTimeColumn DataField="Expected_Date" PickerType="DatePicker" 
            DataFormatString="{0:MM/dd/yyyy}" DataType="System.DateTime" HeaderText="Expected Date." 
            HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="13%" ItemStyle-HorizontalAlign="Left" UniqueName="Expected_Date" />

</Columns>
                
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <HeaderStyle CssClass="SubGridHeader" />
    <ItemStyle CssClass="SubGridRows" />
    <AlternatingItemStyle CssClass="SubGridAltRows" />
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
    </HeaderContextMenu>
</telerik:RadGrid>

Code behind
==========
Protected Sub rgCriticalCaps_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles rgCriticalCaps.ItemDataBound
            If e.Item.ItemType = GridItemType.EditItem And e.Item.IsInEditMode Then

            Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
            Dim editMan As GridEditManager = editedItem.EditManager

            Dim editor As GridDropDownListColumnEditor = TryCast(editMan.GetColumnEditor("Reason"), GridDropDownListColumnEditor)

            Dim SqlBuilder As StringBuilder = New StringBuilder
            SqlBuilder.Append("SELECT PK_PickList,DisplayValue FROM PickLists WHERE PK_PickListType IN (SELECT PK_PickListType FROM PickListTypes WHERE UsageField = 'Capabilities_Reason_NotMet')  order by SortPos")

            Dim gridSql As String = SqlBuilder.ToString()
            Dim oReason As DataTable = New DataTable
            oReason = odbutils.GetDataTable(gridSql)

            Dim rComboBox As RadComboBox = editor.ComboBoxControl

            rComboBox.DataSource = oReason
            rComboBox.DataTextField = "DisplayValue"
            rComboBox.DataValueField = "PK_PickList"
            rComboBox.DataBind()

            Dim drVal = DirectCast(e.Item.DataItem, DataRowView)
            If drVal IsNot Nothing Then
                editor.SelectedValue = drVal("Reason_not_met").ToString()

      
                Dim dtExpected As RadDatePicker = DirectCast(editedItem("Expected_Date").Controls(0), RadDatePicker)
                If drVal("Expected_Date") IsNot Nothing Then
                    If Not String.IsNullOrEmpty(drVal("Expected_Date").ToString) Then
                        dtExpected.SelectedDate = drVal("Expected_Date")
                    End If
                End If

             
            End If
        End If




            
shashi
Top achievements
Rank 1
 answered on 20 Jun 2016
3 answers
241 views

Hi,

My page had two frames and the top frame has Radmenu, as a top navigation and the corresponding pages are displayed in the bottom frames

Some of the menu has got sub menu. The problem is the sub menu options are not collapsing even if taget page is loaded in the bottom frame.

I want the menu to collapse immediately after clicking or on mouse out. I tried OnClientMouseOut event and OnClientItemClicked event, but didnt work.

Looking forward to hear from you.

 

 

Regards,

Hari

Ivan Danchev
Telerik team
 answered on 20 Jun 2016
3 answers
98 views
I have a RadTextbox multiline but want to set it smaller and when you focus into it, then it expands larger or possibly even opens in a modal popup.
is there already a telerik control that does this? or perhaps a jquery script?
Vessy
Telerik team
 answered on 20 Jun 2016
11 answers
351 views

Dear support team,

I had an issue integrating the RadGrid from the RadControls for ASP.NET Q1 2009 release with MOSS 2007 SP1/.NET 3.5 SP1.  The RadGrid shows up, but the skin files appear to be missing, so all I see is the content of the grid without any CSS styles or images whatsoever.  I can confirm that the skin files are properly installed to the directory \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadGrid.Net2\5.1.6.0__ec87bc2939ec45df\RadControls\Grid\Skins.  The RadGrid.Net2 dll is installed into the GAC, and its strong name matches the directory described earlier.

To elaborate, I took these steps, based on Andrew Connell's MOSS Whitepaper for automated installation:
1) Ran the EXE utilities to create DDF and manifest.xml entries for the RadGrid skin files 
2) Since we're only using the Glassy skin, I copied only the appropriate skins to the DDF and manifest.xml files
3) Added RadGrid.Net2.dll as a SafeControl to manifest.xml
4) Registered RadGrid.Net2.dll in my ASPX page with:

<%

 

@ Register Assembly="RadGrid.Net2, Version=5.1.6.0, Culture=neutral, PublicKeyToken=ec87bc2939ec45df" Namespace="Telerik.WebControls" TagPrefix="rad" %>

 

5) Deployed the solution in SharePoint

 

 


The solution deployed successfully.  As I mentioned, all I was able to see is the de-skinned RadGrid.  The HTML contains an entries such as
<link type="text/css" rel="stylesheet" href="/RadControls/Grid/Skins/Glassy/Styles.css" />
but of course the CSS file was not found.  When I deployed the ASPX page outside of SharePoint, the RadGrid rendered properly.

As a test, I deployed another ASPX page containing RadAjaxPanel and an AjaxLoadingPanel.  The Ajax functionality worked properly, but again the loading panel failed to show any animated gif.

Am I missing something?

Lastly, I read elsewhere regarding the new Telerik.Web.UI assembly replacing separate assemblies for each control.  However, even in the Q1 2009 release there are individual assemblies such as RadGrid.Net2.dll.  Could you clarify?

Any help would be greatly appreciated.

Thanks,

Yen

 

 

 

 

mohamed
Top achievements
Rank 1
 answered on 20 Jun 2016
11 answers
555 views
I am trying export all detail tables and the main grid data.  The problem is that it only exports the main grid data if the detail grids are not expanded.  Below is the export code.  How do I expand all items in order to export complete data?

 

Private Sub btnExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExport.Click

 

'LoopHierarchyRecursive(grdEmpData.MasterTableView)

grdEmpData.MasterTableView.HierarchyDefaultExpanded =

True

 

 

'grdEmpData.MasterTableView.Rebind()

 

grdEmpData.ExportSettings.ExportOnlyData =

True

 

 

'grdEmpData.ExportSettings.IgnorePaging = True

 

grdEmpData.MasterTableView.AllowPaging =

False

 

grdEmpData.ExportSettings.OpenInNewWindow =

True

 

grdEmpData.ExportSettings.FileName =

"SAPDataList"

 

grdEmpData.MasterTableView.ExportToExcel()
End Sub

Sub LoopHierarchyRecursive(ByVal gridTableView As GridTableView)

 

 

For Each nestedViewItem As GridNestedViewItem In gridTableView.GetItems(GridItemType.NestedView)

 

nestedViewItem.Expanded = True

 

 

 

If nestedViewItem.NestedTableViews.Length > 0 Then

 

 

 

'now you can access: nestedViewItem.NestedTableViews[0].Items, which will be the DataItems of this nested table

 

 

 

'then make recursive call

 

 

 

LoopHierarchyRecursive(nestedViewItem.NestedTableViews(0))

 

 

' above [0] stands for the first table in the hierarchy, since Telerik RadGrid supports multiple tables at a level

 

 

 

End If

 

 

 

Next

 

 

 

 

 

 

End Sub

 

 

 

Here is the structure and code:
MainGrid
    MaterTableView
        DetailTable
            NestedViewTemplate (using nested view because each detail table row will have different datasource)
                ChildGrid

 

 

<MasterTableView Name="EmployeeList" GridLines="None" DataKeyNames="SAPEmployeeNo" AllowSorting="True" ShowHeader="True">

 

 

<DetailTables>

 

 

 

 

 

<telerik:GridTableView DataKeyNames="EmployeeNo, CategoryId" Name="Category" Width="1050px" runat="server" PagerStyle-Position="bottom">

 

 

 

 

 

<NestedViewTemplate>

 

 

 

 

 

<telerik:RadGrid ID="EmpData" OnNeedDataSource="gridEmpData_NeedDataSource" runat="server" Width="1050px">

 

 

 

 

 

<ItemStyle CssClass="RadGridItem"></ItemStyle>

 

 

 

 

 

<AlternatingItemStyle CssClass="RadGridItem"></AlternatingItemStyle>

 

 

 

 

 

<ClientSettings>

 

 

 

 

 

<Scrolling AllowScroll="true" ScrollHeight="40px" UseStaticHeaders="true" />

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

</NestedViewTemplate>

 

 

 

 

 

<ParentTableRelation>

 

 

 

 

 

<telerik:GridRelationFields DetailKeyField="EmployeeNo" MasterKeyField="EmployeeNo" />

 

 

 

 

 

</ParentTableRelation>

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridBoundColumn DataField="EmployeeNo" UniqueName="EmployeeNo" Visible="false" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="CategoryId" UniqueName="CategoryId" Visible="false" />

 

 

 

 

 

<telerik:GridBoundColumn HeaderText="" DataField="CategoryName" SortExpression="CategoryName" UniqueName="CategoryName" />

 

 

 

 

 

</Columns>

 

 

 

 

 

</telerik:GridTableView>

 

 

 

 

 

</DetailTables>

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridTemplateColumn UniqueName="btnEdit" HeaderStyle-Width="30px" ItemStyle-Width="30px">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:ImageButton ImageAlign=AbsBottom id="btnEditEmp" runat="server" imageurl="~/images/edit.gif" alternatetext="Edit" />&nbsp;

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridBoundColumn HeaderText="EmpNo" DataField="EmployeeNo" SortExpression="EmployeeNo" UniqueName="EmployeeNo" />

 

 

 

 

 

<telerik:GridBoundColumn HeaderText="Last Name" DataField="LastName" SortExpression="LastName" UniqueName="LastName" />

 

 

 

 

 

<telerik:GridBoundColumn HeaderText="First Name" DataField="FirstName" SortExpression="FirstName" UniqueName="FirstName" />

 

 

 

 

 

<ExpandCollapseColumn ButtonType="ImageButton" Visible="False" UniqueName="ExpandColumn"></ExpandCollapseColumn>

 

 

 

 

 

</MasterTableView>

Thanks!

 

Pavlina
Telerik team
 answered on 20 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?