Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 views
Hello
Is it possible to have multiple Delimiter Values in RadAutoCompleteBox?
I want the comma and semicolon characters to cause the token to be added.
Nencho
Telerik team
 answered on 07 Mar 2013
1 answer
176 views
Hi...

I am new to telerik, facing problem with RadAsyncUpload and RadBinaryImage.
I want to show the thumbnail size preview of selected image from RadAsyncUpload as soon as upload is complete.
Preview image should be seen without any button click.
For showing preview I use RadBinaryImage but not able achieve this.

So please give the sample working example or anything so that i can complete this.

Thanks in advance
Shinu
Top achievements
Rank 2
 answered on 07 Mar 2013
2 answers
179 views
Hello,

Iam using a radgrid with detailtables in it.
Everythings works perfectly, data are shown correctly.
Now i want to resize the whole grid to fit.

I use this javascript:

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
    function pageLoad() {
        var grid = $find("<%= RadGrid1.ClientID %>");
        var columns = grid.get_masterTableView().get_columns();
        for (var i = 0; i < columns.length; i++) {
            columns[i].resizeToFit();
        }
    }
 </script>
</telerik:RadCodeBlock>

Now the grid (Mastertable) is resize to fit, but the detailtables not.

What can i do to use resizeToFit() on the detailtables?

Sorry because of my english ;) 
Manuel
Top achievements
Rank 1
 answered on 07 Mar 2013
4 answers
533 views
Hi,

I am rebinding data grind on text changed event. When I changed the text in the text box, the data in the data grid need to reload. If I change the text in the text box which is in first row, the grid is reloading but the text box is missing on first row. But I am not getting issues when I changed the text in other rows.

I tried both data grid and rad grid.

I am using the below code,

.aspx Page Code

<rad:RadCodeBlock ID="RadCodeBlock1" runat="server">
 

<asp:datagrid id="Datagrid1" runat="server" Width="100%" AutoGenerateColumns="False" BorderColor="#B6B9BE" BorderWidth="1px" BorderStyle="Solid">
--Bound columns--
<asp:TemplateColumn
<ItemTemplate>

 <asp:TextBox ID="txt_QPercent" runat="server" Width="100%" Text='<%#Container.DataItem("RevisedPercent")%>' onkeydown="return jsDecimals(event,this.value);" MaxLength="3" onchange="SavePercent(this);" OnTextChanged="ReLoadGrid" AutoPostBack="True"></asp:TextBox>

</asp:TemplateColumn> 

</ItemTemplate>

 

</asp:datagrid>


</rad:RadCodeBlock>

<rad:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

<AjaxSettings>

 

<rad:AjaxSetting AjaxControlID="txt_QPercent"> 
<UpdatedControls

<rad:AjaxUpdatedControl ControlID="txt_QPercent" />

<rad:AjaxUpdatedControl ControlID="DgQAccounts" />

 
</UpdatedControls>

 

 </AjaxSettings>

 

</rad:RadAjaxManager>

 


Code Behind - aspx.vb

Public

 

Sub ReLoadGrid(ByVal sender As Object, ByVal e As System.EventArgs)

 

BindGrid(ID)--Binding the data in the function

 

End Sub

 


Thanks,
Durga Rao
Durga
Top achievements
Rank 1
 answered on 07 Mar 2013
3 answers
129 views
Hi guys,

I have a grid which allows filtering by columns. I need the filter to perform a postback after a filter has been applied. Is there any way to do it?

I have tried using AutoPostBackOnFilter="true", but it performs the postback before the filter has been applied in the client. The reason for which I need this is to enable or disable some radbuttons depending on the results of the filter; for example, if there are no rows once the filter has been applied, I want to disable the 'Edit' radbutton.

I have tried to do it client side, using the onGridCreated event:

var usuarioEsSupervisor;
        function afterGridCreation() {
// Called from onGridCreated
                // Mostrar el número de registros que hay en el grid

                var grid = $find("<%= gridIncidencias.ClientID %>");
                var MasterTable = grid.get_masterTableView();
                var Rows = MasterTable.get_dataItems();
                var filas = Rows.length;

                var etiqueta = $get("<%=lblNumberOfIssues.ClientID %>");
                etiqueta.innerHTML = filas;


                // Desactivar los botones de eliminar y editar si el grid no contiene registros
                var botonDelete = $find("<%=btnDeleteIssue.ClientID %>");
                var botonDetails = $find("<%=btnEditIssue.ClientID %>");

                if (filas > 0) {

                    if (usuarioEsSupervisor) {
                        botonDelete.set_enabled(true);
                    }
                    botonDetails.set_enabled(true);
                }
        }

 However, for some reason that I dont know, the vars botonDelete and botonDetails get null value and, therefore, I cannot reach the buttons.

Any idea please? Thank you.
Eyup
Telerik team
 answered on 07 Mar 2013
3 answers
96 views
hi,
I need to change dynamically cellStyle of a PivotGridAggregateField 
but the properties it's readonly

how can I do this ?

var rowField = new PivotGridAggregateField();
RadPivotGrid1.Fields.Add(rowField);
rowField.Aggregate = PivotGridAggregate.Sum;
rowField.DataFormatString = "{0:C}";
rowField.TotalFormatString = "{0:C}";
var style = new Style();
style.CssClass = "";
//rowField.CellStyle = style;
thanks


comgiu
Top achievements
Rank 2
 answered on 07 Mar 2013
1 answer
195 views
Hello,
 
I have an AsyncUpload on my page. I browse my page, click [Select], choose one or more files to upload, and click [Open]. At that point, each selected file appears within AsyncUpload, and each file displays its own individual progressbar. This, of course, is the default behavior of AsyncUpload.
 
The progressbar that appears for each file looks like it has a height of 1 or 2px. I would like to increase the height of the progressbar that appears.
 
I've added a style.css and I am using this to control some of the AsyncUpload format. For example, the following will cause each selected file name to appear with blue text:
 

.RadAsyncUpload { color:Blue; }

 
To try to change the height of the progressbar, I added the following to my CSS:
 

.RadAsyncUpload .ruProgress .ruBar { height:10px; }

 
I have tried several variations of this, but have been unsuccessful at changing the bar's height. How do I change the height of the progressbar?
 
Thank you
Princy
Top achievements
Rank 2
 answered on 07 Mar 2013
2 answers
125 views
Upgraded to (v.2013.1.220.40) and now my code that used to work doesn't.  Anyone else have this problem, or can offer some suggestions?

Protected Sub grdSearch_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles grdSearch.ItemDataBound

        If TypeOf e.Item Is GridDataItem Then
            Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)

Dim sID As String = dataItem("ID").Text     ***has value of "nbsp;" since upgrade. It used to give me a legit value***

        End If

    End Sub

            <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="False" 
                SortExpression="ID" UniqueName="ID" Visible="False">
                <ItemStyle Wrap="False" />
            </telerik:GridBoundColumn>

Thanks,
Andrew

Eyup
Telerik team
 answered on 07 Mar 2013
3 answers
334 views
Hi,

I am using RadAutoCompleteBox (Q3 2012 SP2) & Binding it with WebMethod like:
<telerik:RadAutoCompleteBox ID="rdtxt" runat="server" Width="90%" EmptyMessage="enter country to search" InputType="Token" Filter="StartsWith" AllowCustomEntry="true">
<TextSettings SelectionMode="Single" />
<WebServiceSettings Method="GetCountries" Path="frmPage1.aspx" />
</telerik:RadAutoCompleteBox>
It works fine. Fetching countries from server method GetCountries().

Now, I want to fetch State for that selected/entered country.
How to pass that country to WebMethod of GetState(object countryData) ?

Plz reply asap.
Nencho
Telerik team
 answered on 07 Mar 2013
5 answers
324 views
Hi,

I am binding data to grid from object :

Grid Declaration :
<telerik:RadGrid ID="TasksAssignedGrid" runat="server" AllowFilteringByColumn="True"
               AllowMultiRowSelection="true" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="false"
               GridLines="None" Skin="Metro" ValidationSettings-EnableValidation="true" ClientSettings-AllowColumnsReorder="true"
               OnExcelMLExportStylesCreated="TasksAssignedGrid_ExcelMLExportStylesCreated" OnExcelMLExportRowCreated="TasksAssignedGrid_ExcelMLExportRowCreated">
 
<MasterTableView DataKeyNames="TaskNo" AllowMultiColumnSorting="true">
                   <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>


I have  RadAjaxManager :
     
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
      <AjaxSettings>
          <telerik:AjaxSetting AjaxControlID="TasksAssignedGrid">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="TasksAssignedGrid" />
              </UpdatedControls>
          </telerik:AjaxSetting>
      </AjaxSettings>
  </telerik:RadAjaxManager>

I have total records :


If I click on paging then I am getting this error :

Note : I am not getting this error if records count less than 100.

Please help me to solve this problem .. Thank you in advance...
Vasil
Telerik team
 answered on 07 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?