Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
is there anyway to determine the Displayed Image Data Key?


Pavlina
Telerik team
 answered on 16 Apr 2014
4 answers
94 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
224 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
231 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
40 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
210 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
205 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
158 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
2 answers
185 views
Hi Telerik team,

I am a newbie programmer and have been using Telerik since a couple of months now.

I am trying to implement the follwing process:

1. User uploads an Image on RadImageEditor using AsyncUpload
2. User crops the image
3. User clicks on CreateProfile button on the page.
4. The cropped image should be stored in the database.

Problem: The uncropped version of the image gets stored. I think I am doing something wrong. Would be great if you could help

Code:

.aspx

<telerik:RadImageEditor  ID="ImageEditor_CreateNewUser"   CanvasMode="No" runat="server" Height="500px" Width="700px"     OnImageLoading="ImageEditor_CreateDonor_ImageLoading" OnClientCommandExecuting="OnClientCommandExecuting">
</telerik:RadImageEditor>

<asp:Button ID="BtnDonorSave" Text="Create Donor" ValidationGroup="CreateDonorSubmit" runat="server" OnClick="BtnDonorSave_Click" />

  .aspx.cs - 

        protected void ImageEditor_CreateNewUser_ImageLoading(object sender, ImageEditorLoadingEventArgs args)
        {
            if (!Object.Equals(Context.Cache.Get(Session.SessionID + "UploadedFile"), null))
           {
                using (EditableImage image = new EditableImage((MemoryStream)Context.Cache.Get(Session.SessionID + "UploadedFile")))
                {
                    args.Image = image.Clone();
                    args.Cancel = true;
                }
           }
        }
 protected void BtnDonorSave_Click(object sender, EventArgs e)
        {
             EditableImage ei = ImageEditor_CreateDonor.GetEditableImage();
            MemoryStream s = new MemoryStream();
            ei.Image.Save(s, ei.RawFormat);
            byte[] imgData = s.ToArray();

            db.CreateUser(userId, imgData);

}
















Vessy
Telerik team
 answered on 15 Apr 2014
3 answers
160 views
where can I download the latest version of italian resx file?

Thanks!
Vessy
Telerik team
 answered on 15 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?