Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
148 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
85 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
121 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
213 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
343 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
119 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
119 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
1 answer
126 views
I am working on a pure Telerik site based on the Webmail demo (http://demos.telerik.com/aspnet-ajax/webmail/).  I have however noticed that almost none of the page content is rendered on the page if JavaScript is disabled in the browser.

Referring to the Webmail demo code, what is needed to make some content visible even if it is only possible to render a "noscript" element with a message to the user?

Thanks,
Ray
Sebastian
Telerik team
 answered on 09 Mar 2011
4 answers
258 views
I've created a nesting grid and filtering works at the top level but if I allow filtering by column on the detailed table I get the enclosed GridTableView control " does not have a naming container. I have no code behind, just all in the aspx
I guess I'm missing something? Any help much appreciated. Many thanks. Steve
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
  
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:EnterpriseDevConnectionString2 %>" 
        SelectCommand="SELECT [Ref], [LineNum], [SKU], [Qty], [ActualQty], [ExportedQty], [Exported] FROM [InboundGoodsLines] WHERE ([Ref] = @Ref)">
        <SelectParameters>
            <asp:ControlParameter ControlID="RadGrid2" DefaultValue="Ref" Name="Ref" 
                PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:EnterpriseDevConnectionString2 %>" 
        SelectCommand="SELECT [Ref], [Vendor], [SupplyingSite], [ActualDate], [AuthorisedBy] FROM [InboundGoods]">
    </asp:SqlDataSource>
<telerik:RadGrid ID="RadGrid2" runat="server"   DataSourceID="SqlDataSource2" AllowFilteringByColumn="true"  >
 <MasterTableView
     DataKeyNames="Ref" AllowFilteringByColumn="true"
     DataSourceID="SqlDataSource2"
     TableLayout="Auto"
     PageSize="1">
   <DetailTables>
     <telerik:GridTableView
         runat="server"
         DataKeyNames="Ref"
         DataSourceID="SqlDataSource1"  >
       <ParentTableRelation>
         <telerik:GridRelationFields
           DetailKeyField="Ref"
           MasterKeyField="Ref" />
       </ParentTableRelation>
     </telerik:GridTableView>
   </DetailTables>
 </MasterTableView>
</telerik:RadGrid> 
  
  
    </form>
</body>
</html>
Martin
Telerik team
 answered on 09 Mar 2011
1 answer
116 views
Hello ,

I am working in a web application .. I am using RadTabStrip and RadMultiPage .. I added my controls to the RadMultiPage and added  all controls to RadAjaxManager like this

uxRadAjaxManager.AjaxSettings.AddAjaxSetting(uxBtnSearchFor, uxRadTabCompany);        uxRadAjaxManager.AjaxSettings.AddAjaxSetting(uxBtnSearchFor, uxRadCompPages);

 Inside one of  the pageviews I put an asp FileUpload control

<tr>
                
                <td valign="top" align="left" class="smallnormal">
                Person Photo
                </td>
                <td valign="top" align="left" class="smallnormal">
                
                
                <asp:FileUpload ID="uxFileUpload" runat="server" onclick="CheckThat_Click" CssClass="smallnormal"/>
 
                <asp:Button ID="buttonUpload" runat="server" Text="Upload" CssClass="homebtn"   
                style="width:70px;" onclick="CheckThat_Click" />
                
                
                <asp:TextBox ID="uxTxtPicName" runat="server" Width="200px"></asp:TextBox>
                </td>
                
                </tr>

in cs file

protected void CheckThat_Click(object sender, EventArgs e)
    {
         
        string mstr = uxFileUpload.FileName;
    }

The problem is uxFileUpload.FileName is always nothing  if controls are added to the radajaxmanager

I traced the problem
When I comment lines that adding all controls to the RadAjaxManager like
//uxRadAjaxManager.AjaxSettings.AddAjaxSetting(uxBtnSearchFor, uxRadTabCompany);        //uxRadAjaxManager.AjaxSettings.AddAjaxSetting(uxBtnSearchFor, uxRadCompPages);

of course it does full postback and I can read the filename of the fileupload control without any problem
when I re add the controls to the RadAjaxManager I always find the FileName is nothing

I need to read the filename of the fileupload to insert it into the database in special field (person photo) then I can upload it to the server to be displayed correctly when someone choose this person

I do not know what the problem
I have to add the fileupload to the radajaxmanager ??


what you advise me to do to solve the problem in this scenario ??
Maria Ilieva
Telerik team
 answered on 09 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?