Hi,
I have a hierarchical radgrid as per the attached, however I want to have a full row column group header for each table. Currently the expand header cell shows and I see no way of hiding it without upsetting the rowspan and colspan of the grid's table. I want to retain the expand icons in the detail tables.
Any way of doing this?
Thanks!
I am using the latest version of asp.net ajax controls 2021.3.914.45.
The pdf loads fine (200 pg. document) but when I try to search or print it takes forever.
Is there any way to make it quicker?
It works Ok on smaller pdf files.
I able to access to the path as configured in the local system run. I encountered access to the path is denied error when i hosted it in IIS server.
The error as showed in the screenshot.
can anyone help me on this?
Hello,
I have the following scenario. I have an InPlace Edit within a cell in a DetailTableView. The source of the DetailTableView is a list from a DataKey ("Instances"/InstanceList) of the MasterTableView DataSource. When the InPlace edit completes w/ an UpdateCommand, I need to update the "Instances" value so the DetailTableView can be rebound w/ the fresh data. I am attempting to do that via Rebinding the whole Grid, but the DetailTableView throws an exception, because for some reason it is attempting to bind the RadGrid's DataSource (FormSelection), instead of it's own DataSource (InstanceList).
When I just run the UpdateCommand, the DetailTableView rebinds w/o the new data, likely because the "Instances" value is not getting rebound. If I try to rebind the RadGrid to get the new value, that is when the exception gets thrown.
Here is the MasterTable header in ASCX
<telerik:RadGrid ID="rdgElectronicCCR" runat="server"
AutoGenerateColumns="false"
OnNeedDataSource="rdgElectronicCCR_NeedDataSource"
OnDetailTableDataBind="rdgElectronicCCR_DetailTableDataBind"
OnItemCommand="rdgElectronicCCR_ItemCommand"
OnItemDataBound="rdgElectronicCCR_ItemDataBound"
OnUpdateCommand="instanceView_UpdateCommand"
OnItemCreated="instanceView_ItemCreated"
OnPreRender="rdgElectronicCCR_PreRender">
<MasterTableView Name="MainView"
AutoGenerateColumns="false"
Width="100%"
RetainExpandStateOnRebind="true"
DataKeyNames="GeneratedFormTemplateId,ShortName,Description,Instances,Instances.OpenInstanceCount,Instances.ClosedInstanceCount">
<Columns>
DetailTable "InstanceView" in ASCX
<DetailTables>
<telerik:GridTableView Name="InstanceView"
Width="90%"
HorizontalAlign="Right"
EditMode="InPlace"
DataKeyNames="FormInstanceToken,IsComplete,CorrectionInProgress,PimsUserId,GeneratedFormInstanceId,WorkItems,Title">
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandInitiator">
<HeaderStyle Width="50px" Wrap="false" />
<ItemStyle Width="50px" Wrap="false" />
</telerik:GridEditCommandColumn>
<telerik:GridButtonColumn UniqueName="Delete" ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure you want to delete this instance? This cannot be undone.">
<HeaderStyle Width="1%" Wrap="false" />
<ItemStyle Width="1%" Wrap="false" />
</telerik:GridButtonColumn>
<telerik:GridTemplateColumn UniqueName="Title" DataField="Title" HeaderText="Friendly Name">
<ItemTemplate>
<asp:Label runat="server" ID="lblTitle" Text='<%# Eval("Title") %>' ToolTip='<%# Eval("FormInstanceToken") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadTextBox runat="server" ID="rtbEditTitle" Text='<%# Eval("Title") %>' SkinID="RadTextBoxRequired"></telerik:RadTextBox>
</EditItemTemplate>
<HeaderStyle Width="1%" Wrap="false" />
<ItemStyle Width="1%" Wrap="false" />
</telerik:GridTemplateColumn>
DataSource for RadGrid and the DetailInstanceView in Code Behind
protected void rdgElectronicCCR_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
RadGrid rdg = (RadGrid)sender;
if (!e.IsFromDetailTable)
{
var selections = new TemplateSelectionModel().GetLiveData(ctx, (int)EngineeringDataId);
rdg.DataSource = selections.OrderBy(x => x.ShortName);
}
}
protected void rdgElectronicCCR_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
{
RadGrid rdg = (RadGrid)sender;
GridDataItem parentItem = (GridDataItem)e.DetailTableView.ParentItem;
switch (e.DetailTableView.Name)
{
case"InstanceView":
{
InstanceList instances = (InstanceList)parentItem.GetDataKeyValue("Instances");
var orderedInstances = instances.OrderBy(x => x.IsComplete).ThenByDescending(x => x.ModifyDate).ToList();
e.DetailTableView.DataSource = orderedInstances;
break;
}
}
}
UpdateCommand in Code Behind
protected void instanceView_UpdateCommand(object sender, GridCommandEventArgs e)
{
var item = (GridDataItem)e.Item;
if (item.OwnerTableView.Name == "InstanceView")
{
var formInstanceToken = item.GetDataKeyValue("FormInstanceToken").ToString();
var title = (RadTextBox) item.FindControl("rtbEditTitle");
var newTitle = title.Text;
var instanceManager = new GeneratedFormInstanceCreationManager(ctx);
var existingInstanceSack = instanceManager.GetExistingInstance(Guid.Parse(formInstanceToken));
var sack = existingInstanceSack.sack;
sack.Title = newTitle;
instanceManager.UpdateGeneratedFormInstanceSackTitle(sack);
instanceManager.InvalidateCaches();
//rdgElectronicCCR.Rebind();
}
}
Thanks for any help!
-Jeff
<telerik:RadListView ID="RadListView1" runat="server" ItemPlaceholderID="ph1" ClientIDMode="Static" onsorting="RadListView1_Sorting" DataKeyNames="SiteID" DataSourceID="SqlDataSource1" AllowMultiFieldSorting="true"> <ItemTemplate> <tr align="left"> <td align="center"> <asp:Label ID="Label1" Text='<%#Eval("SiteID") %>' runat="server" /> </td> <td align="left"> <asp:Label ID="Label2" Text='<%#Eval("DisplayName") %>' runat="server" /> </td> <td > <asp:Label ID="Label3" Text='<%#Eval("RegularHrs") %>' runat="server" /> </td> <td > <asp:Label ID="Label4" Text='<%#Eval("OverTimeHrs") %>' runat="server" /> </td> </tr> </ItemTemplate> <LayoutTemplate> <center> <table cellpadding="10" cellspacing="0" class="stripe" width="100%" id="tblResults"> <tr> <td width="50" align="center"><a>ID</a></td> <td width="100" align="left"><a href="#" onclick="RadListView1_Sorting();return false;">Site Name</a></td> <td align="left"><h3>RH</h3></td> <td width="75" align="left"><h3>OTH</h3></td> <td width="135" align="left"><h3>Sent To</h3></td> </tr> <asp:PlaceHolder ID="ph1" runat="server" /> </table> </center> </LayoutTemplate> </telerik:RadListView>>
Have a Fileexplorer getting the results from an FTP connection. What I would like to do is set the selected/highlighted item from the value that will be returned in a SQL Dataset.
For example if FileExplorer currently has FileA, FileB, FileC, FileD listed and the database says for this record use FileB, well FileB is selected.
Also how do I add the value someone upload's so it can go into the database?
<telerik:RadFileExplorer RenderMode="Lightweight" runat="server" ID="FileExplorer1" Width="520px" Height="200px" EnableCopy="true" ExplorerMode="FileTree">
</telerik:RadFileExplorer>
Dim paths As String() = New String() {"/"}
FileExplorer1.Configuration.ViewPaths = paths
Dim deletePaths As String() = New String() {"/", "/"}
FileExplorer1.Configuration.DeletePaths = deletePaths
Dim uploadPaths As String() = New String() {"/", "/"}
FileExplorer1.Configuration.UploadPaths = uploadPaths
'The "ROOT/CanDelAndUpload/" folder Is configured with full permissions
FileExplorer1.Configuration.ContentProviderTypeName = GetType(FtpContentProvider).AssemblyQualifiedName
When apply pre-defined css class (from class dropdown) to <p> in editor it wraps the paragraph text with <span> and applies class to <span>
E.g. on your demo page Telerik Web UI Editor Overview Demo | Telerik UI for ASP.NET AJAX after apply .red-text to the first paragraph it resulted in
<p><span class="redText"><strong>Barcelona </strong>is an excellent place to discover world-class arts and culture. The sights in Barcelona are second to none. Don’t miss the architectural wonder, <a href="http://demos.telerik.com/aspnet-ajax/imagegallery/DestinationDetails?Id=1"><em>Casa Mila</em></a> - otherwise known as La Pedrera. You’ll want to see another one of Antoni Gaudi’s architectural masterpieces, <a href="http://demos.telerik.com/aspnet-ajax/imagegallery/DestinationDetails?Id=1"><em>Casa Batllo</em></a>, which is located at the center of Barcelona.</span> </p>
How to apply that class to <p> using toolbar and not switching to html mode?
I have this telerik tree view control
<telerik:RadTreeView RenderMode="Lightweight" ID="RadTreeView2" runat="server" Width="300px" Height="350px"
EnableDragAndDrop="True" OnNodeDrop="RadTreeView1_HandleDrop" OnClientNodeDropping="onNodeDropping" OnClientNodeDragging="onNodeDragging" EnableDragAndDropBetweenNodes="true">
<DataBindings>
<telerik:RadTreeNodeBinding Expanded="True"></telerik:RadTreeNodeBinding>
</DataBindings>
</telerik:RadTreeView>
I need to call the server side event after drop so I have added OnNodeDrop="RadTreeView1_HandleDrop"and on the cs file I have this event.
protected void RadTreeView1_HandleDrop(object sender, RadTreeNodeDragDropEventArgs e)
{
RadTreeNode sourceNode = e.SourceDragNode;
RadTreeNode destNode = e.DestDragNode;
RadTreeViewDropPosition dropPosition = e.DropPosition;
}
The Event is not hitting after the drop is there anything I am missing.
Something like what I have done with DropDownLists for an eternity:
if (RadMultiSelect1.Items.FindChildByValue("value") != null)
{
RadMultiSelect1.Items.FindChildByValue("value").Selected = true;
}
Just looking to auto add the logged in user as already selected on page_load.
The above doesn't seem to work.
And as usual, I did dig through the documentation and DuckDuckGo it.
Is there a way to completely disable collapsing of the RadDropDownTree control?
I want to be able to collapse and expand all the nodes, I just don't want users to be able to completely collapse the control.
In other words, I want to use it like RadTreeView but with the benefit of RadDropDownTree filtering.
Thanks!
--Clark