Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
Hallo Telerik Team,

if i'm uploading with the AsyncUpload, i'm able to check the preview Option of the FileDialog to see, what i'm about to upload.

Is it possible to set this option as default behavier for every upload on this page?

Thanks a lot!
Hristo Valyavicharski
Telerik team
 answered on 25 Jun 2013
3 answers
174 views
Hello... so I'm struggling with something here. I really want to manually "start" the upload process, so I am trying to use ManualUpload=true. As I understand it though, this takes away the advantage of using SL or Flash. Why was this done? Why do both of those have to be automatic all of the time?

At any rate, the problem I have now is that whenever I am in Manual mode, I have no progress (either inline progress or progress using the RadProgressArea). When I simply flip to automatic mode, progress works fine.

Any ideas?

Thanks,
-Brian

The following code works fine with ManualUpload false, but not with Manual Upload true:

<telerik:RadAsyncUpload ID="AsyncUpload1" 
                            ClientIDMode="Static"
                            MultipleFileSelection="Disabled"
                            ManualUpload="true"
                            UploadedFilesRendering="BelowFileInput" 
                            InputSize="50"
                            OnClientFileSelected="AsyncUpload1_OnClientFileSelected"
                            UseApplicationPoolImpersonation="true"
                            runat="server">
                            <Localization Select="Select File" />
                        </telerik:RadAsyncUpload>
Brian Azzi
Top achievements
Rank 2
 answered on 25 Jun 2013
2 answers
262 views
hi

i need help i had a radmenu and i am dynamically adding the radmenuitems (each has subitems) but i need to sort the items into alphabetical order and i cant find any working way to do it.

i have tried both articles found and neither work when you are working with radmenuitems that also have sub items.

can anyone suggest a way of sorting radmenuitems inside a radmenuitem

i cant sort the items before i put them in due to data structure constraints.

thanks alot.,

Peter
Top achievements
Rank 1
 answered on 25 Jun 2013
6 answers
303 views
I have a page with several RadEditors and also RadTabStrip with RadPageViews.

I want paste plain text to be the default for all editors so I have added the following JavaScript to all RadEditor OnClientLoad events.
function OnClientLoad(editor, args) {
var element = document.all ? editor.get_document().body : editor.get_document();
$telerik.addExternalHandler(element, "paste", function (e) {
editor.fire("PastePlainText");
if (e.preventDefault) e.preventDefault();
if (e.stopPropagation) e.stopPropagation();
return false;
});
}

Problem is that this only works if the RadEditor is outside the TabString/PageView or in the first tab -- if it's in another tab the code doesn't work.

Is there a solution to this problem?
Vessy
Telerik team
 answered on 25 Jun 2013
1 answer
120 views
this multiselect works great however - many complaints about the "flashing" or "postbacks" each time a row is "selected" or tagged.
is there a way to do this on the client-side without the "Postback" each time?
thanks again
rik

 

 

<telerik:RadGrid ID="ReleaseableItemsRadGrid" runat="server" AllowPaging="true" AllowSorting="false"

 

 

 

OnNeedDataSource="ReleaseableItemsRadGrid_NeedDataSource" EnableLinqExpressions="false"

 

 

 

Width="2100px" AutoGenerateColumns="false" Skin="WebBlue" AllowFilteringByColumn="false" AllowMultiRowSelection="true"

 

 

 

OnItemDataBound="ReleaseableItemsRadGrid_ItemDataBound" AllowCustomPaging="false" OnItemCreated="ReleaseableItemsRadGrid_Created"

 

 

 

PageSize="15">

 


 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="20px" UniqueName="SelectionCheckBoxCell"

 

 

 

ItemStyle-HorizontalAlign="Left" ItemStyle-Width="20px" ItemStyle-Wrap="false"

 

 

 

ItemStyle-VerticalAlign="Middle">

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox ID="RowSelectionCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="CheckBoxRowSelection" />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="40px" UniqueName="QtyInColumn"

 

 

 

ItemStyle-HorizontalAlign="Left" ItemStyle-Width="40px" HeaderText="Qty Rel">

 

 

 

<ItemTemplate>

 

 

 

<telerik:RadTextBox ID="QuantityInGridTextBox" runat="server" Width="30px" CssClass="textbox"

 

 

 

Skin="WebBlue" AutoPostBack="true" OnTextChanged="Ck_Qty" />

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

</

 

 

Columns>

 




 

 

protected void ReleaseableItemsRadGrid_Created(object sender, GridItemEventArgs e)

 

{

 

 

if (e.Item is GridDataItem)

 

{

e.Item.PreRender +=

 

new EventHandler(ReleaseableItemsRadGrid_ItemPreRender);

 

}

}

 

 

private void ReleaseableItemsRadGrid_ItemPreRender(object sender, EventArgs e)

 

{

((sender

 

as GridDataItem)["SelectionCheckBoxCell"].FindControl("RowSelectionCheckBox") as CheckBox).Checked = (sender as GridDataItem).Selected;

 

}



Princy
Top achievements
Rank 2
 answered on 25 Jun 2013
5 answers
177 views

I had enabled checkbox feature in radlistbox,
i had checked selected item in Source Listbox, but the transfer button still disable.
i need to click either row in SourceListbox, and then the transfer button will be enable.

how can i simply checked the checkbox and then click transfer button ? thanks

     <table>
           <tr>
 
<td>
Unselect
<br />
<telerik:RadListBox runat="server" ID="RadListBox_unselect" Height="200px" Width="230px"
    AllowTransfer="True" TransferToID="RadListBox_select"
         AutoPostBack="True" CheckBoxes="True"
        style="top: 0px; left: 0px" DataSourceID="ODS_Unselect"
        DataTextField="employee_display_name" DataValueField="employee_id" OnClientTransferring="clientTransfering">
 
</telerik:RadListBox>
    <asp:ObjectDataSource ID="ODS_Unselect" runat="server"
        SelectMethod="GetEmployeeArrayByListByCourseID" TypeName="LRDB">
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="id" SessionField="EmpList"
                Type="String" />
        <asp:QueryStringParameter Name="CID" QueryStringField="CourseID"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
               </td>
<td></td>
<td>
Selected
<br />   
<telerik:RadListBox runat="server" ID="RadListBox_select" Height="200px"
        Width="200px" TransferToID="RadListBox_unselect"
         AutoPostBack="True" CheckBoxes="True"              
        style="top: 0px; left: 0px">   
</telerik:RadListBox>
    </td>
</tr>
</table>
Shinu
Top achievements
Rank 2
 answered on 25 Jun 2013
1 answer
98 views
Hi,
       I often have the error(Error Creating Control - RadGrid1Could not load file or assembly 'Telerik.Web.UI, Version=2013.1.220.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.) .When I use the rad grid control,But the control is showing in the browser when i run the application.Please give me the solution.


Thanks,
Arun.
Viktor Tachev
Telerik team
 answered on 25 Jun 2013
4 answers
742 views
Hello sir/mam

  I have radnumeric textboxes with autopostback false on a page .
  i want to assign total of two textboxes to third textbox , but the textchange event does not fires.

  it fires when autopostback of textbox is set to true and the page gets refresh each time i type in textbox and it also take some time because pageload gets call

 please help me to solve this problem.
  
  
Kishor
Top achievements
Rank 2
 answered on 25 Jun 2013
2 answers
62 views
Hi,
A time ago i have updated my project with new Q1 2013, came from Q2 2012. After this version i have a strange bug with all controls. I have a big collection with radcontrols in one page (grid, toolbar, combo, treeview, tabstrip, windows etc), after some update/add/delete of my data in several radwindows, there will a huge error occur in your libraries but i cannot debug it. 

What i will get after this error: 
- All buttons in toolbar will lost their visibility state
- RadMenu will be hidden
- All columns in RadGrid will lost their widths
- Some combos will lost their values (which were bound in page load)

When this is occured, forcing a simple postback will occur a 500 server error without any message....
Have tried to turn off the RadCompression and RadAjax but with no result.

It seems RadScriptManager.registerclientscript will causes this, replacing this with normal clientscript have fixed my problem for a big part. But when i upload a image with async upload module will cause this again.

Happens with Q2 2013 as well, i'm working in Visual Studio 2012. 

Do you know this problem?
Plamen
Telerik team
 answered on 25 Jun 2013
4 answers
296 views
I am using RadGrid with excel spreadsheet as the datasource, the data is displaying correctly in my grid.
But, while Adding new record/inserting data to excel spreadheet. I am not sure how to do that.
I have seen few examples but they are all showing exporting data to excel. But my requirement is just to add data to speadsheet from RadGrid

I am pulling data from the spreadsheet using the following code
   

 

Protected Sub uxRGMembersCleanup_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles uxRGMembersCleanup.NeedDataSource
      Dim cnstr As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & Server.MapPath("~/App_Data/Test_Members.xlsx") & ";" & "Extended Properties=Excel 12.0"
      Dim oledbConn As New OleDbConnection(cnstr)
      Dim strSQL As String = "SELECT * FROM [Test_Members$]"
      Dim cmd As New OleDbCommand(strSQL, oledbConn)
      Dim ds As New DataSet()
      Dim da As New OleDbDataAdapter(cmd)
      da.Fill(ds)
      uxRGMembersCleanup.DataSource = ds
      'uxRGMembersCleanup.DataBind()
  End Sub

 

 

Daniel
Telerik team
 answered on 25 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?