Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
571 views
So I am searching for a good example that shows the best way to change the order of columns on the server-side.  I have a grid that has some static columns defined in the ascx fileself.  Then I am using AutoGenerate to add a number of additional columns.  I want two of the static defined columns I create to be placed at the end (right).  For example, I have a custom Attachment column that needs to be placed last.  From the posts I read, it sounds like I should be using SwapColumns to do this.  It would really be nice if there were a MoveTo method instead of having to rely on Swapping columns down the list. 

Thanks, R
Eyup
Telerik team
 answered on 29 Jul 2013
2 answers
140 views
All of my Telerik Windows display like the picture attached, even alerts.  This happens in all browsers with all skins even using the most simplistic code.

Has anyone seen this?  Is there a CSS I need to include somewhere?  I can't figure out what I'm missing.

    <telerik:RadWindow ID="modalPopup" runat="server" Width="360px" Height="360px" Skin="Office2007">
  <ContentTemplate>
    <div style="padding: 10px; text-align: center;">
          <telerik:RadButton ID="rbToggleModality" Text="Toggle modality"
              AutoPostBack="false" runat="server" Height="65px" />
    </div>
    <p style="text-align: center;">
          RadWindow is designed with keyboard support in mind - try tabbing
          before and after removing the modal background. While the popup is modal
          you cannot focus the textarea, once the modality is removed the textarea will
          be the first thing to receive focus beause it has tabIndex=1.
    </p>
  </ContentTemplate>
</telerik:RadWindow>
Ken
Top achievements
Rank 1
 answered on 29 Jul 2013
2 answers
53 views

I have a radpanel bar that is used on the left side of the master page. We have some titles that are more than the width of the panel. Well when they go to a 2nd line, the highlighted part just goes over one row. Is there a way to make it go over both rows if the text word raps down to a 2nd line?

ttaylor29
Top achievements
Rank 1
 answered on 29 Jul 2013
9 answers
509 views
The title pretty much says it all.

I have a rad tab strip linked to a radmultipage consisting of 3 page views. The second page view contains a radfileexplorer.

The first time I click on the tab for the second page view, the control loads up just fine. If I click on a second tab and then come back, the control is malformed (missing buttons, not aligned, basically it looks like bad html).

If I remove the "RenderSelectedPageOnly" attribute or set it to false, then the FileExplorer control is always formed correctly.

I've also noticed this behavior with the RadFileEditor inside a dynamically loaded user control, but it is not as reproducable.

I am using the 2009.2.826.35 Telerik dll.

Anyone else seen this, or heard of this problem? I'm going to guess off the top of my head that maybe this is my fault caused by an unclosed tag someplace in my HTML(aspx page). But it seems odd that it would go away completely just by me changing one setting.

I also frequently have problems trying to view my pages through IE 8 without compatibility mode enabled. It's kind of sad really... any suggestions on where to go for tips on how to make this work?

Thanks

Dobromir
Telerik team
 answered on 29 Jul 2013
1 answer
121 views
Hi,
I'm noticing that in the application where I am using the ListBox control as well as on the demo site:
http://demos.telerik.com/aspnet-ajax/listbox/examples/overview/defaultcs.aspx

After an item is selected in the Listbox and then I try to press a letter key, in IE it will select the first item in the list that starts with the letter while in Chrome and Firefox nothing happens.  For example, in the demo site after Argentina is selected if you press the letter "c" Canada will be selected.

Is there anything I can do to get it to work in my application?

Thanks, Anton
Kate
Telerik team
 answered on 29 Jul 2013
2 answers
238 views
I am new to the telerik controls so pardon my ignorance.

I have an AutoComplete box bound in code behind to an list.  

When the webform loads I set the data souce. When i type a letter into the autocomplete box the form posts backs. 

This is my  code:

        If Not IsPostBack Then
            RadAutoCompleteBox1.DataSource = App.Clients.Items.Values.ToArray
            RadAutoCompleteBox1.DataBind()
        End If

If I remove it from the if condition the box works but the page posts back every key press. Is this how its supposed to work?

If so my problem, is this. I have a radcombobox and when a user selects an item, using AJAX and client side, the datasource of the autocomplete changes based on the selection in the radcombo.

However when the user type a character the entire page posts back and i get the following error.

"The Control DataSource(or DataSourceID) is not set"

What i figured out is when the page posts back the autocomplete no longer has a binding and throws the error.

I had this working using two combo boxes but i wanted to us the autocomplete in place of the second combo.

Intuitively this does not work like i would think it should. am i doing something wrong here?



Nencho
Telerik team
 answered on 29 Jul 2013
1 answer
458 views
Hello

I am using radasyncupload on the usercontrol that populates and saves the data using WCF from client side code. There is no postback to server.

Since now there is requirement to upload the file, I am using radasyncupload.  The idea behind that was to read the file from temporary folder from wcf hosted on the same server. However when I look at files it has some junk name and extension as I understand that on postback you move from temporary folder to target folder.

So how can I read the content as bytes from temporary folder. Is there any meta data that will point me to correct file?

Or is there a work around that I can get byte array on the client side and I can pass to wcf on my own. I tried onclientfileuploaded by it doesnot have property in fileinfo object that will give me bytes.

Regards
Manish
Hristo Valyavicharski
Telerik team
 answered on 29 Jul 2013
13 answers
315 views
I have two RadDatePickers.  When I select a date on the first one I need the MaxDate set to the selected date on the 2nd one.
The following code sets the MaxDate correctly

function dateSelected(sender, e) { 
   var dateString = e.get_newValue(); 
   var maxdate = new Date(dateString); 
   var postmarkdate = $find("<%= PostMarkDate.ClientID %>"); 
   postmarkdate.set_maxDate(maxdate); 

My error occurs when I set the date on the 1st picker to any date less than the current month and then I click the icon to popup the calendar for the second picker.  Whenever I do this I get a javascript popup with the error: "Date is out of range."

This occurs whether I type in the date or select one from the calendar.

As I said this does not happen if I select a date that falls in the current month.

This does not occur when I already have a date in the 2nd picker, only when it's empty.

The MaxDate is set correctly in the 2nd picker and the 2nd picker calendar that pops up is displaying the correct dates, it just throws the js error.

Whats the issue?

Thanks,

Rob T


Ashwini
Top achievements
Rank 1
 answered on 29 Jul 2013
6 answers
285 views
Hello,
I am having a strange issue with Export to Excel option.  It works for the first time and stopes working.  The only way I could make it work is refresh the page and try again.  Also all the other controls on the page stops posting back once I export once.  Following is my scenario. FYI, this does not happen in .NET Web App

Environment: SharePoint Foundation 2010
Type: Visual Webpart

 

 

<telerik:RadGrid ID="ReportRadGrid" runat="server" OnNeedDataSource="ReportsRadGrid_NeedDataSource" Skin="Sunset">

 

 

 

<MasterTableView TableLayout="Auto" CommandItemDisplay="Top" AllowPaging="true" AutoGenerateColumns="false" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true">

 

 

 

<CommandItemSettings ExportToExcelText="Export to Excel" ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" />

 

 

 

<CommandItemTemplate>

 

 

 

<div style="text-align:right">

 

 

 

<telerik:RadButton ID="ExportRadButton" Text="Export to Excel" runat="server" Skin="Sunset" OnClick="ExportRadButton_Click" />

 

 

 

</div>

 

 

 

 

</CommandItemTemplate>

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn DataField="Project_x0020_Name" HeaderText="Project Name" />

 

 

 

<telerik:GridBoundColumn DataField="Performing_x0020_Organization" HeaderText="Performing Organization" />

 

 

 

<telerik:GridBoundColumn DataField="Project_x0020_Sponser" HeaderText="Project Sponser" />

 

 

 

<telerik:GridBoundColumn DataField="Status" HeaderText="Status" />

 

 

 

<telerik:GridBoundColumn DataField="Status_x0020_Comments" HeaderText="Status Comments" />

 

 

 

<telerik:GridBoundColumn DataField="Risk_x0020_to_x0020_Project" HeaderText="Risk to Project" />

 

 

 

<telerik:GridBoundColumn DataField="Risk_x0020_Level" HeaderText="Risk Level" />

 

 

 

<telerik:GridBoundColumn DataField="Export_x0020_Date" HeaderText="Publish Date" DataFormatString="{0:MM/dd/yyyy}"/>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />

 

 

 

<ExportSettings HideStructureColumns="true" ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" />

 

 

 

</telerik:RadGrid>

 



 

 

protected void ExportRadButton_Click(object sender, EventArgs e)

 

 

{

 

 

 

this.ReportRadGrid.MasterTableView.ExportToExcel();

 

 

}

Please let me know if you need more details.

Thanks,
Bharath

Swati
Top achievements
Rank 1
 answered on 29 Jul 2013
1 answer
456 views
Hi

I have a doubt. When we are overriding a default style using CSS ! Important, its applied to all the respective controls. How can we avoid this such as I want to apply a hovered style for only one textbox in my page?

Any input to tackle this will be helpful
Katya
Shinu
Top achievements
Rank 2
 answered on 29 Jul 2013
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?