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

I am using a custom skin build with the Visual Style Builder and I am having trouble implementing the following scenario:

When I hover over a main item the color of the main item changes from Red to White, which is OK (see Main item hover.png)
When I hover over a sub item I want the color of the Main text item still be White. Now it changes back to Red (see Sub item hover.png).

Anybody any idea?Thanx!

Marcel
Ivan Danchev
Telerik team
 answered on 02 Feb 2015
6 answers
748 views

I drag a RadScheduler to my webform, and start debug, then I get an error message as following. Please tell me how to solve the problem. Thank you very much for your helping.

DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding

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.ArgumentException: DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding

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:

[ArgumentException: DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding]
Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.EnsureDataFieldsAreSet() +205
Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.GetAppointments(RadScheduler owner) +130
Telerik.Web.UI.RadScheduler.PerformSelect() +240
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
Telerik.Web.UI.RadScheduler.EnsureDataBound() +116
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +144
Telerik.Web.UI.RadScheduler.CreateChildControls() +47
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Boyan Dimitrov
Telerik team
 answered on 02 Feb 2015
1 answer
212 views
Hi All,

Very odd behaviour here...pretty basic radwindow.  Opens based on Hyperlink ElementOpenerID.
See the page here: http://dcmapsa.azurewebsites.net/map.aspx

Bottom left under Help, there are 3 links. They should open 3 different windows.  Simply does not work.  My guess is code conflict somewhere.

Odd thing is that it works on this page without issue...
http://dcmapsa.azurewebsites.net/default.aspx

Anybody got any ideas on this glitch?

Thanks
Brett

Marin Bratanov
Telerik team
 answered on 02 Feb 2015
1 answer
122 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
213 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
100 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
79 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
121 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
930 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
107 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?