My environment includes DNN v4.8.2 and VS.NET 2008. My goal is to make a Web User Control with your RadGrid enclosed within the object and distribute it as a DNN module.
According to the documentation I have read and also viewed, to make a module for DNN v4.8.2 requires me to make a directory within the DesktopModules and include the Web User Control within this directory. Also copy my DLL built by the project into the BIN directory. I tested this process and it works great.
Now I want to include your RadGrid in this Web User Control. I plan to make changes to the web.config file for the connection string and then add your control to the Web User Control. Well I need to know what I need to distribute with your product in the BIN directory. Do I include the XML files with the DLL files? Do I have to register anything extra? Do I need to in my code behind insert the connection string or is your object already aware since I setup the properties?
A reference to documents that can help me in this endeavor would help a bunch, especially about DNN which is the reason I chose your product over DevExpress.
Can't find resource stream Telerik.Web.UI.Common.Navigation.AttributeCollection.js
Could you fix all references to missing resource files?
| if( e.Item is GridDataItem ) { |
| GridDataItem item = (GridDataItem)e.Item; |
| if (item.OwnerTableView.Name == "ControlFields") |
| { |
| CultureInfo ci = new CultureInfo(selectedEditCulture); |
| string controlName = item.OwnerTableView.ParentItem["Name"].Text; |
| string culture = ci.Name; |
| string parentCulture = ci.TwoLetterISOLanguageName; |
| string key = item.Cells[4].Text; //<THIS LINE |
| string value = string.Empty; |
| value = doFunction(key); |
| if (item.IsInEditMode) |
| { |
| TextBox tb = (TextBox)item.FindControl("txtValue"); |
| if (tb != null) |
| tb.Text = value; |
| } else { |
| Label lb = (Label)item.FindControl("lblValue"); |
| if (lb != null) |
| lb.Text = value; |
| } |
| } |
| } |
| string key = item.Cells[4].Text; |
get_masterTableView().get_selectedItems() to retrieve data?
I use ItemTemplate, I dont' know how to retrieve data out from clientside?
please see the grid as following:
<
telerik:RadPane ID="RadPaneGrid" runat="server" Width="100%" Height="100%">
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None"
Width="99%" Height="586px" OnItemDataBound="RadGrid1_ItemDataBound"
OnNeedDataSource="RadGrid1_NeedDataSource1"
Skin="Office2007" AllowSorting="True" AllowPaging="True">
<MasterTableView Width="100%">
<Columns>
<telerik:GridTemplateColumn HeaderText="Severity" SortExpression="Severity" UniqueName="Severity">
<ItemTemplate>
<asp:Image ID="imgSeverity" runat="server" />
<asp:Label ID="lblSeverity" runat="server" Text='<%# Eval("Severity") %>'></asp:Label>
</ItemTemplate>
<ItemStyle BorderStyle="None" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Error Code" SortExpression="ErrorCode" UniqueName="ErrorCode">
<ItemTemplate>
<asp:Label ID="lblErrorCode" runat="server" Text='<%# Eval("ErrorCode") %>'></asp:Label>
</ItemTemplate>
<ItemStyle BorderStyle="None" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Occured" SortExpression="Time_Stamp" UniqueName="Time_Stamp">
<ItemTemplate>
<asp:Label ID="lblTimeStamp" runat="server" Text='<%# Eval("Time_Stamp") %>'></asp:Label>
</ItemTemplate>
<ItemStyle BorderStyle="None" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Server/EDU" SortExpression="EDU" UniqueName="EDU">
<ItemTemplate>
<asp:Label ID="lblEdu" runat="server" Text='<%# Eval("EDU") %>'></asp:Label>
</ItemTemplate>
<ItemStyle BorderStyle="None" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Message" SortExpression="Message" UniqueName="Message">
<ItemTemplate>
<asp:Label ID="lblMessage" runat="server" Text='<%# Eval("Message") %>'></asp:Label>
</ItemTemplate>
<ItemStyle BorderStyle="None" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Received" SortExpression="UpDate_Time" UniqueName="UpDate_Time">
<ItemTemplate>
<asp:Label ID="lblUpdateTime" runat="server" Text='<%# Eval("Update_Time") %>'></asp:Label>
</ItemTemplate>
<ItemStyle BorderStyle="None" />
</telerik:GridTemplateColumn>
</Columns>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<EditFormSettings>
<PopUpSettings ScrollBars="None" />
</EditFormSettings>
</MasterTableView>
<ItemStyle BorderStyle="None" />
<ClientSettings ReorderColumnsOnClient="True">
<Selecting AllowRowSelect="True" />
<Resizing AllowColumnResize="True" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="99.9%" />
<ClientEvents OnRowContextMenu="RowContextMenu" />
</ClientSettings>
</telerik:RadGrid>
any help will be appreciated!
Thank you very much!
Zhengmao,
Private
Sub SelectInsertedRecord(ByVal ID As String)
Dim item As GridDataItem
For Each item In Me.dgBuilderProject.Items
If item.Item("ProjectId").Text = ID Then
item.Selected =
True
item.Expanded =
True
Exit For
End If
Next
End Sub 'SelectInsertedRecord