Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
79 views
i want to format the excel while export from the rad grid the for mat as follows :
Lines(Rows in Excel).

Lines 1 and 2: the lines must be there as blank lines

Line3: date with format dd.mm.yyyy in first cell (Column A)

Line 4 and 5:  the lines must be there as blank lines

Line 6: i have display the Data of Rad grid.

Can you please help me out .

Thanks And Regards,
Guru Kiran.P 

Shinu
Top achievements
Rank 2
 answered on 02 Jan 2012
4 answers
125 views
Hi,
I am trying to put 2 words one under the other. I have an image as well. I need the icon to be to the left and the 2 words to be exactly one under the other.

10x
Naisha
Top achievements
Rank 1
 answered on 01 Jan 2012
1 answer
117 views
I am a newbie to the Telerik controls. I have a Grid and I have successfully implemented a filter but what I want to do is to let the user decided which columns to show or hide.
My first reaction was, since I already have an "Apply filter" button in a RadToolBar, was to add a RadToolBarDropDown next to it. This means having to populate the Buttons in the DropDown dynamically. But there appears to be now way to FIND the RadToolBar control. Referencing its name doesn't appear to work. I;e., the ID is RadToolBar1 but when I type this in the .cs file it's not found by the intellisense.

So I thought I must be barking up the wrong tree so I tried alternative approaches but I can't find a solution. But I find it hard to believe I am the first person to try and let the user dynamically show and hide columns. So I suspect there is a far simpler method that I am missing.

Any help pointing me in the right direction would be much appreciated.
Martin
Top achievements
Rank 1
 answered on 31 Dec 2011
6 answers
476 views
I'm using the RadBinaryImage control in a RadRotator controls like so:

<telerik:RadRotator ID="rtPropertyImages" runat="server" ScrollDirection="Left" ItemWidth="203px" 
                            ItemHeight="136px" Height="136px" Width="203px" RotatorType="FromCode" ScrollDuration="2000"
                            <ItemTemplate> 
                                <href="Property-Floor-Plan.aspx?id=<%#DataBinder.Eval(Container, "DataItem.Listing_ID")%>"> 
                                    <telerik:RadBinaryImage ID="imgProperty" runat="server" AutoAdjustImageControlSize="false" 
                                        DataValue='<%#Bind("ImageFile") %>' AlternateText='<%# Bind("Description") %>' 
                                        ToolTip='<%# Bind("Description") %>' Height="136px" Width="203px" ResizeMode="Crop" 
                                        BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" /> 
                                </a> 
                            </ItemTemplate> 
                        </telerik:RadRotator> 

I keep getting this error after the page is posted back a couple of times using IE8.

Server Error in '/' Application. 
-------------------------------------------------------------------------------- 
 
Out of memory.  
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  
 
Exception Details: System.OutOfMemoryException: Out of memory. 
 
Source Error:  
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.   
 
Stack Trace:  
 
 
[OutOfMemoryException: Out of memory.] 
   System.Drawing.Graphics.CheckErrorStatus(Int32 status) +1048473 
   System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height) +98 
   Telerik.Web.UI.BinaryImageTransformationFilter.CropImage(Image img, Int32 scaledHeight, Int32 scaledWidth) +227 
   Telerik.Web.UI.BinaryImageTransformationFilter.ProcessImageInternal(Byte[] image) +228 
   Telerik.Web.UI.BinaryImageTransformationFilter.ProcessImage(Byte[] image) +17 
   Telerik.Web.UI.BinaryImageFilterProcessor.ProcessFilters(Byte[] imageData) +62 
   Telerik.Web.UI.RadBinaryImage.ProcessImageData() +50 
   Telerik.Web.UI.RadBinaryImage.OnPreRender(EventArgs e) +20 
   System.Web.UI.Control.PreRenderRecursiveInternal() +80 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 
 
  
 

I've noticed in your internal builds that you fixed an error caused by RadBinaryImage when ResizeMode="Fit". I was wondering if this is the same error, but is being caused by ResizeMode="Crop".

If you could tell me if this is a RadBinaryImage error or is it being caused by something else like my server.

Thanks.

Marco
Top achievements
Rank 2
 answered on 31 Dec 2011
2 answers
123 views

Hello every body!

I have a very strange problem with Radajaxmanager  and updatepanel  ,Please see  this senario:

I have an aspx file that inherited from a masterpage,in this page I am using some javascript code with

fcbkCompelet  jquery plugin(see[ http://www.emposha.com/demo/fcbkcomplete/]).I want to update

information  about user entry information in SELECT INPUT  tag that work

with this plugin(something like yahoo autocompelet addressbar ).In the other side in the same page  I have a <ASP:Label>

that will be updated with some information  fetched from Database when user typed username for

example.I am using a Radajaxmanager ,updatepanel,asp:timer  with  some codebehind to fetch this

information to update  the asp:label in every 2 seconds without any postback , but In IE 8 I get this error

”Microsoft JScript runtime error: 'get_postBackElement().id' is null or not an object”

, but no error   in Fireox and chrome and  it dose not work  in all three cases.The point Is that

It do work when I copy the whole aspx file content with the inherited masterpage with the same

Structure ,  the same js files and jquery plugin  to a new test  Project .I am confused that  

Why  it works in new test project but it get error in my main project.I am sure that it is the same code

and structure in the both projects.I should demonstrat that both projects are in Telerik Q1 2011

template form.

Here is my aspx file :

 

<%@ Page Title="" Language="C#" MasterPageFile="~/FunctionalityMasterPage.master"
    AutoEventWireup="true" CodeFile="Send_Simple.aspx.cs" Inherits="Send_Simple" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" Runat="Server">
  <script src="../Jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
    <script src="../Jquery/jquery.fcbkcomplete.js" type="text/javascript"></script>
    <link href="../Styles/Jstyle.css" rel="stylesheet" type="text/css" />
      
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" Runat="Server">
  
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Timer1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lblTest" LoadingPanelID="LoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
             
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
   <script type="text/javascript">
  
            $(document).ready(function(){ 
                      
                  $("#persons").fcbkcomplete({
                  
                 json_url: '<%=ResolveUrl("Names_Handler.ashx") %>',
                 contentType: "application/json; charset=utf-8",
                 
                 addontab: false,
                 height: 5,
                 complete_text: "اسامي را وارد نماييد",
                 
                  
                  
                   
                 });
                  $("#groups").fcbkcomplete({
                 json_url: '<%=ResolveUrl("Groups_Handler.ashx") %>',
                 addontab: false,
                 height: 5,
                 complete_text: "گروه ها را وارد نماييد",
                   
                 });
                                               
            });
              
        });
    }
    </script>
    </telerik:RadCodeBlock>
    <div id="exampleWrapper" class="exampleWrapper" runat="server">
        <div class="tabMenu">
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
                SelectedIndex="0" CssClass="tabStrip">
                <Tabs>
                    <telerik:RadTab Text="" Selected="True">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage">
                <telerik:RadPageView ID="RadPageView1" runat="server">
                    
                    <div style="float: left;">
                        <asp:Label runat="server" ID="lblTest" Text="initial"></asp:Label>
                    </div>
                    <asp:Panel ID="Panel2" runat="server">
                        <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick" />
                    </asp:Panel>
                    <div class="tabDiv">
                        <fieldset style="border-width: 0px; text-align: right; margin-top: 110px">
                            <dl>
                                <dd>
                                    <table cellspacing="11" class="tabTable">
                                        <tr>
                                            <td style="height: 170px; vertical-align: top;">
                                                <asp:Panel ID="Panel1" runat="server" BorderColor="White">
                                                    <table style="text-align: right; width: 720px;">
                                                        <tr>
                                                            <td style="width: 18%; text-align: right">
                                                                <span>از شماره : </span>
                                                            </td>
                                                            <td style="width: 72%; text-align: right">
                                                                <telerik:RadComboBox runat="server" ID="rcbxNumber" DataTextField="Number" DataValueField="NumberId"
                                                                    EnableLoadOnDemand="True" Height="100px" ShowMoreResultsBox="true" DataSourceID="eds_Numbers"
                                                                    EmptyMessage="Type here ...">
                                                                </telerik:RadComboBox>
                                                            </td>
                                                            <td>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 18%; text-align: right">
                                                                <span>به شماره هاي : </span>
                                                            </td>
                                                            <td style="width: 72%; text-align: right">
                                                                <telerik:RadComboBox runat="server" ID="rcbx_Receivers" DataTextField="Number" DataValueField="PersonId"
                                                                    Width="525px" EnableLoadOnDemand="True" Height="100px" ShowMoreResultsBox="true"
                                                                    DataSourceID="eds_Persons" MarkFirstMatch="true" AutoCompleteSeparator="," EmptyMessage="شماره ها رادر اين قسمت وارد و با كاما (,) از هم جدا نماييد"
                                                                    AllowCustomText="true" Font-Names="Tahoma">
                                                                </telerik:RadComboBox>
                                                            </td>
                                                            <td>
                                                                <asp:Label runat="server" ID="lblNumbers" CssClass="lblCount"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 18%; text-align: right">
                                                                <span>افراد(از دفترچه تلفن) : </span>
                                                            </td>
                                                            <td style="width: 72%; text-align: right">
                                                                <select id="persons" name="persons" style="direction: rtl;">
                                                                </select>
                                                            </td>
                                                            <td>
                                                                <asp:Label runat="server" ID="lblPersons"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 18%; text-align: right">
                                                                <span>گروهها(از دفترچه تلفن) : </span>
                                                            </td>
                                                            <td style="width: 72%; text-align: right;">
                                                                <select id="groups" name="groups" style="direction: rtl;">
                                                                </select>
                                                            </td>
                                                            <td>
                                                                <asp:Label runat="server" ID="lblGroups"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td id="test" colspan="2" style="text-align: center">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <div class="DtxtSend">
                                                        <a onclick="Fa_click();">فارسي</a> / <a onclick="En_click();">English</a>
                                                        <asp:TextBox runat="server" ID="txtSend" Font-Names="Tahoma" Rows="10" TextMode="MultiLine"
                                                            Width="300px" onkeyup='textCounter(this, this.form.remLen, 70);smsCounter(event,this, this.form.remSms, 70);'
                                                            onkeydown="textCounter(this, this.form.remLen, 70);smsCounter(event,this,this.form.remSms,70) "
                                                            ToolTip="To change the Language use the links in the page do not use OS language"></asp:TextBox>
                                                    </div>
                                                    <label id="lblError" style="top: 5px; position: relative; direction: rtl; color: Red;
                                                        font-family: Tahoma; float: right" runat="server" visible="false">
                                                    </label>
                                                    <asp:Label ID="statusLabel" runat="server" Style="color: Red; margin-top: 13px; display: block;"></asp:Label>
                                                    <br />
                                                    <%--<input type="button" value="ذخيره" id="Button1" style="font-family: Tahoma; width: 70px;" onclick="return Button1_onclick()" onclick="return Button1_onclick()" onclick="return Button1_onclick()" />--%>
                                                    <div style="width: 600px; height: 25px; text-align: center; margin-right: 45px; margin-top: 30px">
                                                        <input readonly="readonly" type="text" name="remLen" size="3" maxlength="3" value="0" />
                                                        SMS
                                                        <input readonly="readonly" type="text" name="remSms" size="3" maxlength="3" value="0" />
                                                        Characters
                                                        <asp:Button ID="sendMessage" runat="server"  Style="width: 116px;"
                                                            CssClass="button" Text="ارسال پيام" CommandArgument="radconfirm" />
                                                        <asp:Button ID="saveDraft" runat="server"  Style="width: 116px;"
                                                            Text="ذخيره در پيش نويس" CssClass="button" />
                                                        <asp:Button ID="btnView" runat="server" Style="width: 116px;" Text="مشاهده" CssClass="button"
                                                             />
                                                        <asp:Label ID="Label1" runat="server" Style="color: Red; margin-top: 13px; display: block;"></asp:Label>
                                                    </div>
                                                </asp:Panel>
                                                <asp:Label ID="lblMessage" runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                </dd>
                            </dl>
                        </fieldset>
                    </div>
                    <asp:EntityDataSource ID="eds_Group" runat="server" ConnectionString="name=NumberEntities"
                        DefaultContainerName="NumberEntities" EntitySetName="tbl_Group" Select="it.[GroupName]"
                        AutoPage="true" OrderBy="it.[GroupName]">
                    </asp:EntityDataSource>
                    <asp:EntityDataSource ID="eds_Numbers" runat="server" ConnectionString="name=NumberEntities"
                        DefaultContainerName="NumberEntities" EntitySetName="tbl_UserNumber" AutoGenerateWhereClause="False"
                        Where="it.UserInfoId = @UserInfoId" OnSelected="eds_Numbers_Selected">
                        <WhereParameters>
                            <asp:Parameter Name="UserInfoId" Type="Int32" />
                        </WhereParameters>
                    </asp:EntityDataSource>
                </telerik:RadPageView>
            </telerik:RadMultiPage>
            <telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" DecoratedControls="Textarea" />
        </div>
    </div>
    <asp:EntityDataSource ID="eds_Job" runat="server" ConnectionString="name=JobEntities"
        DefaultContainerName="JobEntities" EnableFlattening="False" EntitySetName="tbl_JobType">
    </asp:EntityDataSource>
    <asp:EntityDataSource ID="eds_Persons" runat="server" ConnectionString="name=NumberEntities"
        DefaultContainerName="NumberEntities" EntitySetName="tbl_Persons">
    </asp:EntityDataSource>
</asp:Content>

Bahram
Top achievements
Rank 2
 answered on 31 Dec 2011
0 answers
37 views
Hi all,
I am building a new web site over RadControls . the website is a transactional web  application  where users login and perform operation. for right now the site will be accessable common desktop browsers and later version of application will be implement for mobile.So question is that what is the best way to design the system to support that?
Here is what i am thinking ! i am thinking to develop a 3 tier application with sql server database,
can any one please tell me which is the best architecture for RadCotrols and send me a sample code.

Thanks
Regards
kd
kd
Top achievements
Rank 1
 asked on 31 Dec 2011
1 answer
115 views
I have a simple date picker on a form, I am populating that from a database.  I have gotten several errors saying the date is outside Min and Max, but these are legit dates:  9/11/1977, 3/15/1978 and so forth...

See attached images.
Richard
Top achievements
Rank 1
 answered on 30 Dec 2011
2 answers
235 views
Hi, I'm having a problem with RadMultiPage, I'm changing the PageView through javascript command, so when I need to do a check pageview appear in the code that Icreated to update some information, I tried using the load of the pageview, theprerender and nothing worked ... I need to do?

I'm viewing the page view are not viewing the code that I wrote

JavaScript Code:

function ViewPage() {
                var multiPage = $find("<%= RadMultiPage1.ClientID %>");

                var pageView = multiPage.findPageViewByID("PageView1");
                pageView.set_selected(true);
            }
David Simmonds
Top achievements
Rank 1
 answered on 30 Dec 2011
3 answers
269 views

When the complaint came in that my line graph didn't have visible points at the values, I thought it would be an easy fix.

Somehow, I can't seem to make it happen.

The meat of the code is here:

'Create a series
Dim oSeries As Telerik.Charting.ChartSeries = New Telerik.Charting.ChartSeries()
radChart.Series.Add(oSeries)
 
'make it a line
oSeries.Type = ChartSeriesType.Line
radChart.Series(0).Appearance.FillStyle.MainColor = Color.Red

'add some data
radChart.Series(0).AddItem(3.5)
radChart.Series(0).AddItem(4.5)
radChart.Series(0).AddItem(6.5)
radChart.Series(0).AddItem(8.5)

' try everything and anything to get the points to show up
radChart.Series(0).Appearance.PointMark.Visible = True
radChart.Series(0).Appearance.PointMark.Dimensions.AutoSize = False
radChart.Series(0).Appearance.PointMark.Dimensions.Width.Value = 20
radChart.Series(0).Appearance.PointMark.Dimensions.Height.Value = 20
radChart.Series(0).Appearance.PointMark.FillStyle.FillType = Styles.FillType.Solid
radChart.Series(0).Appearance.PointMark.Figure = Styles.DefaultFigures.Diamond


I'm using the 4.1.6 version of the dll date 3/10/09

I've been searching the Forum for a mention of a similar problem - how bad is your problem when nobody on the internet has ever had it before?

I've attached a jpg of the output.

Please let me know what add't information would be helpful.

Thank you in advance for the help. 

Mark

 

 

Rebecca
Top achievements
Rank 1
 answered on 30 Dec 2011
4 answers
229 views
Hi
Is there an easy way to change the expand/collapse icons in the TreeView.
Many thanks
richard
Top achievements
Rank 1
 answered on 30 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?