Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views
Hi,
i'm trying to detect the upload count on client side and determine if its 0.
If so i want to enable a panel. I've searched on the forum but cannot find a good example of how to detect upload count.

anyone have an example how to do this?

thanks
Shinu
Top achievements
Rank 2
 answered on 16 Apr 2014
2 answers
181 views
Hello, I am reviewing the commenting feature of the radeditor and have a few questions related to closing a comments dialog. For reference, I'm referring to http://demos.telerik.com/aspnet-ajax/editor/examples/comments/defaultcs.aspx. 

1. When a comment is clicked, the comment dialog pops up. Once the dialog is open, it seems that the comment dialog can be closed in one of two ways - either pressing the "cancel" button on the comment dialog once it appears, or, clicking somewhere in the editor outside of a comment. Is it possible out of the box to auto-close the comment dialog when clicking anywhere outside of the comment dialog, regardless of whether you click somewhere in the editor or out of the editor?

2. Is it possible out of the box to have a close widget on the comment dialog? 

Thanks
Shan
Shan
Top achievements
Rank 1
 answered on 16 Apr 2014
1 answer
116 views
is there anyway to determine the Displayed Image Data Key?


Pavlina
Telerik team
 answered on 16 Apr 2014
4 answers
108 views
Hello,

I have a radTreeView that has many nodes and sub-nodes. 
I want to add a AjaxLoadingPanel so it will display horizontally with the "+" being selected by the user.
Is this possible?

Thank you,
Jerry
Jerry
Top achievements
Rank 1
 answered on 15 Apr 2014
1 answer
278 views
Hi,
Right now we are using asp.net upload file control. I was looking around to see if I can use Rad Async upload control to meet our requirements:
1) multi file upload
2) When page loads, file upload control (pop up box) should open in set default location like C:\Company1\downloadFiles.
3) Post back, retain file path in display box (textbox) of upload control.
4) After upload is done, control should removed file names or box should be empty.

Please let me know if all these are done by rad async upload control.

Thank you.
Boyan Dimitrov
Telerik team
 answered on 15 Apr 2014
1 answer
270 views
i am having an issue with radCombobx item inserted from the client side,two problem are occurring :

i have a radGrid with client selecting when i select a row onRowSelected  client side function is fired and a combobox item is added to the combobox,the combobox have the checkboxes property set to true and EnableCheckAllItemsCheckBox="true"
  • first problem : when i click on check all items all the statically added items are checked but the new added one from the client side are not
  • second problem : i have added a server side oncheckedchanged function to radcombobox ,when i check a static item it fires the server side function but when i check the added one from the client side it does not fire the event

can someone please explain why this behavior is occurring because i can't understand the problem :/ here is my code

  <telerik:RadComboBox ID="Country_dd"  EnableCheckAllItemsCheckBox="true"  runat="server"
                              CheckBoxes="true"  AutoPostBack="true"  EnableLoadOnDemand="true"
                              OnItemChecked="Country_dd_CheckedChanged" >
                                <Items>
                                <telerik:RadComboBoxItem Text="asd" />
                                </Items>
                            </telerik:RadComboBox>
 
<telerik:RadGrid ID="ServiceCountryGrid" runat="server" AllowSorting="true" OnNeedDataSource="ServiceCountryGrid_NeedDataSource"
                        SkinID="RadGridSkin" DataKeyNames="COUNTRY_ID" AllowMultiRowSelection="true"
                        ShowHeader="true" OnItemDataBound="Grid_ItemDataBound" >
                        <ClientSettings >
                            <ClientEvents OnRowSelected="Row_Selected" OnRowDeselected="Row_Selected" />
                            <Selecting UseClientSelectColumnOnly="true" AllowRowSelect="true"  />
                            <Scrolling AllowScroll="true" ScrollHeight="400px" />
                        </ClientSettings>
                        <MasterTableView AutoGenerateColumns="false" ShowHeadersWhenNoRecords="true">
                            <Columns>
                                <telerik:GridClientSelectColumn HeaderTooltip="Allow All" UniqueName="SelectCountries"
                                    HeaderStyle-Width="100px" ItemStyle-Width="100px">
                                </telerik:GridClientSelectColumn>
                                <telerik:GridBoundColumn UniqueName="COUNTRY" HeaderText="<%$ Resources:Strings,Country %>"
                                    DataField="COUNTRY_NAME">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="COUNTRY_ID" DataField="COUNTRY_ID" Display="false"></telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn HeaderText="<%$ Resources:Strings,Profile%>" UniqueName="GRDPROFILE">
                                    <ItemTemplate>
                                        <asp:DropDownList class="grdCountryProfiledd" ID="GrdProfile_dd" DropDownWidth="196"
                                            Enabled="false" runat="server" DataTextField="PROFILE_NAME" DataValueField="PROFILE_ID">
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

javascript function :

function Row_Selected(sender, eventArgs) {
           var ServiceCountryGrid = $find("<%= ServiceCountryGrid.ClientID %>");
            
           var selectedValue = $("#Profile_dd option:selected").val();
          
           var MasterTable = ServiceCountryGrid.get_masterTableView();
           var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
           var GrdProfile_dd = $("#" + row.get_element().getElementsByTagName("select")[0].id);
 
           if (!row.get_selected()) {
               GrdProfile_dd.attr("disabled", "disabled");
               GrdProfile_dd.val(selectedValue);
               var combo = $find("<%=Country_dd.ClientID %>");
               combo.trackChanges();
               combo.get_items().remove(combo.findItemByValue(row._element.cells[2].innerHTML));
               
               combo.commitChanges();       
           }
           else {
               GrdProfile_dd.removeAttr("disabled");
               var value = row._element.cells[2].innerHTML;
               var text = row._element.cells[1].innerHTML;
               var combo = $find("<%=Country_dd.ClientID %>");
               var comboItem = new Telerik.Web.UI.RadComboBoxItem();
               comboItem.set_text(text);
               comboItem.set_value(value);
               combo.trackChanges();
               combo.get_items().add(comboItem);
               
               combo.commitChanges();       
             
           }
       }

please someone provide me a clear answer for this behavior
Boyan Dimitrov
Telerik team
 answered on 15 Apr 2014
1 answer
88 views
Good morning,
since I copied a .dll files from a new release Q1' 14 I am expriencing a few problem in my web application running in IE8.
First:
I am getting error only on one page:Object required.Telerik.Web.UI.WebResource.axd.

Second:
RadDatePicker  when I click on calendar and then try to click on title month.year popup appear in very top corner of the page.
I did not have any issue with old .dll files in EI8.

Thanks so much for yuor help.

P.S.I have no problem to run application in FireFox browser.
Pavlina
Telerik team
 answered on 15 Apr 2014
8 answers
255 views
Hi

I am trying to display a column of checkboxes in Telerik RadGrid in my project.
The data source of my grid is a list of objects.
How to do this  programatically ?

p.s.
an answer in any programming language will be appreciated 

my code:

    
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Not IsPostBack Then
      setColumnsOnGrid(Of object)(lst, RadGrid1, ArrayNameFilds:={"column1", "column2", "column3 ", "etc."})
    End If
End Sub
 
Private Sub setColumnsOnGrid(Of T)(ByVal lst As List(Of T), ByVal grdName As RadGrid, ByVal ArrayNameFilds As Array)
    Dim nameFiled As String
    grdName.DataSource = lst
    grdName.AllowMultiRowSelection = True
    grdName.MasterTableView.AutoGenerateColumns = False
 
    Dim boundColumn As GridBoundColumn
 
    For i As Integer = 0 To ArrayNameFilds.Length - 1
        nameFiled = ArrayNameFilds(i).ToString()
        boundColumn = New GridBoundColumn()
        grdName.MasterTableView.Columns.Add(boundColumn)
        boundColumn.DataField = nameFiled
        boundColumn.HeaderText = nameFiled
     Next
End Sub


my aspx:

<telerik:RadGrid ID="grd_test" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" CellSpacing="0" GridLines="None">
    <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    </ClientSettings>
</telerik:RadGrid>
Viktor Tachev
Telerik team
 answered on 15 Apr 2014
1 answer
247 views
Hello,

I've been searching for a while now, but I cant find out how I can make a RadNotification part of the RadAjaxPanel. In my scenario, the notification is shown, but when I click a button in the contentTemplate of the RadNotification, a full postback is created in stead of the partial one with the loadingPanel.

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel_App" runat="server"></telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel ID="RadAjaxPanel_App" LoadingPanelID="RadAjaxLoadingPanel_App" runat="server">
    <telerik:RadNotification ID="RadNotification_ExitWithoutSave" Position="Center" Width="350px" Height="160px" LoadContentOn="FirstShow" AutoCloseDelay="0" Title="Please Confirm" TitleIcon="~/style/img/help2_16.png" EnableRoundedCorners="true" Animation="Fade" ShowCloseButton="False" Overlay="True" Opacity="95" KeepOnMouseOver="False" runat="server" RenderMode="Auto">
        <ContentTemplate>
            <telerik:RadButton ID="rbt_Yes" Text="Yes" CommandName="Yes" ButtonType="StandardButton" width="100px" Font-Bold="true" Icon-PrimaryIconCssClass="rbOk" Icon-PrimaryIconTop="6px" runat="server" RenderMode="Auto" />
        </ContentTemplate>
    </telerik:RadNotification>
 
......


Any ideas on this?

Kind regards,

Erik
Misho
Telerik team
 answered on 15 Apr 2014
1 answer
179 views
i want use htmlchart in my asp.net project i use VS 2012 and i wrote below code
but DataFieldX and DataFieldY not support in my page and when i open page i see Parser Error


<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
</telerik:RadStyleSheetManager>

<TooltipsAppearance BackgroundColor="White" DataFormatString="{1}% in {0} minutes"></TooltipsAppearance>
<LabelsAppearance Visible="false">
</LabelsAppearance>
</telerik:ScatterLineSeries>
<telerik:ScatterLineSeries Name="1.6C" DataFieldX="ChargeTime16C" DataFieldY="ChargeCurrent16C">
<TooltipsAppearance BackgroundColor="White" DataFormatString="{1}% in {0} minutes"></TooltipsAppearance>
<LabelsAppearance Visible="false">
</LabelsAppearance>
</telerik:ScatterLineSeries>
<telerik:ScatterLineSeries Name="3.1C" DataFieldX="ChargeTime31C" DataFieldY="ChargeCurrent31C">
<TooltipsAppearance BackgroundColor="White" DataFormatString="{1}% in {0} minutes"></TooltipsAppearance>
<LabelsAppearance Visible="false">
</LabelsAppearance>
</telerik:ScatterLineSeries>
</Series>
<XAxis>
<LabelsAppearance DataFormatString="{0}m" />
<TitleAppearance Text="Time" />
</XAxis>
<YAxis MaxValue="100">
<LabelsAppearance DataFormatString="{0}%" />
<TitleAppearance Text="Charge" />
</YAxis>
</PlotArea>
<ChartTitle Text="Charge current vs. charge time">
</ChartTitle>
</telerik:RadHtmlChart>
</div>





Danail Vasilev
Telerik team
 answered on 15 Apr 2014
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?