Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
302 views

I have a RadGrid inside of a Wizard step. 

Why is the GridTemplateColumn container control disabled when the Tab is disabled and then enablled? if I have the Wizard Step enabled=false and then set it to to True in client-side code, the RadButton inside of the GridTemplateColumn is disabled. If i set it to True from the start the RadGrid controls are fine.

What the heck?

 

<telerik:RadWizardStep runat="server" Title="Company" ID="RadWizardStepCompany" Enabled="false">

IF I SET THIS TO TRUE - THE BUTTON IN THE GRID IS FINE

<telerik:RadWizardStep runat="server" Title="Company" ID="RadWizardStepCompany" Enabled="true">

 

<telerik:GridTemplateColumn>
                                                                            <ItemTemplate>
                                                                                <div style="float: left; width: 100%;">
                                                                                    <telerik:RadButton ID="RadButtonSelect" runat="server" Text="Select" CommandName="Select" Enabled="true"
                                                                                        CommandArgument='<%# Eval("CompanyId")%>' AutoPostBack="false" OnClientClicked="RadButtonCompanySelectClicked" />
                                                                                </div>
                                                                            </ItemTemplate>
                                                                            <HeaderStyle Width="55px" />
                                                                        </telerik:GridTemplateColumn>

 

SDI
Top achievements
Rank 1
 answered on 04 Apr 2018
5 answers
301 views
Hi,

I have a splitter (Top and bottom) and in the bottom pane, i have 2 panes (left, and content panes)  where content  pane displays data controls like RadGrid.The content pane is loaded using ContentUrl property pointing aspx pages in my application.

If the user double click on a grid row in the content pane, a radwindow would open in the content pane, but the moment the user moves the radwindow to the left, it will hide under the left pane (it also stop moving top, under the top pane).This is not acceptable since my users will be using laptops most of the time,and also because my left pane is taking 160px, so this leave less than 800px for radwindow to be moved.

To solve this, I created a radwindow in the masterpage (outside the splitter) and added a javascript function to open the radwindow by calling this function from within the content pane.It works, and now radwindow sits on top of all the panes and can move on all the client area of IE, but the content pane becomes white will moving the window,and goes back to normal when i release the mouse.

Any ideas on why this is happening and how to fix it?

Thanks

Naveen
Top achievements
Rank 1
 answered on 04 Apr 2018
4 answers
590 views
Is there a way to toggle the display of a column depending on if it is being used as a group by expression?

Here's the scenario: As users create complex grouping sets, I want to remove the column they are grouping on from the list of columns. For example, they decide to group on category. Instead of showing category in the list of columns, now I don't need it since the items are grouped by category. They decide to remove the grouping for category, so it needs to be placed back into the grid.

Is this possible with a short amount of code?

Here's the code I'm currently using:

 

<telerik:RadGrid ID="CurrentCostCentersGrid" runat="server" Skin="Office2007" AllowMultiRowSelection="True"

 

 

AllowMultiRowEdit="True" ShowGroupPanel="True" AllowPaging="True" DataSourceID="DataSourceUnits"

 

 

GridLines="None" AutoGenerateColumns="False" PageSize="50" ShowFooter="true">

 

 

<ClientSettings AllowDragToGroup="true" AllowGroupExpandCollapse="true" AllowColumnsReorder="true"

 

 

AllowExpandCollapse="true">

 

 

<Selecting AllowRowSelect="true" />

 

 

<ClientEvents OnRowSelected="CostCenterSelected" OnRowDeselected="CostCenterUnselected" />

 

 

</ClientSettings>

 

 

<GroupPanel Enabled="true" Text="Groups">

 

 

</GroupPanel>

 

 

<PagerStyle Mode="NextPrevAndNumeric" NextPageText="Next" PrevPageText="Previous" />

 

 

<MasterTableView ShowGroupFooter="true" ShowFooter="true" DataSourceID="DataSourceUnits"

 

 

DataKeyNames="CostCenterItemID" CommandItemDisplay="None" ClientDataKeyNames="CostCenterItemID">

 

 

<CommandItemTemplate>

 

 

<asp:Button ID="BulkApproveButton" runat="server" Text="Bulk Approve" />

 

 

</CommandItemTemplate>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn Visible="False">

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridClientSelectColumn>

 

 

</telerik:GridClientSelectColumn>

 

 

<telerik:GridBoundColumn HeaderText="Fund" DataField="FundID" AllowFiltering="true"

 

 

DataType="System.Int32" SortExpression="FundID" ReadOnly="True" UniqueName="Fund" />

 

 

<telerik:GridBoundColumn HeaderText="Unit" DataField="UnitID" AllowFiltering="true"

 

 

DataType="System.Int32" SortExpression="UnitID" ReadOnly="True" UniqueName="Unit" />

 

 

<telerik:GridBoundColumn HeaderText="Line Item" DataField="LineItemID" AllowFiltering="true"

 

 

DataType="System.Int32" SortExpression="LineItemID" ReadOnly="True" UniqueName="LineItem" />

 

 

<telerik:GridBoundColumn HeaderText="Description" DataField="LineItemName" SortExpression="LineItemName"

 

 

UniqueName="Description" ReadOnly="true" Groupable="false" />

 

 

<telerik:GridBoundColumn HeaderText="Previous Budget" DataField="PreviousBudget"

 

 

AllowFiltering="true" DataType="System.Decimal" SortExpression="PreviousBudget"

 

 

UniqueName="PreviousBudget" DataFormatString="{0:C}" ReadOnly="True" Aggregate="Sum"

 

 

FooterAggregateFormatString="{0:C}" Groupable="false" />

 

 

<telerik:GridBoundColumn HeaderText="Previous Actual" DataField="PreviousActual"

 

 

DataType="System.Decimal" SortExpression="PreviousActual" UniqueName="PreviousActual"

 

 

DataFormatString="{0:C}" Groupable="false" Aggregate="Sum" FooterAggregateFormatString="{0:C}" />

 

 

<telerik:GridBoundColumn HeaderText="Current Budget" DataField="CurrentBudget" DataType="System.Decimal"

 

 

SortExpression="CurrentBudget" UniqueName="CurrentBudget" DataFormatString="{0:C}"

 

 

Groupable="false" Aggregate="Sum" FooterAggregateFormatString="{0:C}" />

 

 

<telerik:GridBoundColumn HeaderText="Current YTD" DataField="CurrentYTD" DataType="System.Decimal"

 

 

SortExpression="CurrentYTD" UniqueName="CurrentYTD" DataFormatString="{0:C}"

 

 

Groupable="false" Aggregate="Sum" FooterAggregateFormatString="{0:C}" />

 

 

<telerik:GridBoundColumn HeaderText="Proposed Budget" DataField="ProposedBudget"

 

 

DataType="System.Decimal" SortExpression="ProposedBudget" UniqueName="ProposedBudget"

 

 

Groupable="false" Aggregate="Sum" FooterAggregateFormatString="{0:C}" DataFormatString="{0:C}" />

 

 

<telerik:GridBoundColumn DataField="Category" EmptyDataText="&amp;nbsp;" HeaderText="Category"

 

 

SortExpression="Category" UniqueName="Category">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="StatusName" EmptyDataText="&amp;nbsp;" HeaderText="Status"

 

 

SortExpression="StatusName" UniqueName="StatusName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn HeaderText="Modify Date" DataField="ModifyDate" DataType="System.DateTime"

 

 

SortExpression="ModifyDate" UniqueName="ModifyDate" />

 

 

</Columns>

 

 

<DetailTables>

 

 

<telerik:GridTableView DataSourceID="DataSourceHistory" AutoGenerateColumns="false"

 

 

ShowHeader="false" GroupsDefaultExpanded="false" NoDetailRecordsText="No notes currently exist for this item"

 

 

Width="85%" CommandItemDisplay="Top">

 

 

<CommandItemTemplate>

 

 

<telerik:RadToolBar ID="DetailsToolbar" runat="server" Skin="WebBlue" Width="100%"

 

 

AutoPostBack="true">

 

 

<ExpandAnimation Type="OutQuad" Duration="150" />

 

 

<CollapseAnimation Type="InQuad" Duration="150" />

 

 

<Items>

 

 

<telerik:RadToolBarButton Text="Make Request" CommandName="MakeRequest" ImageUrl="Images/request.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton IsSeparator="true">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarDropDown Text="Approvals">

 

 

<Buttons>

 

 

<telerik:RadToolBarButton Text="Approved" CommandName="ManagerApprove" ImageUrl="Images/approve.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton Text="Rejected" CommandName="ManagerReject" ImageUrl="Images/reject.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton Text="Approve - Lock" CommandName="PortalApprove" ImageUrl="Images/paapprove.gif">

 

 

</telerik:RadToolBarButton>

 

 

<telerik:RadToolBarButton Text="Reject - Back to Manager" CommandArgument="PortalReject"

 

 

ImageUrl="Images/pareject.gif">

 

 

</telerik:RadToolBarButton>

 

 

</Buttons>

 

 

</telerik:RadToolBarDropDown>

 

 

</Items>

 

 

</telerik:RadToolBar>

 

 

</CommandItemTemplate>

 

 

<ParentTableRelation>

 

 

<telerik:GridRelationFields MasterKeyField="CostCenterItemID" DetailKeyField="ItemID" />

 

 

</ParentTableRelation>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridTemplateColumn>

 

 

<ItemTemplate>

 

 

<strong>

 

<%

#Eval("CreateDate","{0:d}") %>&nbsp;<%#Eval("CreateDate","{0:t}") %>&nbsp;-&nbsp;<%#Eval("UserName")%>:</strong>&nbsp;

 

<%

#Eval("NoteText")%><br />

 

 

<strong style="color: Red">Requested Increase:</strong>&nbsp;

 

<%

#Eval("RequestedBudget", "{0:C}")%>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

<PagerTemplate>

 

Item Description

 

</PagerTemplate>

 

 

</MasterTableView>

 

 

<FilterMenu EnableTheming="True" Skin="Gray">

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</FilterMenu>

 

 

</telerik:RadGrid>

 

Marin Bratanov
Telerik team
 answered on 04 Apr 2018
30 answers
1.7K+ views

First off, I think the Gantt is a nice little tool and I understand this is the first version but I'm encountering so many issues. Maybe these can be addressed in the next release or maybe I'm doing something wrong. 

1. When I try and enter a date manually, I have to enter the date with a space before and after it in order to take. I can't enter a 4 digit year either. Then when the "invalid date message is displayed" it is over the calendar so I can't even select a month because it is behind the message. 

2. If entering a start time, it must be after the end time. I understand this is a requirement, but what if I'm choosing the start date first? With the autoupdating, I have no control over when the database gets updated. I'd rather allow the user to select the dates (they might not always select the end date first) then save. 

3. There is no support for programmatic databinding. I don't understand why the method is there if it doesn't work?

4. There is no easy way to delete tasks without finding it on the calendar and then deleting it. It would work better if the calendar would automatically navigate to the task in the calender, but I'd rather be able to right click or have a delete column on the grid. Unfortunately there are not template columns available or options to build in my own delete functionality. 

5. When a task is a single day, I still can't figure out how to delete it. I have to make it at least 2 days to see the delete icon. Also, there is no way to modify a single day task from the calendar. 

6. Dependency should be an option and not a requirement. This is certainly a nice feature but it really gets confusing looking at these lines. There should be a way to turn this off. 

7. After playing with the Gantt for a while I occasionally get Javascript errors "Maximum call stack size exceeded" and the Gannt simply doesn't respond.  

8. Grid columns should be resizable. 

9. The Add Task button's text should be customizable, along with the split button text. 

10. New tasks are automatically added at the beginning of the calendar. It would be nice if the columns in the calendar were selectable and a new task was added to the selected day.

11. It would be nice to have a printing option for the calendar. 

12. I don't see a way to delete dependency lines. 

Again, I do understand this is a first version, but with so many obvious bugs, I just can't believe it was released. Hopefully some of these can be addressed in the next release. I wanted some of our users to start testing the new Gantt, but I wouldn't dare have them look at it in this state as it is almost unusable in my opinion. 


SDI
Top achievements
Rank 1
 answered on 04 Apr 2018
2 answers
302 views

Hi,

 

I am trying to change the Time column on the Agenda View to be in 24 hour format instead of showing AM/PM.  I saw a lot of support in other areas of the Scheduler but not so much on the Agenda View, and the only area of Agenda view I saw that can be modified date wise was the header.

http://demos.telerik.com/aspnet-ajax/scheduler/examples/agenda-view/defaultcs.aspx

Thanks in advance,

Josh D.

Peter Milchev
Telerik team
 answered on 04 Apr 2018
1 answer
255 views

Hi,

I have rad drop down tree as below. When I click on one node in the drop down tree I am able to see the parent node getting expanded by using below client side script and if i click on other node the script executes and node gets expanded. Is there a way I can collapse all other nodes except the current clicked node?

 

<telerik:RadDropDownTree RenderMode="Lightweight" ID="OfficeDropDownPrgFilter" runat="server" Width="500px"
                   ExpandNodeOnSingleClick="true"  AutoPostBack="true" OnClientEntryAdded="OnClientEntryAdded1" 
                    EnableFiltering="true" OnEntryAdded="OfficeDropDownPrgFilter_EntryAdded"> 
                    <DropDownSettings OpenDropDownOnLoad="true"  />
                    <FilterSettings Highlight="Matches" Filter="Contains" EmptyMessage="Type here to filter" />
                </telerik:RadDropDownTree> 

 

function OnClientEntryAdded1(sender, args) {
var path = args.get_entry()._fullPath;
var item = sender.get_embeddedTree().findNodeByText(args.get_entry().get_text());
var node = item.get_parent();
node.expand();
}

 

 

 

Pradeep
Top achievements
Rank 1
 answered on 03 Apr 2018
1 answer
142 views

Hi Team,

 

It's possible for one node to report to two upper node? Please have a view on attachment below.  

Peter Milchev
Telerik team
 answered on 03 Apr 2018
0 answers
214 views

when  I try to edit image it opens up the editor but if i try it twice or thrice it may or may not open up some time and gives internal error 500 as the error message in the console

message in the console:

Name Protocol Method Result Content type Received Time Initiator
Telerik.Web.UI.WebResource.axd?type=iec&pr=c&key=6a215ad6-1b37-4bda-b9cb-5ab18f91d6fa HTTPS GET 500 text/html 75 B 1.27 s image

message inside the error log:

Exception type: ArgumentNullException Exception message: Buffer cannot be null. Parameter name: buffer at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable) at Telerik.Web.UI.ImageEditor.CacheImageProvider.ToEditableImage(Byte[] data) at Telerik.Web.UI.ImageEditor.ImageEditorCacheHandler.ProcessRequest(HttpContext context) at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context) at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Request information: Request URL: Telerik.Web.UI.WebResource.axd?type=iec&pr=c&key=a5509632-316e-4698-a362-c73bc42df739 Request path: Telerik.Web.UI.WebResource.axd 

Anuja
Top achievements
Rank 1
 asked on 03 Apr 2018
13 answers
327 views
I am using Sitefinity 4.4, so this is occuring in whichever version of Telerik controls that is contained with that version.

I am trying to set our custom toolbar for the RadEditor, which worked in previous versions.

I tried to specify a virtual path in the ToolsFile like so:

protected void Page_Load(object sender, EventArgs e)
    {
        reditDescription.ToolsFile = "~/WebsiteTemplates/ControlTemplates/EditorToolsFile.xml";


And I got this little error:

Could not find a part of the path 'C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\~\WebsiteTemplates\ControlTemplates\EditorToolsFile.xml'.

It appends a physical path for some strange reason.

So I thought maybe I'd try a physical path since it wants to append a physical path:

protected void Page_Load(object sender, EventArgs e)
    {
        reditDescription.ToolsFile = Server.MapPath("~/WebsiteTemplates/ControlTemplates/EditorToolsFile.xml");

When I do this I get this error:

'C:/Program Files/Telerik/Sitefinity 4.4/Projects/HealthChoiceWebsite/WebsiteTemplates/ControlTemplates/EditorToolsFile.xml' is a physical path, but a virtual path was expected.

These errors are both contradictory to each other. Making this feature completely useless. Which one do I use? Physical path, or virtual?

What is the solution to this?
Rumen
Telerik team
 answered on 02 Apr 2018
7 answers
467 views

Hello,

 

I have an ASP.NET site that has been working fine and continues to work for IE 10 users. But for those who have upgraded to IE 11, the RadAsyncUpload no longer works when trying to drag/drop files. For example, if an IE 10 user has Windows Explorer and the webpage side-by-side, they can easily drag a file from Windows Explorer, and successfully drop the file onto the RadAsyncUpload control (the control is embedded in the webpage). By if an IE 11 user attempts to do the same thing, nothing happens. When they drop the file on the RadAsyncUpload control, it just disappears.

 

My webpage is basically modeled after the AsyncUpload - File Upload with Drag and Drop demo. This has been working for months. The problem began with some of the IE 10 users upgraded to IE 11. The IE 11 users can click the [Select] button and successfully add files to upload, but they can no longer drag/drop.

 

I’ve tried to resolve this issue by applying the suggestions in the following Internet resources, but have had no luck resolving the problem:

 

    How to get your ASP.NET application working in IE11

    http://blogs.telerik.com/aspnet-ajax/posts/13-12-19/how-to-get-your-asp.net-application-working-in-ie11

 

    ASP.NET Doesn’t Detect IE11

    http://jwcooney.com/2013/11/19/asp-net-doesnt-detect-ie11/

 

Does anyone know how I can resolve this issue I am having with IE 11?

 

Thank you

Marin Bratanov
Telerik team
 answered on 02 Apr 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?