Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
63 views
How to change the default panelbarhandle image?
Princy
Top achievements
Rank 2
 answered on 21 Aug 2012
3 answers
211 views
I want to know if it is possible to show the gridboundcolumn as a hyperlink from code?(instead of using hyperlink)?
Shinu
Top achievements
Rank 2
 answered on 21 Aug 2012
5 answers
132 views
Hi all,

I m trying to fill my radgrid's datasource by using linq to sql. Till now i successfully done it when i used only one table in queries. But when i wanted to join two tables i failed. Here is the method i used for data binding.

public RadGridSurveyAnswerPointsModel ViewSurveyAnswerPoints(int startIndex, int maximumRows,
string sortExpressions, string filterExpressions)
{
RadGridSurveyAnswerPointsModel model = new RadGridSurveyAnswerPointsModel();
IQueryable q = (from x in Context.cc_SurveyPoint
          join y in Context.CC_SurveyPointMain on x.SurveyMainPointID equals y.ID
          orderby x.Code
          select new DenemeClass
          {
               Id = x.ID,
               Code = x.Code,
               Description = x.Description,
               Sequence = x.Sequence,
               isActive = x.ISActive,
               IconId = x.IconId,
               Point = x.Point,
               SurveyMainPointId = y.Code
         });
            GridLinqBindingData data = RadGrid.GetBindingData(q, startIndex, maximumRows,
sortExpressions, filterExpressions);
            model.AnswerPointsList = data.Data.OfType<DenemeClass>().ToList();
            model.Count = data.Count;
            return model;
}

public class DenemeClass
    {
        public Guid Id
        {
            get;
            set;
        }
 
        public string SurveyMainPointId
        {
            get;
            set;
        }
 
        public string Code
        {
            get;
            set;
        }
 
        public string Description
        {
            get;
            set;
        }
 
        public int Point
        {
            get;
            set;
        }
 
        public int? IconId
        {
            get;
            set;
        }
 
        public int? Sequence
        {
            get;
            set;
        }
 
        public bool isActive
        {
            get;
            set;
        }
 
    }

It is compiled and at run time i get this error : DenemeClass' is not a valid metadata type for type filtering operations. Type filtering is only valid on entity types and complex types. 

It may not be related with radgrid but i guess you good people could help me. Thanks.
Matthew
Top achievements
Rank 1
 answered on 21 Aug 2012
0 answers
114 views
I have moved my application from one server to another. I am currently having an issue with the upload control on the new server.

I get a null reference exception when accessing.
RadUploadContext.Current.UploadedFiles

This returns a id
Response.Write(@"<script language='javascript'>alert('" + Request.QueryString["RadUrid"] + "');</script>");

Server setup
Windows 2008 R2
IIS 7.5

Thanks
Jonathan
Top achievements
Rank 1
 asked on 20 Aug 2012
1 answer
101 views
Hello,
I have created a web control that contains RadGrid based on this example: http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx.

The problem is, all the buttons on this page are hidden - including those in the RadGrid used for grouping. Firebug shows:
button, input[type="submit"], input[type="reset"], input[type="button"], input[type="checkbox"], input[type="radio"], select {
    visibility: hidden !important;
}

If I remove "hidden" in firebug, buttons work well. Why is the visibility set to hidden? I've found on this forum that it can be caused by RadFormDecorator. I'm using class "BasePage" that all the classes in the project inherit from. There, in OnPageLoad event I have:

Master.Controls.OfType<HtmlGenericControl>().First(t => t.TagName == "html")
                  .Controls.OfType<HtmlForm>().First()
                  .Controls.Add(new RadFormDecorator { DecoratedControls = FormDecoratorDecoratedControls.Fieldset |  FormDecoratorDecoratedControls.Buttons });

When I skip this step during debugging, buttons are displayed and grouping works. But I have no idea how to solve that problem.

Buttons and grid work correctly on other pages/controls in the solution. I haven't noticed any difference between my page and the others that could have any influence on that situation like additional scripts, styles etc.

What could be wrong?

Thank you in advance.

pawelg
Top achievements
Rank 1
 answered on 20 Aug 2012
1 answer
49 views
I installed Telerik ASP.NET AJAX RadControl on a workstation about a year ago. After I updated the code app, only the telerik toolkit appears in the VS 2010 IDE toolkit window. All the other toolkits like ASP.NET controls and HTML controls stop being displayed. But they are available via intelisense.

Is there a fix for this problem?
KIng
Petar
Telerik team
 answered on 20 Aug 2012
1 answer
312 views
I set the ImageURL property of the TreeView Nodes during the NodeDataBound event.  I want to set the text for the "alt" attribute of the image.  If I set the ToolTip property of the Node, it adds the ToolTip text to the alt property of the Node image, but it also adds a "title" property with the same text to the entire text of the node.  This is unwanted.

So, the question is: How can I set the image alt text on a node, during binding in code, without adding the same text as the title attribute for the text?

Thanks.
Boyan Dimitrov
Telerik team
 answered on 20 Aug 2012
1 answer
152 views
I am having some trouble with radscriptblock when the parent control is hidden and shown again through an ajax postback.

JSTest.aspx.cs: http://pastebin.com/G4ZFB32z
JSTest.aspx: http://pastebin.com/YpQWidRC
MyControl.aspx.cs: http://pastebin.com/NfXrQGiL
MyControl.aspx: http://pastebin.com/DZkJeJzd

When I click "Hide", the panel and control inside it become hidden. When I click show, the control is shown, but I get the following javascript error: 
Uncaught TypeError: Cannot read property 'currentStyle' of undefined Telerik.Web.UI.WebResource.axd:6
Sys.UI.DomElement.getVisible Telerik.Web.UI.WebResource.axd:6
Sys.UI.DomElement.setVisible Telerik.Web.UI.WebResource.axd:6
Sys.UI.Control.set_visible Telerik.Web.UI.WebResource.axd:6
InstalledByCheckChanged JSTest.aspx:8
(anonymous function) JSTest.aspx:2
Martin
Telerik team
 answered on 20 Aug 2012
0 answers
91 views

Hello good morning,

We are using Telerik asp.net Ajax license version .dll.

I have an application where i am creating a gallery of images.

I am using some jquery media js to display the media gallery content which is basically swf files.

To display the list of images and media content i have used telerik rad listview and telerik grid.

But, i was unable set the ajax response as the RadAjaxmanager  and radajxmanagerproxy is not working with the postback.

Since the ajax thing is not working properly.

For further information look into the demo image.

As you can see in image,when i click on the green buttons that appear on the top paging control.

when i Click on the button and the page is getting postback on click so the ajax thing is not working.

I need to use some jquery plugins.So i tried as mentioned in the telerik website but was still not able to do it.

Also, in the case of the grid on the left side if i click on the keyword then also the ajax is not working.

I need to workout both the things with telerik and jquery plugins that i am using.

Also, if i use radajaxpanel instead of radajaxmanager, then the overlay image is not working properly.and also my jquery plugins don't seem to work..I need to use telerik as well the plugins.I have attached the image of the page from which the control on the right is the listview and the left hand control is the telerik grid. But as explained above i am unable to show overlay effect or ajax effect on post back.

please, Somebody could help me out with these thing.

 

Thanks,

            Priyank
Priyank
Top achievements
Rank 1
 asked on 20 Aug 2012
1 answer
72 views
http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultvb.aspx

There is no documented VB file for the file ProductDetails.ascx.  It only shows the code for the html part, not the code behind.  Am I overlooking something?
Marin Bratanov
Telerik team
 answered on 20 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?