Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
132 views

Greetings,

 I was trying to use the Contains filter with a value containing a '%' char in hte middle of value but no success. The settings are:

  • EnableLinqExpressions="False"
  • The columns are generated programatically

What I'm trying to filter is something like:

([description] like '%apple%juice%') to bring values like "green apple juice" or "apple juice box" or even "yadda apple whatever juice" (sorry for the bad example)

 

The filter expression when I enter "apple%juice" in the filter item is generated like that example but the filter doesn't work. Is this approach possible or simply can't be done?

romulo~
Top achievements
Rank 1
 answered on 22 Dec 2015
4 answers
427 views
Hello,

I am following one of your demos on how to export radGrid data to PDF. http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/pdf-export/defaultcs.aspx

After following the demo I ran into an issue where nothing would happen after clicking the "downloadPDF" button. After some research I came to learn that this may be caused by an AJAX issue because the page needs to return stream rather than XttpRequest used for AJAX.

The proposed solution (which is outlined in your demo) is to add a block of javascript code to the page like this:

<script type="text/javascript">
    function requestStart(sender, args) {
        if (args.get_eventTarget().indexOf("btnDownloadPDF") > 0)
            args.set_enableAjax(false);
    }
</script>


The problem I am having is that I must somehow tie this function to the AjaxManager's ClientEvents-On-RequestStart attribute, but I am using an AjaxManagerProxy (since we already have an AjaxManager on the master page) and the AjaxMangerProxy does not seem to posses such a client side setting.

Please advise on how I can set this value for ClientEvents-On-RequestStart for an AjaxManagerProxy?

Thanks in advance,
Justin


Rahul
Top achievements
Rank 1
 answered on 22 Dec 2015
3 answers
382 views
Hi,

I've the below format in my aspx:

 

 

<ExportSettings ExportOnlyData="true" OpenInNewWindow="true" HideStructureColumns="true">

 

 

 

<Excel Format="Biff" />

 

 

 

</ExportSettings>

 


I need to do the foll:
1) When exporting to excel, how do I left justify the header and excell cell contents .(i've biff formatting. I cannot change it to html due to excel warning message.)

I tried this in itemCommand:

GridItem

 

 

Item = (GridItem)radDASignature.MasterTableView.GetItems(GridItemType.Item)[0];

 


 

 

foreach (TableCell tcell in Item.Cells)

 

{

tcell.Text = tcell.Text.Replace(

 

"<nobr>", "");

 

tcell.Style[

 

"text-align"] = "left";

 

tcell.HorizontalAlign =

 

HorizontalAlign.Left;

 

}
This above doesn't work. Please help with code.

2) When exporting the cell content in excel,I  have <nobr> and </nobr> tags to the data. How do I get rid of them while exporting.
I set them in column created event to avoid wrapping of cell contents. However, I do not want the <nobr> added to the excel data while exporting.

Dilip
Top achievements
Rank 1
 answered on 22 Dec 2015
1 answer
154 views

Hi,

 

we are using the org chart in our projects and they render great on screen.

 However, when you click on print - they loose all their formatting and connecting lines etc.

 Is there some way that we can configure the controls so that they print better?

 

Thanks,

Patrick.

Nencho
Telerik team
 answered on 22 Dec 2015
2 answers
170 views

Hi

I've noticed that the drag and drop functionality of the AsyncUpload control doesn't seem to work in Microsoft Edge (IE 11 replacement) on Windows 10.

It works fine in Chrome & Firefox.

I've confirmed this behaviour against the Telerik demo: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx

Anyone else able to confirm this? Any thoughts?

Dimitar
Telerik team
 answered on 22 Dec 2015
3 answers
122 views

Hi,

I have a situation where I need to create a tree consisting of the following entities:

Organization Entity

   ---> Organization Account

        --> Organization Account Record

 Organization Entities can have sub-Organization entities, Accounts can have sub-Accounts and records can have sub-records.

As such I want to have different icons for the entity types, Different expand and click functionality based on the types and different context menu's for each type.

I have created custom "RadTreeNode" classes in the following way:

    public class OrgNode: RadTreeNode
    {

        public OrgNode()
        {
            this.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
            this.ImageUrl = "../Images/image01.png";
        }
    }

    public class OrgAccountNode: RadTreeNode
    {
        public OrgAccountNode()
        {
            this.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
            this.ImageUrl = "../Images/image02.png";
        }
    }

    public class OrgAccountRecordNode: RadTreeNode
    {
        public OrgAccountRecordNode()
        {
            this.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
            this.ImageUrl = "../Images/image03.png";
        }
    }

My problem exists when I use the "TreeView_NodeExpanded" method, because (as mentioned above) I want to do different things based on what type of node is expanded...

Using the following statements:

e.Node.GetType() 

returns correctly for the top node (OrgNode - the only node on the page not created using the serversidecallback) but only returns "RadTreeNode" as the type for all other nodes which I have added using ServerSideCallback even though the nodes added are showing the correct images and text.

Has anyone got any thoughts on this?

Peter Filipov
Telerik team
 answered on 22 Dec 2015
5 answers
388 views
I've done several variations on on forum searches and looked through the help, but I'm not finding the solution I seek (if it exists).

I have a RadGrid whose editform background color I'd like to change (ideally make it transparent), but I can't find the property to do this.

I'm using the Simple skin.  I've gone to the Visual Style Editor to see of this was changeable.  No go. 
I've tried to go through the property builder > Master table > Styles manager > General table style > Back color.  No go.
I've gone in through the properties pane:
MasterTableView > BackColor
MasterTableView > EditFormSettings > FormStyle > BackColor
MasterTableView > EditFormSettings > FormMainTableStyle > BackColor
MasterTableView > EditFormSettings > FormTableStyle > BackColor

I've changed them individually and all together.

Any help / direction?
Eon
Top achievements
Rank 1
 answered on 22 Dec 2015
1 answer
68 views

Hello, 

 After unexpected restart of my system i got this error. Please any one can help me on this issue.

Could not load file or assembly 'Telerik.Web.UI, Version=2015.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

 Thanks in Advance

Prakash A

Pavlina
Telerik team
 answered on 22 Dec 2015
11 answers
519 views
Hi all,
I'm implementing a file upload with direct access to DB with custom http handler. I read all the samples but I dont understand how to add an additional description field that the user have to write before sent the file.
I have to implement a page like this http://demos.telerik.com/aspnet-ajax/asyncupload/examples/imageuploader/defaultcs.aspx adding a description textbox, sent this value with the handler and save all to DB.

It's this possible?

Thanks,
Gianluca
Plamen
Telerik team
 answered on 22 Dec 2015
5 answers
413 views
I have my wrapped in

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

But I still get the error:
"Code blocks are not allowed in this file"

Any ideas on what I could be missing here?
Pavlina
Telerik team
 answered on 22 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?