Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
135 views
Hello,

I'm trying to build an application which allows the user to create filters and save them in a database to be used with SSIS.
I'm able to save and load the filter in base64 format and i can also get the generated SQL with the RadFilterSqlQueryProvider.

I have to make the initial parametrization of the application, and it has lots and lots of filters and criteria and I would like to use something like a spreadsheet to build the string, something like ([Field1] = '7' AND [Field2] = 8), save it directly to the database (MS SQL Server 2008) and have RadFilter parse those strings.
Then the user would be able to edit the filters and I wouldn't have to build them "manually" via webform. :)

I'm using VS2010 with ASP.Net Ajax Q1 2012 SP1

Can anyone show me the light? :)
Sérgio
Top achievements
Rank 1
 answered on 21 Jul 2017
6 answers
210 views
I have multiple links opening a radwindow that uses anchor tags.  sample code: NavigateUrl="~/controls/HostPages/SearchDetailed.aspx#casescale".  This was working initially then just stopped working.  If I open the url in a seperate browser the anchor tags work fine.

Any ideas?

Thanks in advance.
Ivan Danchev
Telerik team
 answered on 21 Jul 2017
8 answers
1.2K+ views
Evening
I have now spent 2 days trying all the logs I could find on the forum to resolve this.
When I debug the site locally it all runs fine, but when I publish to my azure web apps location the default.aspx page gives me a  Could not load file or assembly 'Telerik.Web.UI'

I have attached the website. It has no functionality, just a single default page with some controls.
All I need is for it to open up when published to the web.

Thank you
Theo
Vinod
Top achievements
Rank 1
 answered on 21 Jul 2017
0 answers
188 views

Hello,

i have a column in rad data grid which bind to property from TimeSpan type the kind of this column is template and i present the data in this format  HH:MM:SS, when hour present the total hours (more then 24) from this function:

protected string PrintTimeSpan(TimeSpan? time)
        {
            return time == null ? "N/A" : string.Format("{0}:{1}:{2}", (int) time.Value.TotalHours, time.Value.Minutes, time.Value.Seconds);
        }

 

I want to enable to filter this column when user input will be in same format currently when i enter input with more than 24 hours it throw error about the format, how i costume the action of some filters on template column (like "greater than" and "less than"), without to implement the section of filter template in myself.

in addition how i define validator on filter filed  to unable to enter string with wrong format, currently i can enter in this column filter of kind time span regular string and get error on page when try to filter

this is example of my column definition

01.<telerik:GridTemplateColumn DataField="AllGood" FilterControlAltText="Filter AllGood column" SortExpression="AllGood" UniqueName="AllGood" FilterControlWidth="70px">
02.                                <HeaderTemplate>
03.                                    <table style="width: 100%; text-align: center">
04.                                        <tr style="text-align: center">
05.                                            <td>
06.                                                <asp:Image runat="server" AlternateText="Status - All Good" ToolTip="Status - All Good" ImageAlign="Middle" Height="60px" Width="60px" ImageUrl='~/Images/Stations/Green.png' />
07.                                            </td>
08.                                        </tr>
09.                                    </table>
10.                                </HeaderTemplate>
11.                                <ItemTemplate>
12.                                    <asp:Label ID="AllGoodLabel" runat="server" Text='<%# PrintTimeSpan((TimeSpan?)Eval("AllGood")) %>'></asp:Label>
13.                                </ItemTemplate>
14.                            </telerik:GridTemplateColumn>

 

 

Adi
Top achievements
Rank 1
 asked on 20 Jul 2017
0 answers
119 views

I'm working on customizing advanced form of the scheduler.

I have been able to achieve the customization part using user controls (AdvancedForm, ResourceControl and MultipleValuesResourceControl).

I have two controls of single value resource control type and one control of multiple values resource control type. Find the screenshot depicting this.

My requirement involves replacing this multiple values resource control from check boxes to a multi-select combo box.

I tried replicating the current multiple values resource by adding a new user control, called it MultipleValuesDropDownResourceControl.ascx, registered it in AdvancedForm and tried making changes in the MultipleValuesDropDownResourceControl.cs file to replace with but I wasn't able to achieve this functionality. I wasn't able to even partly achieve this, hence I don't have any code to share.

Can anyone please provide some guidance on how a control type can be modified. 

Links I have referred to achieve customized advanced form - http://www.telerik.com/support/code-library/customize-the-advanced-form-with-the-advanced-template-user-controls

http://www.telerik.com/videos/aspnet-ajax/advanced-aspnet-ajax-scheduler-customization (tutorial I followed)

http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/customize-the-advanced-form-template

Swetha
Top achievements
Rank 1
 asked on 20 Jul 2017
1 answer
284 views

Hi, I have implemented RadAsyncUpload on my page. I run the project. When I select the file, the page does total refresh automatically as if it was ran for the first time. Please help!

I am using VS2017

Controls version 2014.2.724

My code:

 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
            <telerik:RadAsyncUpload ID="RadAsyncUploadAttachment" runat="server" MultipleFileSelection="Automatic" TabIndex="300"
                AllowedFileExtensions="jpg,jpeg,png,gif,bmp,pdf">
            </telerik:RadAsyncUpload>
        </div>
    </form>
</body>
</html>
Kathleen Johnson
Top achievements
Rank 1
 answered on 20 Jul 2017
2 answers
114 views

I have two servers. I have set Telerik.AsyncUpload.TemporaryFolder in my web.config on both servers. On server # 1, the setting looks like this: "\\192.168.0.5\upload\". On server #2 (which hosts the shared folder), it looks like this: "c:\files\upload\". Both point to exactly the same folder, and both servers have write permissions. I do not have a target folder set.

This generally works, but occasionally fails. I end up with the uploaded file in "c:\files\upload" on server #1. When my process looks for the file in the shared folder on server #2, it is not there. Nowhere on server #1 is the temp file location set to that local folder - it is always set to the shared folder.

I modified the temp location on server #2 to use the same share path as server #1. This seems to be working, but I will need to watch it for a while.

So, two questions. First, was I causing my own problem by using two different strings to point to the same shared folder? And second, is there any issue with not using a target folder? I just pick up the files from the temp folder and move them where I need them. This seems to be ok, but I thought I would ask in case I am missing something.

Dan Ehrmann
Top achievements
Rank 1
 answered on 20 Jul 2017
0 answers
104 views
Hi want to remove Telerik HTML and Preview sections from RadEditor how do do that
Ravindranath
Top achievements
Rank 1
 asked on 20 Jul 2017
18 answers
2.6K+ views
Hello There, I have a RadGrid, populated using NeedDataSource Event.
Now, I want to get the names of all my groups(ie, values of cells in a column) on a button click as follows 
(note: the button is on the same page as grid, not inside the grid)

On Button Click Event :
 foreach (GridItem item in rgGroups.Items)
            {
                GridDataItem ditem = item as GridDataItem;
                if (ditem["GroupType"].Text.Trim() == "Customer")  //GroupType is a Template Column
                {
                    string grpname = ditem["GroupName"].Text;  //GroupName is BoundColumn
                    customers.Add(gname);
                }
            }
                        
            listGroups.DataSource = customers;
            listGroups.DataBind();

But, the string grpname is always null. Not sure, if this the right way.

Thanks,
Sri
Swati
Top achievements
Rank 1
 answered on 20 Jul 2017
9 answers
1.5K+ views
I'm just looking to add a few options to the drop down list of, make it 15,50,150,250. There's got to be an easy way to do this yes? I don't want to change anything else on paging, but I have a feeling I need to change the pager template? Is there a template I can use that is exactly the same but I can update the drop down? Wish there was a need date source for that drop down. Any ideas would be great, thanks.

Joshua
Tassilo
Top achievements
Rank 1
 answered on 20 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?