Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 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
386 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
596 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
1 answer
55 views
When I add an expression, the ExpressionItemCreated gets fired not only for the expression I'm adding, but for all existing expressions as well. Is this normal behavior?
Eyup
Telerik team
 answered on 20 Jun 2016
1 answer
67 views
Hello everyone,

 

I would like to know how it's possible to choose which filters we need. In fact at the beginning, we have NoFilter, Contains, DoesNotContain (too much)... And I would like only Contais and EqualTo. So how it works?

 

Thank you.

Pavlina
Telerik team
 answered on 20 Jun 2016
1 answer
219 views

I am attempting to add the new PRINT BUTTON within the RADGRID.  It shows it I change the radgrid RenderMode to lightweight, however this changes some of my design elements and I must keep the RADGRID rendermode as "Classic" - However this eliminate the new PRINT BUTTON from showing/displaying. 

How can I resolve this?

 

 

Pavlina
Telerik team
 answered on 20 Jun 2016
2 answers
179 views

Hi ,

 

I am new to this radgrid . Need some help from anyone who has faced this issue. In the EditFormSetting in the radgrid i have two raddropdownlist. The functionality that i need is ..on selectionindexchange of the first dropdownlist,the contents of second dropdownlist need to be populated from a datasource. How do i achieve this? The problem i am facing is i am not able to access the dropdownlist control in the selectionchanged event of the first dropdownlist.

 

  <EditFormSettings EditFormType="Template">
                    <FormTemplate>
                        <table style="width: 500px">
                          <tr>
                                <td>
                                    <asp:Label ID="Label1" runat="server" Text="lblDropdown1:" Visible="true"></asp:Label>
                                </td>
                                <td class="tableCellRight" style="width: 85%">
                                    <asp:DropDownList ID="rd_Dropdown1" runat="server" AppendDataBoundItems="True" AutoPostBack="True"   Visible="true" OnSelectedIndexChanged="rd_Dropdown1_SelectedIndexChanged" DataSourceID="ds_dropdown1" DataTextField="field2" DataValueField="field1">
                                        <Items>
                                            <asp:ListItem runat="server" Text="--Select item--" Value="NA" />
                                             
                                            
                                        </Items>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" runat="server" Text="lbldropdown2:" Visible="False"></asp:Label>
                                </td>
                                <td class="tableCellRight" style="width: 85%">
                                   <telerik:RadDropDownList ID="rd_dropdown2" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataSourceID="ds_dropdown2"  DataTextField="field2" DataValueField="field1"  Visible="False">
                                        <Items>
                                            <telerik:DropDownListItem runat="server" Text="--Select names--" Value="N/A" />
                                            
                                        </Items>
                                    </telerik:RadDropDownList> 
                                </td>
                            </tr>
                            
                        </table>
                    </FormTemplate>
                </EditFormSettings>

 <asp:SqlDataSource ID="ds_dropdown1" runat="server" ConnectionString="<%$ ConnectionStrings:xxConnectionString%>" SelectCommand="SELECT field1, field2 FROM [table1] ">
                   </asp:SqlDataSource>

 <asp:SqlDataSource ID="ds_dropdown2" runat="server" ConnectionString="<%$ ConnectionStrings:xxConnectionString %>" SelectCommand="SELECT [field1], [field2] FROM [table1] WHERE (somecondition)">          
        </asp:SqlDataSource>

codebehindfile event code

 protected void rd_Dropdown1_SelectedIndexChanged(object sender,EventArgs e)
    {
       //what code is required here to fetch or access dropdown2 control so that i bind it with suitable sqlcommand?


   
        //RadGrid1.DataBind();
    }

 

 

Kostadin
Telerik team
 answered on 20 Jun 2016
5 answers
275 views
oComboBox.OnClientSelectedIndexChanged = "ShowHideTextbox('" & oComboBox.ClientID & "','" & oTextbox.ClientID & "','" & oLabel.ClientID & "')"

^ doesn't work and I see on API I should just have a function name there such as this?
oComboBox.OnClientSelectedIndexChanged = "ShowHideTextbox"

inside my js function I see I can do this
 var item = eventArgs.get_item();

but how can I assign my 3 values into arguments called into the function?
Ivan Danchev
Telerik team
 answered on 20 Jun 2016
7 answers
350 views
I am trying to use multiple GridViewTable inside NestedViewTemplate with different data sources. It displays only one at a time and ignores other. is there any way to display them both?
Kostadin
Telerik team
 answered on 20 Jun 2016
2 answers
385 views
I want to bind on one array to draw a 2 lines chart like
            decimal[] pumpA_array = { 18.6m, 26.5m, 25.8m, 24.3m, 24.9m, 23.2m, 22.0m, 22.4m, 22.9m, 21.7m, 21.2m, 20.2m };
            decimal[] pumpB_array = { 5m, 10m, 15m, 20m, 25m, 30m, 35m, 30m, 25m, 24m, 22m, 20m };

 

 

How must i bind to my array's to get 2 lines like Attached image file please ?

In the telerik example datasource get only one array OR it is declaratively...

 

THANKS for your help

 

 

Pierre
Top achievements
Rank 1
 answered on 20 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?