Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
186 views
The 'Columns' property on all my RadInputBox's are no longer working. I have just upgraded to the latest version. I have a huge application and cannot override per page. All the text boxes on the page are now the same size. What do I need to do in order to have the 'columns' property working again.

Thanks,
Susan
Princy
Top achievements
Rank 2
 answered on 28 Jan 2013
1 answer
681 views
Hi, everybody!
I have a problem. When I click cell in radgrid,I want to call a function in codebehind and set value to this function. When selected row, I had cell value, but I can't call fuction in code behind.
Have you any ideas?
Thanks!
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BCKD9.ascx.cs" Inherits="BCKD_Web.Control.BCKD9" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
          var maNV = null;
          function rowSelected(sender, args) {           
            var MasterTableView = sender.get_masterTableView();
            var row = MasterTableView.get_selectedItems()[0];          
            maNV = MasterTableView.getCellByColumnUniqueName(row, "MA_DV");            
            var strMA_CTO = maNV.innerHTML;           
            alert(strMA_CTO);                    
        }           
        
    </script>
</telerik:RadCodeBlock>
<div style="width: 100%; height: 100%">
    <table style="width: 100%; height: 100%">
        <tr style="width: 100%; height: 100%">
            <td style="width:100%; height: 100%">
                <telerik:RadGrid ID="rgdBieu8" runat="server" GridLines="None"
                    AutoGenerateColumns="False" ShowFooter="true"
                    AllowMultiRowSelection="True" Skin="Windows7"
                    onitemevent="rgdBieu8_ItemEvent">
                    <MasterTableView ClientDataKeyNames="MA_DV" Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn HeaderText="Mã đơn vị" DataField="MA_DV" UniqueName="MA_DV"
                                HeaderStyle-Width="10%">
                                <HeaderStyle Width="10%" HorizontalAlign="Center" Font-Bold="True"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Tên đơn vị" DataField="TEN_DV" UniqueName="TEN_DV" FooterText="Tổng"
                                HeaderStyle-Width="20%">
                                <HeaderStyle Width="20%" HorizontalAlign="Center" Font-Bold="True"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Left" Font-Underline="true"/>
                                <FooterStyle HorizontalAlign="Left" Font-Bold="true"/>
                            </telerik:GridBoundColumn>                                          
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="true" EnableRowHoverStyle="true">
                        <Selecting AllowRowSelect="true" />
                        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                        <ClientEvents OnRowSelected="rowSelected" />
                    </ClientSettings>
                </telerik:RadGrid>
            </td>
        </tr>
    </table>
</div>
Shinu
Top achievements
Rank 2
 answered on 28 Jan 2013
1 answer
88 views
Hi is there a technique to overstrike the contents of cell when exporting to excel using excelml format? 

I see it's fairly simply to set the text to bold or underline but have not found/figured out a way to set overstrike.

Any help would be appreciated.

Thanks,
Dan
Princy
Top achievements
Rank 2
 answered on 28 Jan 2013
1 answer
90 views
Hi
i use the raddateimout obeject in page aspx.
this is my code:
<telerik:RadDateInput ID="Datanascita" Runat="server" DateFormat="dd/MM/yyyy"
DisplayDateFormat="dd/MM/yyyy" EmptyMessage="Data nascita (es. 01/01/2000)" Skin="" Width="200"
Font-Italic="True" Font-Names="Verdana" Height="22px">
<EmptyMessageStyle ForeColor="Gray" Font-Italic="True" Font-Names="Verdana" />
<HoveredStyle Font-Italic="True" Font-Names="Verdana" ForeColor="#993300" />
</telerik:RadDateInput>

but i've two problems.

1) when i write into raddateinput for example 01122012 or 01/12/2012 and i press button tab keyboard, the radcontrol change the dimension and dont format date
2) when I save the data in the database, the value wtrire into radcontrol dont see, i see only emptymessage.

why?
Angel Petrov
Telerik team
 answered on 28 Jan 2013
3 answers
118 views
Hi,
i use the radautocompletebox with a raddecorator because i would that the radautocompletebox has round edges. But if if I on property "skin" take off the default value, nothing happens, why?
Kate
Telerik team
 answered on 28 Jan 2013
1 answer
453 views
Hi,
Could please anyone tell me how I can change a column format in Export to CSV. In my grid I have some columns where I am displaying date as text. On Export to Excel it shows the date (as text) exactly as it is in the grid (23 jan 2013) but when I do the Export to CSV it changes the text type date to a different formt (23-jan-13). Could please anyone tell me how I can change the Export to CSV format so than I can display my date text same as Export to Excel format which is 23 jan 2013.
Regards,  
Kostadin
Telerik team
 answered on 28 Jan 2013
1 answer
45 views
I am using "telerik:RadTabStrip" control in the ascx (user control) file. I am created 2 tabs. In the first tab I have displayed a data and used some java script functions. When I executing the page I am getting java script undefined error. Please help me to resolve the issue. Thanks in advance.

Nencho
Telerik team
 answered on 28 Jan 2013
1 answer
332 views
I am using telerik:RadAsyncUpload ,in upload button click in this line

 file.SaveAs("D:\\Uploaded_Files\\" + newName + file.GetExtension());
Im getting the error "The process cannot access the file because it is being used by another process. telerik rad file upload"
Please help me.
protected void btn_Upload_Click(object sender, EventArgs e)
        {
            foreach (UploadedFile file in RadAsyncUpload_Lead_File.UploadedFiles)
            {
                byte[] bytes = new byte[file.ContentLength];
                file.InputStream.Read(bytes, 0, file.ContentLength);
                string name = file.GetName();
                RadAsyncUpload_Lead_File.TargetFolder = @"D:\Uploaded_Files\";
                string newName = "newName";
                file.SaveAs("D:\\Uploaded_Files\\" + newName + file.GetExtension());
                
                //files.Add(file);
            }
        }
Plamen
Telerik team
 answered on 28 Jan 2013
5 answers
91 views
Hi,
 
I am using TreeList with 2 groupings (and more than 15000 records), everything works fine but sometimes I get yellow screen error while loading records. Please help because I am not able to rectify any reason and moreover  I dont have any null values in database.
Below are the errors which I get :

Server Error in '/' Application.
--------------------------------------------------------------------------------

Value cannot be null.
Parameter name: source
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: source

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Linq.Enumerable.Where(IEnumerable`1 source, Func`2 predicate) +2719903
   Telerik.Web.UI.RadTreeList.CalculateAggregates(TreeListColumnsCollection Columns) +128
   Telerik.Web.UI.RadTreeList.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1910
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
   Telerik.Web.UI.RadTreeList.PerformDataBinding(IEnumerable data) +2683
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.RadTreeList.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +201
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
   System.Web.UI.Control.DataBind() +15
   CorpFGBillingThree.afg_invoice_views_list_Telerik.Page_Load(Object sender, EventArgs e) +1756
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

 

---------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:
System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
  Telerik.Web.UI.RadTreeList.<CalculateAggregates>b__17(KeyValuePair`2 a) +4
  System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +2060786
  System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +406
  System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
  Telerik.Web.UI.RadTreeList.CalculateAggregates(TreeListColumnsCollection Columns) +217
  Telerik.Web.UI.RadTreeList.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1910
  System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
  Telerik.Web.UI.RadTreeList.PerformDataBinding(IEnumerable data) +2683
  System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
  System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
  System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
  System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
  Telerik.Web.UI.RadTreeList.DataBind() +17
  System.Web.UI.Control.DataBindChildren() +201
  System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
  System.Web.UI.Control.DataBind() +15
  System.Web.UI.Control.DataBindChildren() +201
  System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
  System.Web.UI.Control.DataBind() +15
  System.Web.UI.Control.DataBindChildren() +201
  System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
  System.Web.UI.Control.DataBind() +15
  CorpFGBillingThree.afg_invoice_views_list_Telerik.Page_Load(Object sender, EventArgs e) +1756
  System.Web.UI.Control.OnLoad(EventArgs e) +91
  System.Web.UI.Control.LoadRecursive() +74
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

 
 ---------------

Server Error in '/' Application.


Collection was modified; enumeration operation may not execute.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



Stack Trace:


[InvalidOperationException: Collection was modified; enumeration operation may not execute.]
  System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +52
  System.Collections.Generic.Enumerator.MoveNext() +9592677
  System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +198
  System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +406
  System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
  Telerik.Web.UI.RadTreeList.CalculateAggregates(TreeListColumnsCollection Columns) +217
  Telerik.Web.UI.RadTreeList.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +1910
  System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
  Telerik.Web.UI.RadTreeList.PerformDataBinding(IEnumerable data) +2683
  System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
  System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
  System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
  System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
  Telerik.Web.UI.RadTreeList.DataBind() +17
  System.Web.UI.Control.DataBindChildren() +201
  System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
  System.Web.UI.Control.DataBind() +15
  System.Web.UI.Control.DataBindChildren() +201
  System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
  System.Web.UI.Control.DataBind() +15
  System.Web.UI.Control.DataBindChildren() +201
  System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
  System.Web.UI.Control.DataBind() +15
  CorpFGBillingThree.afg_invoice_views_list_Telerik.Page_Load(Object sender, EventArgs e) +1756
  System.Web.UI.Control.OnLoad(EventArgs e) +91
  System.Web.UI.Control.LoadRecursive() +74
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

 
 
 

 
Pavlina
Telerik team
 answered on 28 Jan 2013
3 answers
574 views
I'm using telerik radgrid view.I have grid view with check boxes.Check boxes are insert to the grid using edit item template. I want to select current row when i'm checking check box.I try to find a solution.but still didn't found solution to my problem. Any inputs will be appreciated and welcome.Thanks
Shinu
Top achievements
Rank 2
 answered on 28 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?