Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
137 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
43 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
73 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
103 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
70 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
92 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
164 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
298 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
79 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
1 answer
50 views
Hi!  I'm having an odd problem with my RadWindow.  Sometimes (about 25% of the time) when the window comes up, it will be empty except for the background color set in the target page.  I'm calling the window from a Javacript href link inside a grid, which points to another ASP.NET page in my project.  I'm not sure what could be causing this.  :(
Cori
Top achievements
Rank 2
 answered on 09 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?