Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
143 views
I am using  a RadDatePicker on my page and its working fine. But the probem is when I scroll the page down and then click on the calendar image it displays the calendar somewhere at the top of the page rather then displaying at bottom right of the calendar image. Its only happening in IE, no problem in Firefox though. Not sure what property do I need to set so that even if i scroll the page down and click on caledar image it show display ot the bottom right of the calendar image. Please see below the code I am using.

<telerik:RadDatePicker ID="calFrom" runat="server" Width="140px" AutoPostBack="true" DateInput-EmptyMessage="MinDate" MinDate="01/01/2000" Skin="WebBlue"  PopupDirection="BottomRight" >
   <Calendar>
     <SpecialDays>
        <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday">
        </telerik:RadCalendarDay>
      </SpecialDays>
   </Calendar>
</telerik:RadDatePicker>

Your help is much appreciated.
Thanks
Eyup
Telerik team
 answered on 01 Aug 2013
4 answers
299 views
I have a grid page (using RadControls Q1 201) which has 2 slightly different searches.  One works fine.  The other just displays a single horizontal line instead of the grid.  The code all looks fine, the datasource is being defined correctly, the data retrieval stored procedure returns data if I run it manually.  Is there any way to diagnose this kind of problem where the grid just doesn't render?

Frustrated in Ohio
Andrey
Telerik team
 answered on 01 Aug 2013
4 answers
213 views

Hi Telerik Team,

is the a chance to fake the click at the select-button from JavaScript?
Reason: The user should simply click on an Image (RadBinaryImage) to start uploading Progress (and browse for Image file, of course).

I mean something like this:

function UploadImage() {               
    var upload = $find('<%=RadAsyncUpload1.ClientID%>');
    upload.click();
}

 

Thank you

 

Shinu
Top achievements
Rank 2
 answered on 01 Aug 2013
3 answers
202 views

How to Hide Month Cell in RadMonthYearPicker while datepopupbutton focussed.

 

 

 

 

 

 

 

 

 

 

Eyup
Telerik team
 answered on 01 Aug 2013
3 answers
205 views
Hi,

I'm trying to build a grid using the multicell selection but i haven't been able to find how i'm supposed to get the selected cells after they have been selected? using get_selecteditems does not contain any objects for the selected cells. Am i missing something?

Any help would be great as i can't find an example in the Telerik knowledge base.

Thanks,
JC
Princy
Top achievements
Rank 2
 answered on 01 Aug 2013
5 answers
338 views

I have a problem everytime i execute the code to open the radwindow, it open multiple times

1ste time it open 1 time
If i close the windows and execute the the code again i get 2 windows ... and so on

Radwindowmanager:

 <telerik:RadWindowManager ID="Menuradwindow" runat="server">  
</telerik:RadWindowManager>      
 

Execute window :

                Dim newWindow As New RadWindow()  
                newWindow.NavigateUrl = "~/admin/content/delete_page.aspx?PageID=" + panelBarValue  
                newWindow.VisibleOnPageLoad = True 
                newWindow.Width = "550" 
                newWindow.Height = "350" 
                newWindow.Title = "Pagina Verwijderen" 
 
                Menuradwindow.Windows.Add(newWindow) 

Anyone has a solution to this problem ?
Danail Vasilev
Telerik team
 answered on 01 Aug 2013
2 answers
175 views
Hi,

I'm having a database of million records and I must use paging at sql level to reduce the traffic.

The solution works fine with RadGrid where I can set the Grid.VirtualItemCount = total row count.

However, RadTreeList does not support that property. Could you explain the reason and give me a work around?
Robin
Top achievements
Rank 1
 answered on 01 Aug 2013
8 answers
442 views
Hi, the content of the textarea "reComment" is not being recognized, it returns empty, any ideas? thanks

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
    <script type="text/javascript">
        var currentLoadingPanel = null;
        var btSubmit = null;
        function RequestStart(sender, args) {
            currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID%>");
            btSubmit = "<%= panlcomments.ClientID %>";
            //show the loading panel over the updated control
            currentLoadingPanel.show(btSubmit);
        }
        function ResponseEnd() {
            //hide the loading panel and clean up the global variables
            currentLoadingPanel.hide(btSubmit);
            //clear
            btSubmit.SetHtml("");
            currentLoadingPanel = null;
            btSubmit = null; 
        }
    </script> 
</telerik:RadCodeBlock>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btSubmit">
            <UpdatedControls>                
                <telerik:AjaxUpdatedControl ControlID="newCommentLiteral" LoadingPanelID="RadAjaxLoadingPanel1" />
				<telerik:AjaxUpdatedControl ControlID="panlcomments" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
    <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Center" Skin="Vista">
  
</telerik:RadAjaxLoadingPanel>
<asp:Literal ID="existingComments" runat="server"></asp:Literal>
<asp:Literal ID="newCommentLiteral" runat="server"></asp:Literal>
<!-- on masque le control pour les anonymes -->
 
<asp:Panel ID="panlcomments" runat="server">
<div class="exp-comment-message"><asp:Label ID="lblMessage" Text="Messages :" runat="server"></asp:Label></div>
<telerik:RadEditor ID="reComment" runat="server" EditModes="Design" ToolbarMode="ShowOnFocus" ToolsWidth="170px" Width="350px" Height="100px" >
 
 <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="Bold" />
            <telerik:EditorTool Name="Italic" />
            <telerik:EditorTool Name="StrikeThrough" />
            <telerik:EditorTool Name="Underline" />
            <telerik:EditorTool Name="InsertUnorderedList" />
            <telerik:EditorTool Name="InsertOrderedList" />
        </telerik:EditorToolGroup>
    </Tools>
</telerik:RadEditor>
<span class="exp-bout-comm"><asp:Button ID="btSubmit" runat="server" Text="Valider" OnClick="btSubmit_Click" CssClass="Exp-Comment-Submit"/></span>
</asp:Panel>



// CODE
        protected override void OnInit(EventArgs e)
        {
            Page.Init += delegate(object sender, EventArgs e_Init)
            {
                if (RadScriptManager.GetCurrent(Page) == null)
                {
                    RadScriptManager sMgr = new RadScriptManager();
                    Page.Form.Controls.AddAt(0, sMgr);
                }
                string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"];
                try
                {
                    if (!string.IsNullOrEmpty(formOnSubmitAtt) && formOnSubmitAtt == "return _spFormOnSubmitWrapper();")
                    {
                        Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();";
                    }
                }
                catch { }
                try
                {
                    if (btSubmit == null)
                        btSubmit = this.FindControl("btSubmit") as Button;
 
                    if (reComment == null)
                        reComment = this.FindControl("reComment") as RadEditor;
Ianko
Telerik team
 answered on 01 Aug 2013
1 answer
171 views

Hi,

            i want  to assign the SQL table  as datasource for pivotgrid.

My code:

void RadPivotGrid1_NeedDataSource(object sender, PivotGridNeedDataSourceEventArgs e)
        {
            (sender as RadPivotGrid).DataSource = GetDataTable();
        }

  private DataTable GetDataTable()
        {
            DataTable dt = new DataTable();
            using (SqlConnection conn = new SqlConnection("Data Source=zbserver01;initial Catalog=Sales;User Id=XXX;Password=XXX"))
            {
                using (SqlCommand cmd = new SqlCommand())
                {
                    cmd.Connection = conn;
                    cmd.CommandText = "Select * from Car";
                    SqlDataAdapter adpt = new SqlDataAdapter(cmd);

                    adpt.Fill(dt);
                }
                return dt;
            }

        }

 its just show the empty grid,if  i am  do like this.

Is it possible to assign a normal sql table as datasource for RadPivotGrid.

 
Maria Ilieva
Telerik team
 answered on 01 Aug 2013
1 answer
179 views
Hi,

            i want  to assign the SQL table  as datasource for pivotgrid.

My code:

void RadPivotGrid1_NeedDataSource(object sender, PivotGridNeedDataSourceEventArgs e)
        {
            (sender as RadPivotGrid).DataSource = GetDataTable();
        }

  private DataTable GetDataTable()
        {
            DataTable dt = new DataTable();
            using (SqlConnection conn = new SqlConnection("Data Source=zbserver01;initial Catalog=Sales;User Id=XXX;Password=XXX"))
            {
                using (SqlCommand cmd = new SqlCommand())
                {
                    cmd.Connection = conn;
                    cmd.CommandText = "Select * from Car";
                    SqlDataAdapter adpt = new SqlDataAdapter(cmd);

                    adpt.Fill(dt);
                }
                return dt;
            }

        }

 its just show the empty grid,if  i am  do like this.

Is it possible to assign a normal sql table as datasource for RadPivotGrid.
Maria Ilieva
Telerik team
 answered on 01 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?