Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
260 views

Hi!

Is there anyway to have a button on the editor that when clicked brings up a browse of the file system, and when image is selected the image is both uploaded and inserted into the markup?  Is there an easy way to do this? Or would I need make a Custom Dialog for the editor?

Thanks!
Rumen
Telerik team
 answered on 27 Aug 2012
1 answer
79 views
We've recently upgraded to .724 of Telerik and now an empty grid's text appears cut off and wrapped to about 7 rows?
This happens regardless if it's custom or the default text. I've included an attachment to further illustrate my point.

It's as though the text is trying to fill a column that is 10 px wide and ends up wrapping? Is this an issue with the latest release?

Thanks,
Jay

Here's my grid markup code:
<telerik:RadGrid ID="grdMarkups" AllowMultiRowSelection="false" PagerStyle-AlwaysVisible="false"
          PagerStyle-Mode="NextPrevNumericAndAdvanced" runat="server" Width="99.9%" Height="99.9%"
          AllowPaging="false" AllowSorting="false" AutoGenerateColumns="False" GridLines="None">
          <MasterTableView AllowPaging="false" NoMasterRecordsText="This document does not currently have any markups associated with this version">
              <Columns>
                  <telerik:GridBoundColumn DataField="Item_Name" HeaderText="Name" Visible="true" ItemStyle-Wrap="true">
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn DataField="Last_Edit" HeaderText="Last Edit" HeaderStyle-Width="25%"
                      ItemStyle-CssClass="contactInfoXSmallNormal" ItemStyle-Wrap="true">
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn DataField="Original_Filename" HeaderText="Original File"
                      Visible="false" ItemStyle-Wrap="true" HeaderStyle-Width="15%">
                  </telerik:GridBoundColumn>
                  <telerik:GridHyperLinkColumn DataNavigateUrlFields="MarkupURL" UniqueName="Markup"
                      HeaderTooltip="Click to view more details about the document" HeaderText="View"
                      Text="View" Target="_blank" HeaderStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                      ItemStyle-HorizontalAlign="Center">
                  </telerik:GridHyperLinkColumn>
                  <telerik:GridTemplateColumn HeaderText="Download" UniqueName="Download" HeaderStyle-Width="11%"
                      HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="false">
                      <ItemTemplate>
                          <button value="Download" style="width: 90%" title="Download this document" class="contactInfoXXSmall"
                              type="button" onclick="downloadSingleDocument('<%# Eval("Id") %>');">
                              Download</button>
                      </ItemTemplate>
                  </telerik:GridTemplateColumn>
                  <telerik:GridTemplateColumn HeaderText="View" HeaderStyle-Width="5%" HeaderStyle-HorizontalAlign="Center"
                      ItemStyle-HorizontalAlign="Center" Visible="false">
                      <ItemTemplate>
                          <button value="View" style="width: 90%" title="View this document" class="contactInfoXXSmall"
                              onclick="viewSingleDocument('<%# Eval("Id") %>');">
                              View</button>
                      </ItemTemplate>
                  </telerik:GridTemplateColumn>
                  <telerik:GridBoundColumn DataField="Id" Visible="false">
                  </telerik:GridBoundColumn>
              </Columns>
          </MasterTableView>
          <ClientSettings EnableRowHoverStyle="false">
              <Selecting AllowRowSelect="true" />
              <Scrolling AllowScroll="true" UseStaticHeaders="true" />
          </ClientSettings>
      </telerik:RadGrid>
Radoslav
Telerik team
 answered on 27 Aug 2012
9 answers
212 views
hi,
I am using this code to change time value in javascript:

var timePicker = $find('<%= From_Time.ClientID %>');
timePicker.get_dateInput().set_value("01:00 PM");

but I got error says  timePicker  is null !
I have checked control ID, its correct, I don't know what is the problem 

help please !
Eyup
Telerik team
 answered on 27 Aug 2012
3 answers
121 views
Hi All,

I am using asp.net 2.0. 

How to populate the data from the controls to a rad grid without saving to database by clicking the add button. And later i want to add the values to database by clicking the save button.

Can any body help me out for this.

Regards,
Sandy
  
Princy
Top achievements
Rank 2
 answered on 27 Aug 2012
1 answer
79 views
Hi,

I am creating a StackedBar chart from the code behind, where each item on the Y axis is the name of a Customer, and the X values are the amount of invoices completed/outstanding today. Please see the attached screenshot for an example.

It's working well, except the labels for each item on the Y axis is a meaningless number (1-5). How can I get the label to be 'Name' property of each item?

Thanks - the code is below

IEnumerable<Invoice> invs = Invoice.GetTestInvoices(100);
var s = from i in invs
     group i by i.Name;
 
ChartSeries chtOutstanding = new ChartSeries("Outstanding", ChartSeriesType.StackedBar);
ChartSeries chtCompleted = new ChartSeries("Completed", ChartSeriesType.StackedBar);
chtOutstanding.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside;
chtCompleted.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside;
foreach (var item in s.OrderBy(a => a.Key))
{
    chtCompleted.AddItem(item.Where(a => a.Status == 1).Count());
    chtOutstanding.AddItem(item.Where(a => a.Status != 1).Count());
}
 
RadChart1.Series.Add(chtOutstanding);
RadChart1.Series.Add(chtCompleted);
Petar Marchev
Telerik team
 answered on 27 Aug 2012
1 answer
67 views
We have images stored in a database as blobs which we want to load on demand into a slideshow. Is it possible to use the BinaryImage control convert and display the images into the radrotator control from a memory stream?
If this isn't the correct approach, how would we go about creating this functionality?

Your help is very much appreciated!

Thanks,

Ben
Slav
Telerik team
 answered on 27 Aug 2012
13 answers
459 views
Hi,
I have multiple radAsyncUpload controls in one page with  radprogressarea control for each of them.I have also one radprogressmanager.
When a radAsyncUploadControl is uploading a file to the temporary folder then all the radprogressarea controls are displayed.
How I can limit that so when a file is uploaded only the relevant radprogressarea is displayed?

Thank you
Peter Filipov
Telerik team
 answered on 27 Aug 2012
4 answers
129 views
i have a radgrid with a gridattachmentcolumn column. the grid is bound to an entitydatasource having the 3 columns stipulated in the documentation - FileName, DataText, and Attachment, the last being a varbinary(max) column.
<telerik:GridAttachmentColumn AttachmentDataField="Attachment"
    AttachmentKeyFields="ItemID,ForeignKeyID,AttachmentID"
    DataSourceID="ItemAttachmentEntityDataSource" DataTextField="DataText"
    FileName="attachment" FileNameTextField="FileName"
    FilterControlAltText="Filter column column" HeaderText="Attachment"
    UniqueName="Attachment">
</telerik:GridAttachmentColumn>

when i click add new record, fill in the three columns, the text columns are inserted but not the attachment. i thought that the insert would be handled by the grid, yet all of the examples for gridattachmentcolumn i have seen include a prodigious amount of code to handle the insert. do i need to manually insert the data myself? if so, what is the point of the column type? which event would be the best one to write the code? i am handling the insertcommand so would hope there are no objections to doing it there.

if indeed i am required to manually insert the data, please update your documentation to stress this point. if radgrid can declaratively handle my scenario, are there any reasons why my insert is failing?


Andrey
Telerik team
 answered on 27 Aug 2012
2 answers
91 views
Hi,
I have used calendar control in my application. The purpose of the calendar is to display the list of events which are occurring on the selected date. Its working fine when user selects any date. But if someone navigate to next month, the whole control is getting disabled. After navigating no one can selects the date nor navigate to previous month. I have used update panel for for calendar control.
Please have a look at the code and let me know the solution of this issue.
<div>
        <asp:UpdatePanel ID="upCalendar" runat="server" UpdateMode="Always" >
            <ContentTemplate>
                <telerik:RadCalendar ID="rCal" runat="server" AutoPostBack="true" EnableMultiSelect="false"
                    FastNavigationStep="3" EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="true"
                    EnableMonthYearFastNavigation="true" DayNameFormat="Short" ShowRowHeaders="true" 
                    ShowOtherMonthsDays="false" Skin="Default" Width="298px" OnSelectionChanged="rCal_SelectionChanged"
                    EnableViewState="true">
                    <TitleStyle CssClass="CalendarTitleStyle" /><SelectedDayStyle CssClass="CalendarDaySelectedClass" /><DayOverStyle CssClass="CalendarDayOverClass" />
                </telerik:RadCalendar>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                rCal.RegisterWithScriptManager = false;
                rCal.RangeMinDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
                if (SelectedDateForSearch.HasValue)
                {
                    rCal.SelectedDate = SelectedDateForSearch.Value;
                    rCal.FocusedDate = SelectedDateForSearch.Value;
                }
             }
        }
 
 protected void rCal_SelectionChanged(object sender, Telerik.Web.UI.Calendar.SelectedDatesEventArgs e)
        {
            if (e.SelectedDates.Count > 0)
            {
                DateTime selectedDate = rCal.SelectedDate.Date;
                string url = "To any page"
                Response.Redirect(url);
            }
        }
Sagar
Top achievements
Rank 1
 answered on 27 Aug 2012
2 answers
107 views
Hello,

Could somebody help me ? What I have been trying to do is to show our users not just file name, but also file size information (ContentLength), when file is selected and uploaded...

It seems that from server side method there are just readonly properties about uploaded files. For example e.File.ContentLength (15423 bytes), etc...

protected void fileUploaded(object sender, FileUploadedEventArgs e)
{
   if (RadAsyncUpload1.UploadedFiles.Count > 0)
   {
   }
}

Because of this, I suppose, that it should be done from client side, but I don't know how.

For further information, please check the attachment.

Please help me to solve this issue.

Best regards

Vasssek
Vasssek
Top achievements
Rank 1
 answered on 27 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?