Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
735 views
Hi , 
i want to use HTML Chart to display a graph like this in the attached pic   ( untitled1.png).
With the data from database that have records like in the attached  pic  ( untitled2.png). 

How do i achieve two series of lines in the HTML chart,
currently it binds to only one series.



Thanks in advance,
Ricky

Danail Vasilev
Telerik team
 answered on 28 Jun 2013
10 answers
608 views
Hi,

How can I customize radconfirm? I need to add an asp label and an image in radconfirm?
Shinu
Top achievements
Rank 2
 answered on 28 Jun 2013
3 answers
91 views
Hi,

I'm trying to implement grid filtering like it works in SPGridView. I made a custom column which was bounded to the same table as RadGrid.

I want to apply sequential filtering on columns (if user selects filter value from first column, then all other columns should limit results based on this criteria). User can filter by multiple columns in grid.

How can I achieve this?

Marko
Tsvetoslav
Telerik team
 answered on 28 Jun 2013
3 answers
241 views
Hi guys

I am using radasyncupload to upload multiple files to the server. By default how can I overwrite if the selected file is already uploaded in the server? Any help would be great.
Thanks
Sameer
Shinu
Top achievements
Rank 2
 answered on 28 Jun 2013
5 answers
154 views
We have a project using the rad dock controls and when I drag a dock from one zone to another it is possible to get the dock to lose its connection to the pointer.   To do this I basically just move the dock down below the scrollbar line then move it back up.  My mouse indicator becomes a pointer when this happens instead of the standard cross pointer you see when moving a dock.  

has anyone else experienced this or know of a fix for it.


I performed a pretty complete search trying to look for anyone else having this issue and was unable to find anything.  
Slav
Telerik team
 answered on 28 Jun 2013
2 answers
350 views
Hallo, 

I made a page with a radgrid on it. At first the page had a asp script manager. But when i put in an RadAjaxLoadingPanel it gave the error
"A control is already associated with the element." After looking on the internet I found a solution. I replaced the script manager in my master layout with the radscriptmanager. I registered it both for IIS6 and IIS7. Now when i load the grid it still shows but when i want to do anything with it, it gives the error. "Object of type 'Telerik.Web.UI.GridDataItem' cannot be converted to type 'Sys.UI.Control'". 
It gives the error when I try to use any feature of the grid. When i use a button in the command bar, after doing the onclick, it gives the error. When i try to edit a record, it gives the error. After giving the error the grid stops working. 

<asp:EntityDataSource ID="edsBackups" runat="server" EntitySetName="Backups" ConnectionString="name=ControlwareEntities"
        DefaultContainerName="ControlwareEntities" EnableFlattening="False" EnableUpdate="True"
        EntityTypeFilter="" OrderBy="it.DateTime DESC" Select="">
    </asp:EntityDataSource>
   
    <telerik:RadGrid runat="server" ID="cg" DataSourceID="edsBackups" OnUpdateCommand="cg_UpdateCommand"
        OnDeleteCommand="cg_DeleteCommand"
         
        AllowPaging="True"
        AllowSorting="True"
        >
        <MasterTableView DataKeyNames="ID">
            <CommandItemTemplate>
                <div style="padding: 5px 5px;">
                    <asp:LinkButton ID="LinkButton2" runat="server" OnClick="bBackup_OnClick"><img style="border:0px;vertical-align:middle;" alt=""  width="15" src="/Styles/glyphicons/glyphicons_342_hdd.png"/> <asp:Literal ID="Literal1" meta:resourcekey="NewBackup" runat="server" Text="New"></asp:Literal></asp:LinkButton>  
                    <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected"><img style="border:0px;vertical-align:middle;" alt=""  width="15" src="/Styles/glyphicons/glyphicons_030_pencil.png" /> <asp:Literal ID="Literal2" meta:resourcekey="EditBackup" runat="server" Text="Edit"></asp:Literal></asp:LinkButton>  
                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt=""  width="15" src="/Styles/glyphicons/glyphicons_016_bin.png"/> <asp:Literal ID="Literal3" meta:resourcekey="DeleteBackup" runat="server" Text="Delete"></asp:Literal></asp:LinkButton>  
                    <asp:LinkButton ID="LinkButton5" runat="server" OnClick="bRestore_OnClick"><img style="border:0px;vertical-align:middle;" alt=""  width="15" src="/Styles/glyphicons/glyphicons_082_roundabout.png"/> <asp:Literal ID="Literal4" meta:resourcekey="RestoreBackup" runat="server" Text="RestoreBackup"></asp:Literal></asp:LinkButton>  
                    <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><div style="float:right"><img style="border:0px;vertical-align:middle" alt="" width="15" src="/Styles/glyphicons/glyphicons_081_refresh.png"/> <asp:Literal ID="Literal5" meta:resourcekey="RefreshBackup" runat="server" Text="Refresh"></asp:Literal></asp:LinkButton>
                </div>
            </CommandItemTemplate>
            <EditFormSettings EditFormType="Template" InsertCaption="New" CaptionFormatString="Edit">
                <FormTemplate>
                    <div style="padding: 5px">
                        <table id="Table2" width="100%" border="0" style="border-collapse: collapse; padding: 5px">
                            <tr>
                                <td colspan="2"><b>Backup:</b></td>
                            </tr>
                            <tr>
                                <td>Created On:</td>
                                <td><asp:Label runat="server" Text='<%# Eval("DateTime") %>'></asp:Label></td>
                            </tr>
                            <tr>
                                <td>Name:</td>
                                <td><asp:TextBox ID="TextBox1" Style="width: 200px;" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    Full Backup:
                                </td>
                                <td>
                                    <asp:CheckBox Enabled="False" runat="server" ID="cb1" Checked='<%# Bind("IsFullBackup") %>' />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="padding: 5px">
                                    <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# cg.EditIndexes.Count > 0 || cg.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt=""  width="15" src="/Styles/glyphicons/glyphicons_221_unshare.png"/> Cancel</asp:LinkButton>  
                                    <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# cg.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt=""  width="15" src="/Styles/glyphicons/glyphicons_003_user.png"/> Update</asp:LinkButton>  
                                </td>
                            </tr>
                        </table>
                    </div>
                </FormTemplate>
            </EditFormSettings>
            <Columns>
                <telerik:GridBoundColumn HeaderText="ID" DataField="ID" Visible="False" />
                <telerik:GridBoundColumn meta:resourcekey="GridColumn1" HeaderText="Timestamp" DataField="DateTime" />
                <telerik:GridBoundColumn meta:resourcekey="GridColumn2"  HeaderText="Name" DataField="Name" />
                <telerik:GridCheckBoxColumn meta:resourcekey="GridColumn3" HeaderText="Full Backup" DataField="IsFullBackup" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

I also found out that it gives the same error with the raddropdownlist
Leander
Top achievements
Rank 1
 answered on 28 Jun 2013
2 answers
78 views
Hi

I am using 2013.1 version of radcontrols. I have a radautocompletebox and on typing text a vertical line is displayed and the drop down is nowhere shown. What is the issue? 

Regards
Shahi
Shahi
Top achievements
Rank 1
 answered on 28 Jun 2013
1 answer
280 views

Hello folks,
I have requirement like these.I have rad-window inside I have following code .



<telerik:RadWindow ID="rdwndwPreviewCheck" VisibleOnPageLoad="false" Title="Check Preview">
        <ContentTemplate>
            <table>
            </table>
            <asp:Image ID="chkImage1" runat="server" ImageUrl="~/CheckPreview.aspx" />
            <br />
            <br />
            <table style="width: 100%;">
                <tr align="center">
                    <td style="width: 580px;">
                        <telerik:RadButton ID="rdPrint" runat="server" Text="  Print"   Style="position: relative;
                            left: 90px;"  OnClick="print"    >
                            <Icon SecondaryIconCssClass="rbPrint" SecondaryIconRight="4" SecondaryIconTop="4" />
                        </telerik:RadButton>
                    </td>
                    <td>
                        <telerik:RadButton ID="CloseRadPrintWindow" runat="server" Text="Close" OnClientClicked="closeMyRadWindow"
                            Style="position: relative; left: -185px;">
                        </telerik:RadButton>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </telerik:RadWindow>


I want to access the  image content  inside the rad-window....through code behind technique  and  I need to assign  that Image  to  some other image .. using the  code behind technique ..after that I want to convert the Image into Byte[] ...here
the image url is not a static one and it is dynamic based on requesting the page we getting some Image .jpeg from that page.
      <script type="text/javascript">
            function printIt() {
                var win = window.open('', 'popup', 'location=1,status=1,scrollbars=1,width=800,height=600');
                if (win) {
                    var imageControl = document.getElementById('<%=chkImage1.ClientID%>').src;
                    win.document.write('<img src="' + imageControl + '">');
                    win.document.close();
                    win.focus();
                    win.print();
                }
                return false;
            }
        </script>
the above code  , I  used to  Display Image in the  ..rad-window..But ..same image I want to access code code behind technique and also I need to convert to Byte[] stream.
Marin Bratanov
Telerik team
 answered on 28 Jun 2013
1 answer
249 views
Hi,

I am using RadAjaxManager to update dropdown and tooltip but the problem is that when I update the dropdown it halts and I can not open the dropdown. Any help would be greatly appreciated.

<telerik:RadComboBox ID="rcbTemplate" AutoPostBack="true" Height="200px" runat="server">
                        </telerik:RadComboBox>
                        <asp:LinkButton ID="btnAddTemplates" Text="Add/Edit Template" Visible="false" runat="server">                           
                        </asp:LinkButton>
                        <telerik:RadAjaxManager ID="_RadAjaxManager" OnAjaxRequest="rjm_AjaxRequest" runat="server">                           
                            <AjaxSettings>
                                <telerik:AjaxSetting AjaxControlID="btnSave">
                                    <UpdatedControls>
                                        <telerik:AjaxUpdatedControl ControlID="rttm"></telerik:AjaxUpdatedControl>
                                        <telerik:AjaxUpdatedControl ControlID="rcbTemplate"></telerik:AjaxUpdatedControl>
                                        <telerik:AjaxUpdatedControl ControlID="rgInvoiceTemplateDetail"></telerik:AjaxUpdatedControl>
                                    </UpdatedControls>                                   
                                </telerik:AjaxSetting>                               
                            </AjaxSettings>
                        </telerik:RadAjaxManager>
                        <telerik:RadToolTipManager ID="rttm" runat="server" Position="TopRight" Animation="Fade"
                            ShowEvent="OnClick" HideEvent="ManualClose" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Element"
                            Width="250px" Height="250px" RenderInPageRoot="true">
                            <TargetControls>
                                <telerik:ToolTipTargetControl TargetControlID="btnAddTemplates" />
                            </TargetControls>
                        </telerik:RadToolTipManager>
                        <table id="tblToolTip" visible="false" runat="server">
                            <tr>
                                <td>
                                    Client
                                </td>
                                <td>
                                    <asp:Label ID="lblClientName" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Template
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTemplateName" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                      
                                </td>
                                <td>
                                    <asp:Button ID="btnSave" OnClientClick="SaveTemplate(this); return false;" Text="Save"
                                        runat="server" />
                                </td>
                            </tr>
                        </table>
 
 
 
 Protected Sub rjm_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs)
 
        Dim nTemplateID As Int32 = Convert.ToInt32(rcbTemplate.SelectedValue)
        Dim objTemplate As New TemplateInfo(nTemplateID)
        objTemplate.TemplateName = txtTemplateName.Text.Trim
        objTemplate.Update(nTemplateID)
        ScriptManager.RegisterClientScriptBlock(Me.Page, Me.GetType(), "Call my function", "CloseActiveToolTip()", True)
 
        Call GetAllTemplates()
 
    End Sub
 
  Protected Sub GetAllTemplates()
 
        rcbTemplate.Items.Clear()
 
        If rcbClient.SelectedValue <> String.Empty Then
 
            Dim sSQL As String = "select ID, TemplateName from InvoiceTemplate where IsDeleted = 0 and ClientID = " & rcbClient.SelectedValue & " order By TemplateName"
 
            Dim oDataTable As DataTable = GMSDB.Query(sSQL)
            rcbTemplate.DataSource = oDataTable
            rcbTemplate.DataTextField = "TemplateName"
            rcbTemplate.DataValueField = "ID"
            rcbTemplate.DataBind()
            rcbTemplate.Items.Insert(0, New RadComboBoxItem("- Select Template -", "- Select Template -"))
 
        Else
 
            rcbTemplate.DataSource = Nothing
            rcbTemplate.DataBind()
            rcbTemplate.Items.Add(New RadComboBoxItem("- Select Template -", "- Select Template -"))
 
 
 
        End If
 
 
 
    End Sub
Konstantin Dikov
Telerik team
 answered on 28 Jun 2013
1 answer
55 views
I am trying to implement new Batch Edit functionality of RadGrid. I have a Radgrid with 2 columns both the columns are TemplateColumns with RadComboBox in EditTemplate. I want to load data in a ComboBox (LoadOnDemand) in column b in the same row based on the Selected value of the Combobox in column a. 

I did try to use onClientItemsRequsting to capture the selected value and saved it to the context object so that i can use it in ItemRequested event's filter property on the code behind. It works fine for the first time.

The issue is once the combobox is loaded it never hits ItemRequested again. So even if we change the selected value of the 1st combobox, the 2nd combobox values remains the same as it already has values and will not hit itemrequested on subsequent selections.

Can anyone help me with this scenario.

 

Antonio Stoilkov
Telerik team
 answered on 28 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?