Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
163 views
I tried to mimic the example here:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx

However I am unable to get the tooltip to pull in the data from the event item. Can someone fill me in on how that info is passed to the class? Maybe I have a spelling error or something.

It works if I hard code the text as such:

protected

 

 

override void OnPreRender(EventArgs e)

 

 

{

 

 

 

base.OnPreRender(e);

 

 

StartingOn.Text =

 

"Start Date HERE"; //apt.Owner.UtcToDisplay(apt.Start).ToString();

 

FullText.Text =

 

"Description Here<br /><br /><br />"; //apt.Subject;

 

}

Otherwise I get a JS error.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; HPNTDF; BRI/1; .NET4.0C; .NET4.0E)
Timestamp: Tue, 22 Feb 2011 23:02:54 UTC

Message: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/calendar/ScriptResource.axd?d=PeJmTGtbo6emTCMAFGjoVIZNSw0D1j6wp348ikmvclZFjWaJlpExLMpCLhd9-V5RTYDkwGS4vY5sCHAddiMlIhhTtgF_xtflgwD7pz3oq-dsmru87Akfq0gE17iRhBAnYH6LVvCzb_t115UFLRqJSGUkW2V_nRmPubJqQpIByqJPzK9K0&t=5c2f384e

 

Veronica
Telerik team
 answered on 09 Mar 2011
3 answers
168 views
Hello,
I'm using a WebUserControl to edit/insert data into my radgrid. I experience some inconsistent behavior when I tried to access the data inside my WebUserControl. The way I access the data  is

GridEditFormItem editedItem = (GridEditFormItem)_radgNiv3.MasterTableView.GetItems(GridItemType.EditFormItem)[0];
 
if (editedItem.CanExtractValues)
{
       UserControl userControl = (UserControl)editedItem.FindControl(GridEditFormItem.EditFormUserControlID);
...

The update/insert operation can be initiate from different control in the page, so it doesn't always go through the ItemCommand event of my radgrid. Every control that can initiate an update/insert is using ajax. Here's a part to illustrate the situation

  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="_lbtnAdd">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="_radgrig"
                    LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
...

_lbtnAdd is a LinkButton. If _radgrig is in edit mode and the user click on _lbtnAdd, I'm suppose to check for modification than act accordingly. But, code that work in other situation, doesn't work here, editedItem.CanExtractValues = false. Of course, if I tried to find my form, it stays null. Looking inside of editedItem, I can see that there is an exception inside the object:
EditManager   'editedItem.EditManager' threw an exception of type 'Telerik.Web.UI.GridBindingException'   Telerik.Web.UI.GridEditManager {Telerik.Web.UI.GridBindingException}

Going deeper, reveal:
base   {"The current EditFormType does not support the requested editing capabilities."}   System.Exception {Telerik.Web.UI.GridBindingException}

This one is driving me nuts since it come and go. How can I make sure to always be able to access the data? What can cause the exception? Is it related to event order? Please help!!!

Thank you for your time,
Louis-Philippe
Louis-Philippe
Top achievements
Rank 1
 answered on 09 Mar 2011
1 answer
61 views
I have the FileExplorer working perfectly in IE 8, but in both Chrome and Firefox the folders display fine, but the files do not display at all. Can anyone give me a work around for this? Thanks.
Dobromir
Telerik team
 answered on 09 Mar 2011
1 answer
127 views
I have the Image Manager ViewPaths set to a Virtual directory.  When I load the Rad Editor I can see the contents of that folder, however, if I select an image I can not see that image in the right most panel.  Further, if is insert that image into my document.  It fails to render.  When I check the html I can see that an image was inserted, and that the path is correct.  However, the image fails to appear.  If I navigate directly to the image in my browsers address bar it appears. 

What could be the issue?

See attached screenshots.
Rumen
Telerik team
 answered on 09 Mar 2011
1 answer
140 views
Hi There,

Is is possible to use the RadRotator in LoadOnDemand mode when the data comes from an XML file? I have an xml file with approx 200 images listed. I want users to be able to scroll one image at a time but naturally I don't want to have to load 200 images when the rotator loads, I want to be able to load images one at a time.

Any pointers to pull this off, preferably without having to write a web service, would be greatly appreciated.

Regards,
Phill
Niko
Telerik team
 answered on 09 Mar 2011
1 answer
83 views

Hi i am creating Radeditor dynamically (on the fly) in codebehind. Which is working fine in IE. But i am facing a strange issue in firefox, where only the first radeditor is loaded correctly rest of the Radeditors are not allow to edit but it;s not giving any javascript error and all the tool menu items are loaded.

 

Kindly help..

 

Thanks in advance.

Rumen
Telerik team
 answered on 09 Mar 2011
2 answers
111 views
Hello,
Ive created a custom DB provider in order to assign multiple resources to an appointment. I also have a custom advanced editing form that has a number of drop down lists. each custom dropdown has a corresponding custom attribute.  
I have coded my provider so all of the resources that need to be loaded into the dropdowns are available via properties but I dont know how to hook the two up? 
For example, I have the following property in my custom provider:

    private IDictionary<int, Resource> Locations
    {
        get
        {
            if (_locations == null)
            {
                _locations = new Dictionary<int, Resource>();
                foreach (Resource location in LoadLocations())
                {
                    _locations.Add(Convert.ToInt32(location.Key), location);
                }
            }
            return _locations;
        }
    }

How do I get these locations to populate a dropdown on my Advance Edit form?
Is this the recommended/correct way to do this?

Thanks
Alex
Peter
Telerik team
 answered on 09 Mar 2011
4 answers
194 views
Current environment:

ASP.NET (3.5 / VB.NET)
Telerik Controls Q2 2010
Visual Studio 2010 Ultimate

Problem:

Currently I have a user control where the radgrid is placed on and gets dynamically loaded via the code behind of the user control. This radgrid contains 2 columns that have a fixed width of 30 Pixels. Somehow when I add an extra column (so my grid consists 3 columns) the first 2 columns gets also resized even when I have set those columns a fixed width by the HeaderStyle and even the ItemStyle property. I have also set my radgrid with the TableLayout fixed and in the scrolling I've set the staticheader to true (in the below code sample you see the current radgrid).

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" HeaderStyle-Wrap="false" EnableHeaderContextMenu="true"
EnableViewState="false" AllowPaging="true" PageSize="20" Skin="Default"
EnableEmbeddedScripts="false" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" RegisterWithScriptManager="false"
AllowSorting="true" GroupingEnabled="false">
<MasterTableView TableLayout="Fixed" />
<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder"
        Resizing-AllowColumnResize="true" Resizing-ResizeGridOnColumnResize="true" >
        <Scrolling UseStaticHeaders="true" AllowScroll="true" ScrollHeight="20px" />
</ClientSettings>
</telerik:RadGrid>

When I move my screen to a greater screen with a resolution of 1920 those fixed columns are also getting resized which what I don't want.

Thank you in advance.
Pavlina
Telerik team
 answered on 09 Mar 2011
3 answers
331 views
Hi
I need some help
I have a radGrid set to a fixed width of 1000px.
The first 3 columns are fixed header width, not resizeable.
The next 3 columns are resizeable.
The rightmost column is fixed header width and not resizeable. It needs to maintain a 100px column width.
Whenever I resize any of the middle 3 columns, the rightmost column gets resized wider than 100px.

I need a way to have the rightmost column stay at 100px wide, regardless of how wide or narrow the middle 3 columns are resized to.
Can that be somehow be done?
Javascript onresize, another control added in? anything....
Thanks
Pavlina
Telerik team
 answered on 09 Mar 2011
1 answer
118 views

Hi

I have two radupload on my form. How can I add progress bars to both?

I have tried to look at samples but they are bit complicated for a beginner like me.

Thanks

Regards

Cori
Top achievements
Rank 2
 answered on 09 Mar 2011
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?