Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
175 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
294 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
148 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
417 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
156 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
161 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
130 views
So what I need to load is a simple list that pops-up when a use hovers over a label for education i want to show the education temr sfroma database.  Don't wnat to preload into label as that;s wasteful html.  What I would like is a service that hooks to the db and return the list each time someone hovers over the label.  I tried using the radtooltip but could find no way to hook up to a web service, I then found radtooltip manage but I cant find a way to hook this up to the label on the page.

<asp:Label ID="lblKey" runat="server" Text="Key" Font-Size="XX-Small" ForeColor="Blue" Font-Underline="true" style="cursor:pointer"></asp:Label>
                        <telerik:RadToolTipManager ID="radEdlvl" runat="server" Position="MiddleLeft" Animation="Fade" Width="100px" Height="200px" RelativeTo="Element" HideDelay="20" Text="Hello" >
 
 
service, dont know if this will work but cant even see if it works wil the label on page.
 
  <WebMethod()> _
    Public Function GetToolTip() As String
        sql = "Select strEducationCode + ' - ' + strEducation from Education order by strEducationCode"
 
        myDataTable = New DataTable
        myDataTable = getReader(sql)
 
        If myDataTable.Rows.Count > 0 Then
            GetToolTip = myDataTable.ToString
        Else
            GetToolTip = Nothing
        End If
        GetToolTip()
    End Function


Danail Vasilev
Telerik team
 answered on 01 Aug 2013
3 answers
143 views
Hi,

For the colorpicker, are we able to let user to key in the HEX value themselves ?
Sometimes the client was given color in HEX code by designer so they need to copy paste it into the input.

Thanks.
Slav
Telerik team
 answered on 01 Aug 2013
1 answer
104 views
Hi

I am trying the radtilelist. The control is new and hence I am struggling a bit to get things work. In the tilelist, the user clicks to select tiles in the tilelist and assume some few tiles are selected. There is an asp label and I want to append the selected tiles name and title text to this label. Please help.

Thanks
JC
Shinu
Top achievements
Rank 2
 answered on 01 Aug 2013
9 answers
464 views
I am using below code for opening the radwindow

function openDashboards(source, dest, e)
        {
          
            var oWnd = window.radopen("http://localhost/docs/Oracle9i.pdf", null);
            oWnd.SetTitle("My Dashboards");
            return false;
        }

If I opening the link (i.e. http://localhost/docs/Oracle9i.pdf) from my IIS, it gets opened perfectly, but if I am opening through RadWindow it dont gets open, just a blank page. Could you please tell what is the problem or where I am going wrong?

Please reply soon...

Thanks in advance....
Kannan
Top achievements
Rank 1
 answered on 01 Aug 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?