Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
167 views
I have a scenario like a few others listed in the forum where I have users than can upload any size image and I need to generate multiple sizes from the image.  I have seen examples of other posts on how to capture the image and that is working just fine.  However, I am having some trouble with the resizing.  Because of some of the manipulation that I need to do to the image regarding quality and because I do not know the file format (after the fact), I am wondering if there is a way to read some of the properties about the original file.  Specifically, because I have to deal with encoding, I need to get the image's original file format in order to alter the image quality or resolution.  I can obviously read the extension during the file upload, but the image processing may not always happen at that time and I don't really want to have an extra database field if it isn't needed.  So, is there a reasonable way to parse out of the file format from the binary image's "datavalue" or byte array?
Allen
Top achievements
Rank 2
 answered on 09 Mar 2010
1 answer
146 views
Hi.

I need to do something in client side when the user click the save button (the same in the "update") of a appointment create (or edit). I donĀ“t want to use an  Advanced Templates because I only need this. 

I try with the "OnClientAppointmentInserting" but this fire when I click the appointment and I want to do something just before to send the postback after the user set values in the form of creating. 

I“m using: StartEditingInAdvancedForm="true" if this can help to understand.

Anybody know how to "take" this event.

Thanks
Daniel Cuba
Top achievements
Rank 1
 answered on 09 Mar 2010
14 answers
390 views
I am using a tooltipManager display the information needed in the tooltip. The tooltip is shown when a row on a radGrid is clicked. I have the information loaded into the tooltipManager from the radGrid_ItemDataBind event but for some reason I can't get the tooltip to appear where I told it to. 

            <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"
                HideEvent="ManualClose" Modal="True"
                onajaxupdate="RadToolTipManager1_AjaxUpdate" Position="Center"
                ShowEvent="OnClick" ManualClose="True" OffsetY="0"
                RelativeTo="BrowserWindow">
            </telerik:RadToolTipManager>

It will occasionally show in the center but usually shows along the middle but not the center of the browser. Is there something I am missing or doing wrong?
Andy F.
Top achievements
Rank 1
Iron
 answered on 09 Mar 2010
2 answers
125 views
Hi all:
  I tried to add RadCombox control by draging or manually adding codes. I got "Error Createing control" error.
the detail information " Could not load file or assembly 'telerik.web.UI version=2009.3.1314.35 ......the system can't find the file specified. I also got the same error when I dragged the RadCalendar control

I uninstalled then re installed but I still got the same error.

Thanks
Helena
HL
Top achievements
Rank 1
 answered on 09 Mar 2010
1 answer
133 views
I have a grid on my page and I want to handle both the OnRowClick and OnRowDblClick events on this grid.  When I try to implement both it only catches the OnRowClick event and not the OnRowDblClick event.  How do I make it so the OnRowClick event does not fire when I double click on a row?
Daniel
Telerik team
 answered on 09 Mar 2010
9 answers
156 views
dear Sir,

I build a comment module using telerik grid, and as you can find below i am using usercontrol inside web page which also inside mastter page, and everything goes fine, but the problem is that i can show the waiting panel onley once if i move from page 1 to page 2 and when i elect again page 1 the loading panel didnt appear !!!!

please i need you advice in this.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PostComments.ascx.cs" Inherits="AmazingWork.WebUserControls.PostComments" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
 <div > 
  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadGrid_Comments">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid_Comments" LoadingPanelID="LoadingPanel_GetComments"/>  
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
  <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel_GetComments">  
        <table  cellpadding="0" cellspacing="0" width="100%" height="100%">  
        <tr><td style="width:100%;height:100%" valign="middle" align="center">  
        <table height="100%"><tr> 
        <td align="center" valign="middle" style=" height:100%">  
        <asp:Image runat="server" ID="LoadingImage1" ImageUrl="~/Images/Loading/Loading.gif" AlternateText="Loading..." /> 
        </td><td style="width:4px"></td><td align="center" style="color:Gray" valign="middle">loading</td> 
        </tr></table>  
        </td> 
        </tr> 
        </table> 
</telerik:RadAjaxLoadingPanel> 
<telerik:RadGrid ID="RadGrid_Comments" runat="server" Skin="WebBlue" Width="100%"    
         GridLines="None" AllowPaging="True"   
        PageSize="5" DataSourceID="SqlDataSource_GetMusicComments" ShowHeader="False"   
         CellPadding="0"  BorderStyle="None" 
         
        > 
    <AlternatingItemStyle BackColor="White" /> 
    <ItemStyle BackColor="White" /> 
<PagerStyle Mode="NextPrevAndNumeric" /> 
 
            <MasterTableView TableLayout="Fixed" AllowNaturalSort="False"   
        AutoGenerateColumns="False" EnableTheming="True" > 
                <ItemTemplate> 
                <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr ><td>  
                    <asp:Image ID="Image1" Style="float: left;" Width="50px" Height="50px" ImageUrl="~/Images/Company/Company-Logo.png" 
                        runat="server" AlternateText="Stock Image" /> 
                        </td> 
                    <td style="width:100%;vertical-align:top">  
                    <table border="0"  cellpadding="0" cellspacing="0"><tr><td valign=top style="vertical-align:top">  
                    <table   border="0" cellpadding="0" cellspacing="0" ><tr><td style="font-weight: bold; font-family: Arial Black;">Abed Allateef qaisi</td><td>( <%# Eval( "CreationDate" )%>  )</td></tr></table> 
                     
                        
                      </td></tr><tr><td>   <br /> <%# Eval("CommentBody") %>  </td></tr></table> 
                         
                          
                         
                        
                         
                         
                    </td> 
                     
                    </tr></table>  
                </ItemTemplate> 
             
 
 
             
<RowIndicatorColumn Visible="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn Visible="False" Resizable="False">  
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
 
                <Columns> 
                    <telerik:GridBoundColumn DataField="CommentBody" HeaderText="CommentBody"   
                        SortExpression="CommentBody" UniqueName="CommentBody">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CreationDate" DataType="System.DateTime"   
                        HeaderText="CreationDate" SortExpression="CreationDate"   
                        UniqueName="CreationDate">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="CommentRank" DataType="System.Int32"   
                        HeaderText="CommentRank" SortExpression="CommentRank" UniqueName="CommentRank">  
                    </telerik:GridBoundColumn> 
                </Columns> 
 
<EditFormSettings> 
<PopUpSettings ScrollBars="None"></PopUpSettings> 
</EditFormSettings> 
             
 
 
             
            </MasterTableView> 
 
 
 
 
 
 
    <ActiveItemStyle BackColor="White" /> 
 
 
 
 
 
 
    </telerik:RadGrid> 
   
 
      
    <asp:SqlDataSource ID="SqlDataSource_GetMusicComments" runat="server">   
     
</asp:SqlDataSource> 
   
 
      
     
    </div> 


thanks for your help.

 

 

 

Abed allateef Qaisi
Top achievements
Rank 1
 answered on 09 Mar 2010
2 answers
99 views
I have a RadGrid which uses a RadWindow to add/edit records exactly as the "Edit Dialog for RadGrid" demo does it on the Telerik site except that my RadWindow contains another RadGrid which uses the same principle for add/edit using a second RadWindow. Both RadWindows are modal - if that's relevant. The first grid rebinds when I add or edit records and hit "Insert" or "Update", but the second grid (the one that opens in a RadWindow), will not rebind using the same programming technique. Has anyone else tried to do this? Any help will be much appreciated as I've hit a brick wall with this.

Thanks.
Craig
Top achievements
Rank 1
Iron
 answered on 09 Mar 2010
3 answers
671 views
Hello,

I'm using the Default skin on the RadComboBox, but can't seem to set the borderstyle to none.
My goal is just to have the input area and the dropdown arrow without the border.

Please advise..

Thanks,
Quan
Simon
Telerik team
 answered on 09 Mar 2010
3 answers
275 views
I make a multi column combo box. if we type in that combobox then only matched values will return. So far so good but when i want to select some specific element on button click event by setting selectedvalue property then it does not show that value in the combo box. my html and c# code is given below:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadComboBox ID="RadComboBox1" runat="server" Skin="Vista" Height="190px"  
        Width="420px" MarkFirstMatch="true" EnableLoadOnDemand="true"
        HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField"
        OnDataBound="RadComboBox1_DataBound" OnItemDataBound="RadComboBox1_ItemDataBound"
        OnItemsRequested="RadComboBox1_ItemsRequested"
        ontextchanged="RadComboBox1_TextChanged" OnClientKeyPressing="HandkeKeyPress" >
         <HeaderTemplate>
            <ul>
                <li class="col1">Name</li>
                <li class="col2">Number</li>
                <%--<li class="col3">Title</li>--%>
            </ul>
        </HeaderTemplate>
        <ItemTemplate>
            <ul>
                <li class="col1">
                    <%# DataBinder.Eval(Container.DataItem, "Name") %></li>
                <li class="col2">
                    <%# DataBinder.Eval(Container.DataItem, "Number") %></li>
                <%--<li class="col3">
                    <%# DataBinder.Eval(Container.DataItem, "ContactTitle") %></li>--%>
            </ul>
        </ItemTemplate>
        <FooterTemplate>
            A total of
            <asp:Literal runat="server" ID="RadComboItemsCount" />
            items
        </FooterTemplate>
    </telerik:RadComboBox>

and c# code is:

 private DataTable table;
    protected void Page_Load(object sender, EventArgs e)
    {
       
        DoDataBind();
    }   

    public void DoDataBind()
    {
        DataTable dt = CreateData();       
        RadComboBox1.DataSource = dt.DefaultView;
        RadComboBox1.DataBind();

    }
    protected void RadComboBox1_DataBound(object sender, EventArgs e)
    {
    
        ((Literal)RadComboBox1.Footer.FindControl("RadComboItemsCount")).Text = Convert.ToString(RadComboBox1.Items.Count);
    }
    private DataTable CreateData()
    {
        table = new DataTable();
        table.Columns.Add("Name", typeof(string));
        table.Columns.Add("Number", typeof(int));
        table.Rows.Add(new object[] { "one", "1" });
        table.Rows.Add(new object[] { "two", "2" });
        table.Rows.Add(new object[] { "three", "3" });
        table.Rows.Add(new object[] { "four", "4" });
        table.Rows.Add(new object[] { "five", "5" });
        table.Rows.Add(new object[] { "six", "6" });
        return table;
    }
    protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    {

        DataTable dt = new DataTable();
        dt.Columns.Add("Name", typeof(string));
        dt.Columns.Add("Number", typeof(int));
        DataRow[] foundRows;
        foundRows = table.Select("Name LIKE '" + e.Text + "%'");
        foreach (DataRow dr in foundRows)
        {

            dt.ImportRow(dr);
        }
        RadComboBox1.DataSource = dt;
        RadComboBox1.DataBind();
    }

    protected void RadComboBox1_ItemDataBound(object sender, RadComboBoxItemEventArgs e)
    {
        e.Item.Text = ((DataRowView)e.Item.DataItem)["Name"].ToString() + " (" +((DataRowView)e.Item.DataItem)["Number"].ToString() +")";
        e.Item.Value = ((DataRowView)e.Item.DataItem)["Number"].ToString();
    }
    protected void RadComboBox1_TextChanged(object sender, EventArgs e)
    {
       
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        RadComboBox1.SelectedValue = 2.ToString();
    }
Simon
Telerik team
 answered on 09 Mar 2010
5 answers
183 views
Hi
         I am using rad upload control. The upload control for using upload the excel file to database. It is working in Local visusal sudio application. when i configure the II7 ( Vista or Windows server 2008) . It is now working. i try to fixed this problem as below even though it is not working.

Anything differ configuratio for Vista and Windows Server 2008. for II7

Leave
I am using Visual Studio .Net 3.5 and Sql server 2008. Telerik Q3 2009 Telerik.

When i try to confgure below section RadUpoad.Net . how can i handl the .Net 3.5 Version.
and I tried Section B Eeven though  it is not working. let me knowow can i fixed this poblem


Section A:
<httpModules>
<add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule,RadUpload.Net2 />
</httpModules>
<httpHandlers>
<add verb="*" path="Telerik.RadUploadProgressHandler.aspx" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2"></add>
</httpHandlers>

Section B:
Add the following to the Sytem.WebServer element

<modules>
<add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" />
</modules>
<handlers>
<add name="TelerikRadProgress" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.aspx" verb="*" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2" />
</handlers>

<validation validateIntegratedModeConfiguration="false" />
Let me anythig missing for this problem.

Thanks
G.Manikandan

Genady Sergeev
Telerik team
 answered on 09 Mar 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?