Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
Hi,

I have a grid I am converting from an Infragistics WebGrid to a Telerik RadGrid.  It is a relatively simple grid.  I need to submit the rows after an entire form is filled out.  There can be one to many rows.  I have tried this in a sub that gets called when entire form is submitted:

  For Each row As GridDataItem In RadGrid1.MasterTableView.Items

but it always returns false

Am I doing this correctly?  Does it actually have to be done as a grid event somehow?  How would I do that if I don't want to submit it until a user clicks an asp submit button.  I'm using vb.net by the way.

Thanks for your help!

Julie
Eyup
Telerik team
 answered on 02 Feb 2015
7 answers
247 views
Hi,

I have a question about the RadGrid when you use both paging and grouping. If all the groups are expanded it works fine. But if i collapse a couple of groups, the rowcount of the group are still counted as if they where expanded?

For instance if I have 5 groups with 10 rows each and a pagesize of 20. When I start the page all the groups are expanded, and the first page is shown with 2 groups of 10 rows each. That is good beacuse I want to show 20 rows on each page. But then if I have a "Collapse All"-button that I press, there is only 2 rows showing on my first page? The 2 groups collapsed is only 2 rows but is counted as if thay where expanded?

Is there any way to solve this? I want the page to show as much data as I have set in the pagesize.

This is my grid (I have tried both Client and Server GroupLoadMode):

 

 

<telerik:RadGrid ID="RadGridBuyWarrants" runat="server"

 

 

 

 

OnNeedDataSource="RadGridBuyWarrants_NeedDataSource" AutoGenerateColumns="false"

 

 

 

 

AllowSorting="true" AllowPaging="true" PageSize="20"

 

 

 

 

ShowGroupPanel="false" onitemcommand="RadGridBuyWarrants_ItemCommand"

 

 

 

 

onitemdatabound="RadGridBuyWarrants_ItemDataBound">

 

 

 

<PagerStyle Mode="NumericPages" />

 

 

 

 

<ClientSettings AllowGroupExpandCollapse="True" AllowDragToGroup="True" AllowColumnsReorder="True"/>

 

 

 

<MasterTableView Width="100%" GroupLoadMode="Server">

 


This is my expand/collapse all code:

 

 

foreach (GridItem item in RadGridBuyWarrants.MasterTableView.Controls[0].Controls)

 

 

{

 

 

 

if (item is GridGroupHeaderItem)

 

 

{

 

item.Expanded =

 

true;

 

 

}

 

}


Would be very greatful if anyone could help me solve this.
Pavlina
Telerik team
 answered on 02 Feb 2015
1 answer
119 views
Hi,

I have setting RadScritManager and RadTabStrip controls at the ASP.NET page. I just have added following codes to the web user control under RabTableStrip for word document by using Word API library. However, I received an error that said

response.Clear();
response.AddHeader("content-disposition", "inline; filename=\"" + "VADS_Cost_Estimate" + ".doc\"");
response.ContentType = "application/msword";
doc.SaveAs(response.OutputStream);
response.end();

Please let me know if you assit me with that.

Thanks,
Chi Ming 

 

 

 

 

​
Boyan Dimitrov
Telerik team
 answered on 02 Feb 2015
5 answers
109 views
RadEditor  v.21014.3.1024.40

I am having an issue with the Text Align Buttons.  

I am loading some html with <p align=''>  tags.  When I use the editor to change the alignment I am getting the original align element and a style element.  Which is causing some bad rendering when I use the html elsewhere.   


Original editor Content
<p align=\"center\">TEL: XXX-XXX-3465 &bull; WEB: <a href=\"http://www.wxxxxxxxxxxl.com\">www.wxxxxxxxxxx.com</a></p>



Editor Content after changing alignment to Left
<p align=\"center\" style=\"text-align: left;\">TEL: XXX-XXX-3465 &bull; WEB: <a href=\"http://www.wxxxxxxxxxx.com\">www.wxxxxxxxxxx.com</a></p>

See how it keep the align='center' and added style='text-align: left'  


I have the following Filters disabled.  
RadEditor2x.DisableFilter(EditorFilters.ConvertTags);
        RadEditor2x.DisableFilter(EditorFilters.ConvertFontToSpan);
        RadEditor2x.DisableFilter(EditorFilters.ConvertToXhtml);
        RadEditor2x.DisableFilter(EditorFilters.FixUlBoldItalic);
        RadEditor2x.DisableFilter(EditorFilters.MozEmStrong);
        RadEditor2x.DisableFilter(EditorFilters.ConvertInlineStylesToAttributes);



Is the a filter that i need to enable or disable that will correct this?  

Additionally, I would prefer that the alignments render as align = ' ' not style = ' '  

















Ianko
Telerik team
 answered on 02 Feb 2015
3 answers
156 views
How do I collapse the ribbonbar. In Windows I normally double click on any tab within the Ribbon. Thanks
Bozhidar
Telerik team
 answered on 02 Feb 2015
3 answers
973 views
Hi,

 I have bind the data in the grid from the

rgStaffPhysicianDetails.DataSource = GetPhysicianDetail();

in the server side code. So please give me the details of how the apply the filtering with the use selected filter criteria and value get from the filter textbox in the radgrid control.

protected void RadGrid1_PreRender(object sender, System.EventArgs e)
{
 
if (!Page.IsPostBack)
 {
   RadGrid1.MasterTableView.FilterExpression =
"([Country] LIKE \'%Germany%\') ";
   GridColumn column = RadGrid1.MasterTableView.GetColumnSafe(
"Country");
   column.CurrentFilterFunction = GridKnownFunction.Contains;
   column.CurrentFilterValue =
"Germany";
   RadGrid1.MasterTableView.Rebind();
 }
}

Here in this code filteration is server side but selection criteria is fixed,
 
so i need to set the selection criteria with use of the radgrid control selection criteria( like contains, not contains, NotFilter, StartWith, EndWith etc. ) any of the filter dropdownlist and filter value from the filter textbox in the radgrid control.

 So, i have problem how to get the selected value from the filter dowpdownlist and filtered value from the filter Textbox of radgrid control, Kindly help me as soon as possible.
 


Thanks
Pankaj Tyagi
Angel Petrov
Telerik team
 answered on 02 Feb 2015
1 answer
140 views
Hi,
is there a way to change ForeColor property (serverSide)?

MySearchBox.ForeColor = myCol;   doesn't works

Thanks
Dimitar Terziev
Telerik team
 answered on 02 Feb 2015
1 answer
282 views
Hi,

I am using Radupload control to upload files. After successful upload of file if page is refreshed then uploaded file is getting re upload. Please provide a solution. I can not use response.redirect() after first time upload.

Thank you.
Genady Sergeev
Telerik team
 answered on 02 Feb 2015
1 answer
73 views
Hi, 

I have a RadComboBox with Load on Demand activated and data is databound when OnItemsRequested event is fired.
  <telerik:RadComboBox ID="cmbVisualizationTemplates" runat="server"
    EnableLoadOnDemand="true"
    EmptyMessage="Select a template"
    Filter="Contains"
    AllowCustomText="false"
    DataTextField="NAME"
    DataValueField="ID_VISUALIZATION_TEMPLATE"
    OnClientItemsRequesting="selectedTemplatesRequesting"
    OnClientSelectedIndexChanged="selectedTemplateChanged"
    OnItemsRequested="cmbVisualizationTemplates_ItemsRequested"
    Style="width: 135px;">
</telerik:RadComboBox>


How can I show a message "No records found" when no items are returned to ComboBox?

Thanks for your help!

Alfonso
Dimitar Terziev
Telerik team
 answered on 02 Feb 2015
8 answers
656 views
hii,,
How to open radasyncupload window onclick of a radbutton??
thnks
Plamen
Telerik team
 answered on 02 Feb 2015
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?