Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
116 views
hi

I have a picture that is 1024 X 768 and is 88KB in size and 24 in bit depth. When i uploaded the picture the bit depth has become 32bits and the size in KB has become 239KB. This is my code:

  Dim thumbnail As Image = originalimage.GetThumbnailImage(440, 330, thumbnailImageAbortDelegate, IntPtr.Zero)
                    thumbnail.Save(Path.Combine(Server.MapPath(filepath), filename + f.GetExtension))
                    filenameext = filepath + "/" + filename + f.GetExtension


L
Top achievements
Rank 1
 asked on 03 Sep 2010
4 answers
335 views

Hi,

I have a radgrid on popup window having link column and set Target="_blank" but it is not working.
its opening the new page in same window instead of setting Target="_blank" in GridHyperLinkColumn of Grid.
could you please help me how to open the link in new window from popup window having grid bound within it.

please help.
bharat kumar
Top achievements
Rank 1
 answered on 03 Sep 2010
3 answers
113 views
Is it possible to have the ServiceRequest of a RadXmlHttpPanel to load/refresh the data of a RadScheduler?

Or, can the RadScheduler only work via a DataSource and postbacks when using navigation?


What I'm trying to do is eliminate the postbacks when navigating to the previous/next month.

Thanks.
Peter
Telerik team
 answered on 03 Sep 2010
1 answer
108 views
There is a radgrid on my aspx page. I did some sorting and filtering, and selected a different gridpage.
After a while I return to this aspx page, then all the sorting and filtering and current selected gridpage are lost.
Is there a setting or something in the radgrid which can automatically persist all these states without me having to hardcode the logic?
Shinu
Top achievements
Rank 2
 answered on 03 Sep 2010
1 answer
150 views
Hi,

 Is there a working example of how to get the RadMenu to cause an ajax request that occurs when a user mouses over a menu item, pass that item text to the server, then use that name as a key to look up other items to populate another dependent RadMenu? I have tried this using the following code but was unsuccesful.

UserControl.ascx
<div id="CloudDropDown" class="clearfix">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function ChangeSubMenu(s, e) {
                $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequestWithTarget("<%= mainMenu.UniqueID %>", e.get_selectedItem().get_text()); 
            }
        </script>
   </telerik:RadCodeBlock>
   
       
    <telerik:RadAjaxManagerProxy ID="ajaxManagerProxy" runat="server">
       <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="mainMenu">
               <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="subMenu" LoadingPanelID="radAjaxLoadingPanel" />
               </UpdatedControls>
           </telerik:AjaxSetting>
       </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
   
    <telerik:RadMenu ID="mainMenu" runat="server" DataSourceID="SitemapDataSource1" Flow="Horizontal" OnClientMouseOver="ChangeSubMenu" MaxDataBindDepth="1" EnableEmbeddedSkins="false" Skin="MedpacRed">
    </telerik:RadMenu>
   
    <telerik:RadMenu ID="subMenu" runat="server" EnableEmbeddedSkins="false" Skin="MedpacRed" Visible="false">
    </telerik:RadMenu>
       
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
</div>

UserControl.ascx.cs
protected void Page_Load(object sender, EventArgs e)
    {
        RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
         
        manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest);
   
           
    }
   
    protected void manager_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        Guid rootGui = Utility.FindPageGuid(e.Argument);
        List<SiteNavigationItem> items = Utility.ConvertCmsPages(Utility.FindChildren(e.Argument), rootGui);
   
           
        subMenu.DataSource = items;
        subMenu.DataTextField = "Text";
        subMenu.DataNavigateUrlField = "Url";
        subMenu.DataFieldID = "ID";
        subMenu.DataFieldParentID = "ParentID";
        subMenu.EnableEmbeddedSkins = false;
        subMenu.DataBind();
        subMenu.Visible = true;
    }

Here is my master page that houses my user control.

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Base.master.cs" Inherits="App_Master_Base" %> 
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    
<head id="Head1" runat="server"> 
    <title></title> 
    <asp:ContentPlaceHolder id="head" runat="server"> 
    </asp:ContentPlaceHolder> 
</head> 
<body class="outthere"> 
    <form id="form1" runat="server"> 
        <telerik:RadScriptManager ID="scriptManager" runat="server" /> 
        <telerik:RadAjaxManager ID="ajaxManager" runat="server" /> 
        <!-- The skin should be set, else the loading panel is not shown -->
        <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel" runat="server" BackgroundPosition="Center" Skin="Default" /> 
    
        <div id="pageWrapper"> 
            <div id="page"> 
                <!-- start header -->
                <div id="header" class="clearfix"> 
                    <div id="medpacBanner" class="clearfix"> 
                        <div id="logo"> 
                            <img id="medpaclog" runat="server" src="~/App_Themes/MedpacRed/images/medpacLogo.gif" /> 
                        </div> 
                        <div id="menu" class="clearfix"> 
                            <asp:ContentPlaceHolder ID="contentMenu" runat="server"/> 
                        </div> 
                        <div id="genericBanner"> 
                            <img id="Img1" runat="server" src="~/App_Themes/MedpacRed/images/PinTek_MedPak_WebsiteBanner.png" alt="banner" width="1000" /> 
                        </div> 
                    </div> 
                </div> 
                <!-- end header -->
            
                <div id="contentWrapper" class="clearfix"> 
                    <!-- start content -->
                    <div id="content" class="clearfix"> 
                        <div id="baseMainContentWrapper"> 
                            <asp:ContentPlaceHolder ID="baseContent" runat="server"/> 
                        </div> 
    
                        <!-- start footer -->
                        <div id="footer"> 
                            <asp:ContentPlaceHolder ID="contentFooter" runat="server"/> 
                        </div> 
                        <!-- end footer -->
                    </div> 
                    <!-- end content -->
                </div> 
            </div> 
            <!-- end page -->
        </div> 
    </form> 
</body> 
</html>


Can this be accomplished or am I doing something wrong?

Thanks for you help,
Bobby
Yana
Telerik team
 answered on 03 Sep 2010
1 answer
182 views
I have a requirement to have the upload control completely hide the textbox. Essentially I only want to show the "browse" button to the user.

Previously I was able to achieve this by setting: ControlObjectsVisibility="None"
and then using the CSS:
            .ruFakeInput
            {
                display: none;
            }

After upgrading the Telerik controls (Q2 2010) I have noticed that in IE8/7 that the textbox now displays.
I found this: http://www.telerik.com/help/aspnet-ajax/upload-how-to-hide-input-textbox.html

Which uses slightly different CSS but this does not help either.

Any ideas?

Cheers
Aaron
Yana
Telerik team
 answered on 03 Sep 2010
3 answers
142 views
Hello,

I'm setting up a prototype page, I was wondering if there is an easy way to bind nested details tables using the following data:

var entries = new[]
{
new 
{ 
AgencyName = "Health International",  
AgencyAbbreviation = "HI",
AgencyStatus = "Active",
AgencyType = "Service",
Programs = new[]
{
new { ProgramName = "New Beginnings", ProgramAbbreviation = "NB", ProgramStatus = "Active" },
new { ProgramName = "Bright Start", ProgramAbbreviation = "BS", ProgramStatus = "Active" }
}
}
};

Do I have to tap into DetailsTableDataBind?

Thanks.
Mira
Telerik team
 answered on 03 Sep 2010
1 answer
152 views

Hi Guys,

Is it possible Response.Redirect/Server.Transfer in the page callback?
Or Is there any method or some thing of telerik which can redirect page in page callback?

Please help!

Thanks
Ravi
Sebastian
Telerik team
 answered on 03 Sep 2010
1 answer
79 views
Hello,

What is the best method for doing an update all task with a Radgrid to a Linqdatasource for an updating all across the radgrid. 

I am only concerned about insert operations. I have the auto insert stuff wired up and working. 

It seems there should be an easy way to extend the auto functionality to the updateall ability.


I saw the stuff on sqldatasource with radgrid, slightly helpful.

Thanks,
RB
Daniel
Telerik team
 answered on 03 Sep 2010
3 answers
122 views
When expanding a row in a hierarchical datagrid, the entire grid is updated. If there is a large amount of data on display it can appear to be slow, even though it is only updated a single control (the datagrid).

Is there a way to make it only update the single row that was expanded/collapsed?

The problem is that the grid I am using has content in each row that is pulled in from other sites, and when it has to redraw them all, it can take an age to redraw everything.

Thank you very much,

Scott
Mira
Telerik team
 answered on 03 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?