Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
112 views
Hi guys,

I have a raddatepicker in my page and I want to open the calendar once the mouse is over the control textbox. So please help me with this.

Regards
Karl
Shinu
Top achievements
Rank 2
 answered on 04 Jul 2013
1 answer
218 views
Hi All,

I am facing an issue with Rad date picker.

I have a basic simple page with a RadDatePicker and another control(say a textbox). I want to show the textbox if I select any date from date picker. By default the text box is hidden. So, what I have done is, I wrote 'OnSelectedDateChanged' event of date picker and marked 'AutoPostBack' to true. Written the code to show the text box in 'OnSelectedDateChanged' event.
Something like; TextBox.Visible = !String.IsNullOrEmpty(DateRadDatePicker.SelectedDate.ToString());

Now, the issue is; when I'm viewing the page by default the selected date of date picker is blank. Now, I click on date picker to actually select some date. But as per standard behavior of rad date picker it selects today's date as default date on clicking the picker. So, today's date is populated in the text box of the date picker. Now, as I have written the date change event; it posts back and displays my text box because it gets selected date not blank(today's date). Up til now all is well. But the issue is; as the page is posted back, it closes the date picker again. Means, I have to again open the picker to select another date. Ideally it should remain open as I haven't manually selected any date; but just opened the picker to select some date(In a way it selected today's date, but still end user haven't selected the date).

This may be frustrating for end user. I want the default date to be selected as today's date when clicking the picker and also want the picker to be opened even after the date change event is fired.

Is there any solution for this??..

Thanks in advance..:)..
Ketan
Top achievements
Rank 1
 answered on 04 Jul 2013
2 answers
163 views
Hi all,

We're using the tilelist control and trying to create the tiles in the codebehind and so far we built the tiles and show them on the page.
We want to also show a title / text for each title, we're trying to do this by mimic the markup with c# code.

            <telerik:RadImageTile Name="Istanbul" ImageUrl="../images/Tiles/Wide/Istanbul.png" Shape="Wide"
                NavigateUrl="http://en.wikipedia.org/wiki/Istanbul" Target="_blank">
                <Title Text="Istanbul"></Title>
                <PeekTemplateSettings AnimationDuration="700" ShowInterval="6000" CloseDelay="4000"
                        Animation="Fade" Easing="easeInQuint" ShowPeekTemplateOnMouseOver="true" 
                    HidePeekTemplateOnMouseOut="true" />
            </telerik:RadImageTile>

Our issue here is that we aren't able to add the Title on the RadImageTile control. We've already tryed the:
1. Title property on the RadImageTile, 
2. Name property on the RadImageTile
3. Adding the TileTitle control to the RadImageTile child controls (the tiletitle doesn't inherit from control).

How can we achive this?

Thanks and regards,
Hugo Figueira
Marin Bratanov
Telerik team
 answered on 04 Jul 2013
3 answers
111 views

The ajax loading panel in our project fails to display. It was working, and although we have not modified the settings, it is now no longer working.

Relevant code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
    DefaultLoadingPanelID="RadAjaxLoadingPanel1" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnShowAll">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Content" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Black" MinDisplayTime="1000">
</telerik:RadAjaxLoadingPanel>


The panel is rendered correctly in the html code however, the panel does not display on postback.

This was working last week. It stopped working after updating the Telerik controls on Monday.
Konstantin Dikov
Telerik team
 answered on 04 Jul 2013
7 answers
271 views
Hello,
I have a hierarchical radgrid with two levels.
Insert,update and delte commands are not automated.
  
My proble is that i want the insertedItem to be expanded just right after insert is done.
Could you please help?
  
thanks in advance,
Eva Xanthou
Princy
Top achievements
Rank 2
 answered on 04 Jul 2013
1 answer
84 views
Hi,
How would I go about hiding the display of the width size as one resizes the column width?
Thanks, Anton
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Jul 2013
1 answer
110 views
Hello EveryOne

I have used  RadTabStrip and in that OnClientTabSelected i have loaded different urls as per selecting tab

now i need some way so that this tab data stay as it is loaded in first time.
i mean if i have selected one tab and url is binded with that tab and again i come to that tab and click it then  it should not bind url it just load last opened url , so that way my page performance increase.


Is there any way to load tabbed data only once ?

Thanks,


Nencho
Telerik team
 answered on 04 Jul 2013
0 answers
240 views
Hi,

After Downloading the PDF file the Current page not Refreshing.


 already i have used the following code, but not working

            Image PreviewImg = (Image)Session["CheckPreviewImage1"];
            Document PDFPageSize = new Document(PageSize.A3);
            string FileName = "Some FileName";

            string path = Server.MapPath("PrintCheckPDFfiles") + "\\" + FileName + ".pdf"; ;
            PdfWriter.GetInstance(PDFPageSize, new FileStream(path, FileMode.OpenOrCreate));
            PDFPageSize.Open();
            iTextSharp.text.Image pdfimg = iTextSharp.text.Image.GetInstance(PreviewImg, System.Drawing.Imaging.ImageFormat.Gif);
            PDFPageSize.Add(pdfimg);
            PDFPageSize.Close();

            byte[] bytes = File.ReadAllBytes(path);
            HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName + ".pdf");
            //Response.Buffer = true;
            Response.Charset = "";
            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            Response.BinaryWrite(bytes);
            HttpContext.Current.Response.ContentType = "application/pdf";
            HttpContext.Current.Response.End();

            Response.Redirect("PageName.aspx");
  
             for Refreshing the page after last line i used the above statement( Response.Redirect("PageName.aspx");)



Venkateswarlu
Top achievements
Rank 1
 asked on 04 Jul 2013
7 answers
251 views
Hi All,

I want to have a chart with 3 line series based on the data below where the first column is the series, the second is the x axis and the 3rd is the y axis value.

Can chart series be done like this yet?  If not is there any fudge with datasets that I can use to pull the data in?

Regards

Jon

2 2013-04-08  9
2 2013-04-09  2
2 2013-04-10  4
3 2013-04-07  2
6 2013-04-08  5
6 2013-04-09  6
6 2013-04-10  2
Lidiya
Top achievements
Rank 1
 answered on 04 Jul 2013
6 answers
207 views
Hey people...

I have an issue with a user control I have created which is meant to provide search results through the use of a radgrid.

I have pasted the code below. As you will see, I have a button which causes a post back and a radgrid (bound to an objectdatasource) to show the results. The grid is configured to enable sorting and paging. There are other controls on the user control(e.g. comboxboxes and textboxes) which are the fields used to provide search criteria.

The problem I am having is that the page and grid loads fine with initial search results- all events are fired and the expected result is shown, then if I do a search/sort/page change it still works fine but the second and all subsequent postbacks (search/sort/page change)  raise all the events but the results aren't being shown in the browser. I also don't see any exceptions being raised- the databinding seems to run correctly. All the parameters passed to the search method are correct.

If I remove the radajaxpanel around it all, it works fine (but with all the full page refreshes). I have tried to use RadAjaxManager/proxy and still get the exact same result. Also tried manual binding and still no luck.

<telerik:RadAjaxPanel ID="ajaxpnlSearch" runat="server"
            <div class="form-row"
                <div class="float-left" style="width: 100%;"
                    <asp:Button Text="Search" class="search" runat="server" ID="btnSearch" OnClick="btnSearch_Click" /> 
                </div> 
                <div class="clear no-text"
                </div> 
            </div> 
            <div class="clear no-text"
            </div> 
            <telerik:RadGrid ID="grdSearchResults" runat="server" Width="100%" AllowPaging="True" 
                AllowSorting="True" DataSourceID="odsOpportunities" GridLines="None"
                <MasterTableView AutoGenerateColumns="False" DataSourceID="odsOpportunities" DataKeyNames="OppId" 
                    EnableViewState="true"
                    <Columns> 
                        <telerik:GridBoundColumn DataField="OppId" HeaderText="OppId" SortExpression="OppId" 
                            UniqueName="OppId" DataType="System.Int64"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="BusinessName" HeaderText="BusinessName" ReadOnly="True" 
                            SortExpression="BusinessName" UniqueName="BusinessName"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName" SortExpression="ContactName" 
                            UniqueName="ContactName" ReadOnly="True"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="OppExpireDate" DataType="System.DateTime" HeaderText="OppExpireDate" 
                            SortExpression="OppExpireDate" UniqueName="OppExpireDate"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="CreatedDate" DataType="System.DateTime" HeaderText="CreatedDate" 
                            SortExpression="CreatedDate" UniqueName="CreatedDate"
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="CreatedBy" DataType="System.Int32" HeaderText="CreatedBy" 
                            SortExpression="CreatedBy" UniqueName="CreatedBy"
                        </telerik:GridBoundColumn> 
                    </Columns> 
                </MasterTableView> 
                <ClientSettings> 
                    <Selecting AllowRowSelect="True" /> 
                </ClientSettings> 
            </telerik:RadGrid> 
            <asp:ObjectDataSource ID="odsOpportunities" runat="server" OldValuesParameterFormatString="original_{0}" 
                SelectMethod="Search" TypeName="Hub.BLL.Opportunity.Opportunity"
                <SelectParameters> 
                    <asp:ControlParameter ControlID="txtOppId" Name="inOppId" PropertyName="Text" Type="Int32" /> 
                    <asp:ControlParameter ControlID="cmbPartner" Name="inPartnerId" PropertyName="SelectedValue" 
                        Type="Int32" /> 
                    <asp:ControlParameter ControlID="cmbOppStatus" Name="inStatus" PropertyName="SelectedValue" 
                        Type="Int32" /> 
                    <asp:ControlParameter ControlID="cmbOppType" Name="inOppType" PropertyName="SelectedValue" 
                        Type="Int32" /> 
                    <asp:ControlParameter ControlID="dpWOOStartDate" Name="inStartDate" PropertyName="SelectedDate" 
                        Type="DateTime" /> 
                    <asp:ControlParameter ControlID="dpWOOEndDate" Name="inEndDate" PropertyName="SelectedDate" 
                        Type="DateTime" /> 
                    <asp:ControlParameter ControlID="cmbChannel" Name="inChannel" PropertyName="SelectedValue" 
                        Type="Int32" /> 
                    <asp:ControlParameter ControlID="cmbCampaign" Name="inCampaign" PropertyName="SelectedValue" 
                        Type="Int32" /> 
                    <asp:ControlParameter ControlID="cbNew" Name="inNew" PropertyName="Checked" Type="Boolean" /> 
                </SelectParameters> 
            </asp:ObjectDataSource> 
            <br /> 
        </telerik:RadAjaxPanel> 


        protected void Page_Load(object sender, EventArgs e) 
        { 
             
        } 
 
        protected void btnSearch_Click(object sender, EventArgs e) 
        { 
            grdSearchResults.DataBind(); 
        } 

Any help would be appreciated!!!

Regards,
Andrew
Joe
Top achievements
Rank 1
 answered on 03 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?