Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 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
344 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
338 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
73 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
1 answer
137 views
I've got a grid that based on the selected folder it will paint the correct columns. If you select a column to sort it seems to forget the columns it should display and instead displays the grid's hardcoded values with HTML values. 

See Attachments:
1. Grid columns display as they should (sorting1.png)
2. Click on a column header in the grid to sort the data
3. Grid columns change and display odd data (sorting2.png)

I've tested this and the first click causes the odd data, but if you click again it seems to fix everything.

Thanks, Jason

Kostadin
Telerik team
 answered on 28 Jun 2013
3 answers
96 views
Hello 

When I enter edit mode in my grid the textboxes looks messed up, The height and width of the textboxes are not even near match. And the height of the first and last textbox is higher than the rest.

I want to get some space between the textboxes and also set the height and width of all the textboxes including my dropdown lists to the same.

Any idea what to do? I have tried setting the height and width to the same in itembound event and in a ItemCreated event with no luck.

Ive enclosed an image of how it looks, if it is to any help.


Appreciate any help! This is driving me nuts.
Princy
Top achievements
Rank 2
 answered on 28 Jun 2013
1 answer
60 views
Hello!

When I enter edit mode in a radgrid I end up with all the textboxes beeing in different width.

I thought of solving this, by looping through all the items that is beeing edited and set them to System.Web.UI.WebControls.Unit.Pixel(300); to change the size.

I have tried with a loop looking something like below, but obviously this will yield error,

Any idea what to do to make them into the same size? 

foreach (GridEditFormItem EdItem in rgRelMaterial.Columns)
  {
        EdItem.Width = System.Web.UI.WebControls.Unit.Pixel(300);
  }
Eyup
Telerik team
 answered on 28 Jun 2013
1 answer
197 views
Hi,

I have below grid with dynamic columns at runtime.
<telerik:RadGrid ID="radGridData" runat="server" ShowGroupPanel="true" OnNeedDataSource="radGridData_NeedDataSource">
            <GroupingSettings CaseSensitive="false" ShowUnGroupButton="true" />
            <MasterTableView EnableLinqGrouping="true" AllowFilteringByColumn="true" GroupLoadMode="Client" />
            <ClientSettings AllowDragToGroup="true" />
        </telerik:RadGrid>

After set few filters and groups,

I am able to get linq expression as string for filter columns, with below code:
radGridData.MasterTableView.FilterExpression

But not able to get linq expression as string for group by columns.

Is there any way to get linq expression for group by columns? I am using LINQ Dynamic Query Library in my code that's why I need it.

Please let me know if it's possible.

Thanks


Antonio Stoilkov
Telerik team
 answered on 28 Jun 2013
3 answers
69 views
Often I type out my message then go back and select and use the hyperlink manager to wire up links

However I've been noticing on Sitefinity.com and KendoUI.com, the editors they have in their forums actually WIPE\DELETE content above the hyperlink (at least in FF)...and there's no undo functionality to get everything I just typed back.
Filip
Telerik team
 answered on 28 Jun 2013
8 answers
514 views
Hello,

My question is how I can use in RadDataGrid a picture column using URL, not image from database

Best Regards
Zlatko Rusev
Stefan
Telerik team
 answered on 28 Jun 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?