Hi,
I am using the ASP.NET component RadRibbonBar(latest version - Q3 2011) and I have a question about the usage of the ContextualTabGroup.
How can I activate and deactivate a ContextualTabGroup depending on the options selected in a Tab (RibbonBarButton) ?
Since is not possible to have an ID to the RibbonBarContextualTabGroup, I wonder how I can activate or deactivate the component in the server-side ?
Best regards,
Brigite Pedro
Hi,
In my project one of the input control is RadNumericTextBox and it's allowed range is from --99999999999.999999999999 to 99999999999.999999999999.
So i have given DecimalDigits value as 12. But it is working only for Positive numbers. i.e. if i input -0.000000001 in the NumericTextbox and focus out of the control is resetting to ZERO.
I have tried by making AllowRounding value to 'false' also but no use . So anyone please help me in this.
I should above to insert even negative numbers in the allowed range as shown above.
I have a three-level master/detail radgrid (think: Bill of Materials application with "Item", "Assembly", "Part").
In the ItemDataBound event for the grid, I am capturing various metrics for each GridDataItem which I am then converting into a text value. The purpose is to give the operator some detailed information for each of the levels (e.g. "based on current inventory levels, we can only produce 5 of this assembly before Part ### is exhausted")
I have been attempting, without success, to customize the radgrid's footer for each level in order to display this information. Also in the itemDataBound event, the event item is a GridFooterItem, I attempt to customize the footer to display this information. I have attempted to do this a couple of ways, based on various forum postings.
One way that "works" is I change the text value of the first column (column #2, as column #0 = expand Column and column #1 = rowindicator column in the grid). I also set the columnspan value to reflect the total # of columns less 2 (for #'s 0 & 1). E.g.:
footeritem["column2"].ColumnSpan = 8;
footeritem["column2"].Text = my-String-field;
I say this works, because, it does "work" (e.g. the data is displayed correctly for the footer), except, it "breaks" the layout of the grid in such a way that each of the levels' columns are no longer fully justified to the left and right sides of the grid. What I end up with is a grid where each detail level's data is displayed as "ragged right". It appears what happens is each column, at each level, in the grid is set to the absolute minimum amount of space needed to display the value.
Removing the ColumnSpan directive results in the grid being laid out properly (e.g. all columns dynamically sized to make the grid at all 3 levels fully justified to the right and left.) However, since column#2 might be only, say, 100 pixels, I end up with 5-10 "lines" of wrapped text containing my string field, which is not very professional looking.
Question: Is there a way to create a custom footer template for the radgrid with a single "column" which will be laid out correctly; that is, I could have a single column which spans the entire width of the radgrid so I can populate it with my text value, and not "break" the full justification of the grid?
if (!Page.IsPostBack) { List<affaires> oAff = this.DbContext.Bien_GetPhoto<affaires>("B12546" ,2).ToList(); this.RadRotator1.DataSource = oAff; this.RadRotator1.DataBind();}protected void RadRotator_ItemDataBound(object sender, RadRotatorEventArgs e) { affaires oBoPhoto = (affaires)e.Item.DataItem; string cPhoto = "photo/" + oBoPhoto.photo.Trim().ToString().Replace("\\", "/"); if (File.Exists(Server.MapPath(cPhoto))) { ((Image)e.Item.FindControl("photo_mini")).ImageUrl = cPhoto; ((TextBox)e.Item.FindControl("txt_img")).Text = cPhoto; } else { ((Image)e.Item.FindControl("photo_mini")).ImageUrl ="~/images/photoempty_v.jpg"; ((TextBox)e.Item.FindControl("txt_img")).Text = cPhoto; } }Hi Sir,
How to get resourcetype selected value in telerik Rad Scheduler Control.
Aspx .page code part:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime"
FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
DataKeyField="ID" SelectedView="WeekView" EnableDescriptionField="True" TimelineView-NumberOfSlots="15"
DataStartField="StartTime" DataSubjectField="Subject" Width="943px"
Height="900px" TimelineView-ShowResourceHeaders="true"
DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentKey"
Skin="WebBlue" onappointmentclick="RadScheduler1_AppointmentClick"
AppointmentStyleMode="Default" OnClientAppointmentCreated="appointmentCreated"
onappointmentdelete="RadScheduler1_AppointmentDelete"
onappointmentinsert="RadScheduler1_AppointmentInsert"
onappointmentdatabound="RadScheduler1_AppointmentDataBound"
onappointmentupdate="RadScheduler1_AppointmentUpdate"
OnNavigationComplete="RadScheduler1_NavigationComplete"
OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick"
OnFormCreated="RadScheduler1_FormCreated"
CustomAttributeNames="Call P" EnableCustomAttributeEditing="True" >
<AdvancedForm Modal="true" EnableCustomAttributeEditing="true" EnableResourceEditing="true" />
<TimelineView GroupBy="Calendar" GroupingDirection="Vertical" />
<ResourceStyles>
<telerik:ResourceStyleMapping Type="Calendar" Text="Development" BackColor="#D0ECBB" BorderColor="#B0CC9B" />
<telerik:ResourceStyleMapping Type="Calendar" Text="Marketing" ApplyCssClass="rsCategoryRed" />
<telerik:ResourceStyleMapping Type="Calendar" Text="Work" ApplyCssClass="rsCategoryOrange" />
</ResourceStyles>
<TimeSlotContextMenuSettings EnableDefault="true" />
<AppointmentContextMenuSettings EnableDefault="true" />
<ResourceTypes>
<THIS is section i am binding from Code behind at the page load>
</ResourceTypes>
</telerik:RadScheduler>
</telerik:RadAjaxPanel>
------------------------------------------
Creating the Static value for Resource type in Code behind page.... following i aM BINDING AT PAGE LOAD
ResourceType CallPriority = new ResourceType("Call Priority");
CallPriority.ForeignKeyField = "RoomID";
RadScheduler1.ResourceTypes.Add(CallPriority);
RadScheduler1.Resources.Add(new Resource("Call Priority", 1, "Call1"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 2, "Call2"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 3, "Call3"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 4, "Call4"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 5, "Call5"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 6, "Call6"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 7, "Call7"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 8, "Call8"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 9, "Call9"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 10, "Call10"));
RadScheduler1.GroupBy = "Call Priority";
RadScheduler1.GroupingDirection = GroupingDirection.Vertical;
i AM able to bind with my Drop down as per attached screen shot but not able to get (Selected value)value after selection of any "CALL1","Call2"
as per your I am trting to bind with same code we do not have any comboBOX iD..
The following code gives me default value of drop down list.
((Telerik.Web.UI.Resource)((new System.Collections.ArrayList.ArrayListDebugView(((System.Web.UI.StateManagedCollection)(RadScheduler1.Resources))._collectionItems)).Items[0])).Text;
Please find the attached Screen shots.
It is slight similar to(Call Priority DROP down as per attached screen shots) DRopdown list ,so How to get selected Resource type drop down list value by C# code...
Looking forward for your support
Hi,
How can I access a label inside EditFormSettings of a grid? Any help will be really appreciated
<EditFormSettings EditFormType="Template"> <FormTemplate> <h4><strong><asp:Label ID="lblboxheading" Visible="true" runat="server" CssClass="page-heading" ></asp:Label></strong></h4></FormTemplate></EditFormSettings>
Hi,
I've used RadFileExplorer and binded it with my Items table using
CREATE TABLE [dbo].[Items](
[ItemID] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](50) NULL,
[ParentID] [int] NULL,
[MimeType] [varchar](50) NULL,
[IsDirectory] [bit] NULL,
[Size] [bigint] NULL,
[Content] [varbinary](max) NULL)
I've added data to it and it is shown on fileExplorer now can I get the itemid from this table of selected node??
I've tried RadFileExplorer1.TreeView.SelectedValue inside a button click event, but no use it gives me node text like 'Root/NewFolder/Nature' but I want Nature ItemID which binded with Items table is there anyway I get this ID??

Hello,
I am new to telerik, I am trying to learn the kendo UI controls. I was previously using visual studio 2012 professional edition, I have switched over to visual studio 2012 express edition. however in the express edition I am unable to change my html controls to kendo controls. Please let me know where am I going wrong? I have attached a code below. Thank you.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="telerik.kendoui.professional.2015.3.1111.trial/js/kendo.all.min.js"></script>
<script src="telerik.kendoui.professional.2015.3.1111.trial/js/jquery.min.js"></script>
<link href="telerik.kendoui.professional.2015.3.1111.trial/styles/kendo.default.min.css" rel="stylesheet" />
<link href="telerik.kendoui.professional.2015.3.1111.trial/styles/kendo.common.min.css" rel="stylesheet" />
</head>
<body>
<div id="example">
<label>First Name</label>
<input type="text" name="firstName" id="txtFname" value="" />
</div>
<script>
$(document).ready(function () {
$("#txtFname").kendoMaskedTextbox({
});
});
</script>
</body>
</html>
We have migrated from the v2010.2.713.35 to v2015.2.826.45 then we are facing the issue in the design. I have attached the screen shot with this thread.
Kindly provide me a solution
I tried to disable UseStaticHeader when Print a Grid
this is my js function
This works OK, but when I use StaticHeader not all data display. Please see attached image
function Imprimir() {
var radGrid = $find('<%= grillaListado.ClientID %>');
radGrid.MasterTableView.get_element().style.fontSize = "10px";
debugger;
radGrid.MasterTableViewHeader.get_element().style.fontSize = "10px";
var previewWnd = window.open('about:blank', 'Resúmen Ordenes de Pago', '', false);
var styleStr = "<html><head><title>Resúmen Horas de Proyectos</title></head>";
var fechaDesde = $find('<%= dtFechaDesde.ClientID %>').get_textBox().value;
var fechaHasta = $find('<%= dtFechaHasta.ClientID %>').get_textBox().value;
var htmlcontent = styleStr + "<body> <label style='font-size:10px'>Fecha desde:" + fechaDesde + " - hasta " + fechaHasta + "</label><br>" + radGrid.get_element().outerHTML + "</body></html>";
previewWnd.document.open();
previewWnd.document.write(htmlcontent);
previewWnd.document.close();
previewWnd.print();
previewWnd.close();
}
function Imprimir() {
var radGrid = $find('<%= grillaListado.ClientID %>');
radGrid.MasterTableView.get_element().style.fontSize = "10px";
radGrid.MasterTableViewHeader.get_element().style.fontSize = "10px";
/********************* I TRIED THIS ***************************/
radGrid.ClientSettings.Scrolling.UseStaticHeaders =false; => does not work
/********************* I TRIED THIS ***************************/
var previewWnd = window.open('about:blank', 'Resúmen Ordenes de Pago', '', false);
var styleStr = "<html><head><title>Resúmen Horas de Proyectos</title></head>";
var fechaDesde = $find('<%= dtFechaDesde.ClientID %>').get_textBox().value;
var fechaHasta = $find('<%= dtFechaHasta.ClientID %>').get_textBox().value;
var htmlcontent = styleStr + "<body> <label style='font-size:10px'>Fecha desde:" + fechaDesde + " - hasta " + fechaHasta + "</label><br>" + radGrid.get_element().outerHTML + "</body></html>";
previewWnd.document.open();
previewWnd.document.write(htmlcontent);
previewWnd.document.close();
previewWnd.print();
previewWnd.close();
}
How i can print the complete grid when it use StaticHeader?