Hello,
I have a Gantt chart with tasks and dependencies.
Can anyone tell me how can I update "Start" and "End" of the tasks if it's parent task's "End" date is updated.
I tried doing the following code (@screenshot) in the TaskUpdate event, but it just refreshes the page, nothing else.
Any help will be appreciated. Thank you.
Regards,
Hi Telerik,
We have a grid with an ItemTemplate code that contains a RadComboBox
<telerik:RadComboBox runat="server" ID="RadComboBoxEventNotAttending" Width="155px" CheckBoxes="true" DropDownAutoWidth="Enabled" AutoPostBack="true" EmptyMessage="Select Not Attending" EnableCheckAllItemsCheckBox="true" OnItemChecked="RadComboBoxEventNotAttending_ItemChecked" OnCheckAllCheck="RadComboBoxEventNotAttending_CheckAllCheck" OnDataBinding="RadComboBoxEventNotAttending_DataBinding" Label='<%# Eval("EventSubId")%>' LabelCssClass="myLabelHide" > <Localization AllItemsCheckedString="Family not attending" CheckAllString="Select All" ItemsCheckedString="Member(s) not attending" /> <CollapseAnimation Type="InExpo" /> <ExpandAnimation Type="OutExpo" /> <HeaderTemplate> <asp:Label runat="server" Font-Size="8" Text="Not Attending" /> </HeaderTemplate></telerik:RadComboBox>Every Item for the grid could have different drop down items and checks for their respective repeating RadComboBoxes depending on the scenario, which is all handled fine with the OnDataBinding for each record in the grid datasource. When the user checks an item in the dropdown it does a whole postback for the grid. We would like it to only do a postback for the RadComboBox and show a LoadingPanel around the RadComboBox itself instead of showing around the grid.
Our grid is wrapped in a ASP Panel and is used in the RadAjaxManager. The RadComboBox could be wrapped in a ASP Panel and used the same way. We are not sure this is possible for it to be used inside a grid like this.
Could you supply some information or some code snippet for this type of situation?
Thanks!!!
HI I have created a Radgrid and added a textbox as a template coloumn,
When the user presses the ok button i want any values that have been entered into the textbox to be returned
I believe i have code correct on the event of the ok button but i am always returned a Null value. I have looked at a sample of code found here http://kandydeol.blogspot.co.uk/2013/09/fetching-telerik-radgrid-column-and.html
and as far as I can see all is correct,
aspx code :-
<telerik:RadGrid ID="GRD_OTCOrder" runat="server" AutoGenerateColumns="False" OnItemDataBound="GRD_OTCOrder_ItemDataBound" Culture="en-GB" OnNeedDataSource="GRD_OTCOrder_NeedDataSource" GroupPanelPosition="Top" Width="1173px">
<MasterTableView TableLayout="Auto">
<Columns>
<telerik:GridBoundColumn DataField="TxtName" HeaderText="OTC Name / Type"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Packsize" HeaderText="Pack size" ItemStyle-Width="100px">
<ItemStyle Width="100px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Units" ItemStyle-Width="100px">
<ItemStyle Width="100px"></ItemStyle>
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Qty Required">
<ItemTemplate>
<asp:TextBox ID="TB_QTYOrder" runat="server" Width="50px"></asp:TextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn>
<ItemTemplate>
<telerik:RadComboBox ID="DDL_Reason" runat="server"></telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="false">
<ItemTemplate>
<asp:Label ID="LAB_OTCID" runat="server"></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<telerik:RadButton ID="BTN_Order" runat="server" Text="Place Order" OnClick="BTN_Order_Click"></telerik:RadButton>
<telerik:RadComboBox ID="DDL_House" runat="server" ></telerik:RadComboBox>
and the cs code attached to the ok button
protected void BTN_Order_Click(object sender, EventArgs e)
{
foreach (GridDataItem data in GRD_OTCOrder.Items)
{
//find controls in Grid
RadComboBox reason = (RadComboBox)data.FindControl("DDL_Reason");
TextBox qtyre = (TextBox)data.FindControl("TB_QTYOrder");
Label otc = (Label)data.FindControl("LAB_OTCID");
//create new OTC Object in memory
OTCOrders temp = new OTCOrders();
temp.House = Convert.ToInt64(DDL_House.SelectedValue);
temp.OrderBy = Websession.sessionuser.UserID;
temp.OTCType = Convert.ToInt32(otc.Text);
if (!string.IsNullOrEmpty(qtyre.Text))
{
temp.QTY = Convert.ToInt32(qtyre.Text);
}
temp.BolSent = false;
temp.BolRec = false;
temp.SentBy = 0;
temp.RecBy = 0;
temp.DteSent = DateTime.Now;
temp.dterec = DateTime.Now;
temp.House = Convert.ToInt64(DDL_House.SelectedValue);
temp.Reason = reason.SelectedValue;
temp.DteOrdered = DateTime.Now;
//Save object to database
temp.SaveOrder();
}
}
Many Thanks
Hello,
We have a in place editable grid with Template columns & with single save button outside the grid. Usually grid consist of monthly dates and I need to update/edit only few dates from it.
I am looking to find out a way through which i can get only modified rows from grid in my save button handler. I know by default there is no IsDirty flag for RadGridRow so any thoughts around accomplishing this?
Thanks,
Chetan
function ColorChangeEdit(sender, eventArgs) { var color = sender.get_selectedColor(); var RadGrid = $find("rgvMainGrid"); var MasterTable = RadGrid.get_masterTableView(); var SelectedRows = RadGrid.get_selectedItems(); if (SelectedRows.length > 0) { for (var i = 0; i < SelectedRows.length; i++) { var row = SelectedRows[i]; var description = row.findElement("txtEditShortDescription"); description.style.backgroundColor = color; } } } var description = row.findElement("txtInsertShortDescription");
So my question is, how do I reference a particular cell from the insert record.
Thank you for your help.
Tracy
function ColorChangeInsert(sender, eventArgs) { var color = sender.get_selectedColor(); var RadGrid = $find("<%= rgvMainGrid.ClientID %>"); var MasterTable = RadGrid.get_masterTableView(); var insertRow = MasterTable.get_insertItem(); var row = insertRow[0]; var description = row.findElement("txtInsertShortDescription"); description.style.backgroundColor = color; }Hello,
I want to set the a navigation URL of ​a GridHyperLinkColumn to a value with query string which is the date selected from a radatepicker
I tried using the embedded C# code method using <% %> but it didn't show me any love, it just posted the plain text in the URL including the <% %> enclosing marks
I would like to know if there's a way to set this in the code behind link in the onload event or something
Hi
I'm working on a site that users use to capture schedules into a database. There is a page that contains the Scheduler control which the users can use to view all of these schedules. I'm trying to load them from the database and on the server side build the recurrences of these schedules using the RecurrencePattern class.
My problem that I'm facing is that the site's own scheduling page closely follows Windows Task Scheduler, in the sense that you can create a schedule that run for any specified months on any selected day of the month. I have cone over the Telerik Scheduler documentation and it seems to me that you can only specify a recurrence to run on one day of the month.
Is there anyway to get around this or am I just missing something?
Thanks!
