Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
123 views
I have the the combo box filter template, but how can I also get the filter button? I don't want to filter on index change, I want to apply multiple filters and be able to select "NotEqualTo" for combo box selections.
Konstantin Dikov
Telerik team
 answered on 23 Sep 2015
1 answer
217 views

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,

 
Bozhidar
Telerik team
 answered on 23 Sep 2015
2 answers
108 views

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!!!

 

Konstantin Dikov
Telerik team
 answered on 23 Sep 2015
1 answer
134 views

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

 

 

Konstantin Dikov
Telerik team
 answered on 23 Sep 2015
8 answers
1.3K+ views
Having some problems.

I just want to add a css class to a text box, I see you guys expose an addCssClass method.
I use it but I think it seems the class isn't getting applied to the correct element?

I have an input called txtInput.

I grab the input in my javascript and add my css: $find('txtInput').addCssClass('invalid');

When I look in firebug or IE dev toolbar I see three elements that represent the input.

txtInput_text
txtInput
txtInput_Value


It looks like the middle one gets the class but that doesn't render the changes I have in my css Class. If I force the class on txtInput_text using firebug or IE dev toolbar I can see my styles properly rendered. What gives?

Edit: In Firefox I need to completely remove all css classes from the txtInput_text element and only apply mine else none of my styles will render...

Edit: And is there a way to ignore the hover over method that alters the css and gets rid of user added css classes?

Edit: Ideally I'd like to have this invalid class take over and apply to enabled, hovered and disabled states. If I use the addCssClass method it only applies to enabled until i hover over, then my class is lost. Is there a way to change disabled and hovered css classes dynamically in javascript? I see a _styles collection with disabled, hovered etc items but it seems to be private.

thanks


//matt

Kostadin
Telerik team
 answered on 23 Sep 2015
6 answers
1.1K+ views

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

systems
Top achievements
Rank 1
 answered on 23 Sep 2015
12 answers
782 views
Hi,

I have a rad grid that I am using in place editing/inserting.  In the grid I have a rad color picker.  When in edit mode, when I change the 
color in the rad color picker I change the background color of another column to the color selected.  I am using the OnClientColorChange event of the rad color picker to do this using the following script;
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;
                }
            }
        }

I am trying to implement the same functionality while in insert mode but am having a problem getting the correct reference to the field whose background color I want to change.  I have the following script but I keep getting the error message
Error: 'undefined' is null or not an object and it points to the line ...

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;
       }


Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Sep 2015
1 answer
462 views

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

Daniel
Telerik team
 answered on 22 Sep 2015
2 answers
411 views
Is it possible to individually align a filter textbox?  My grid has a numeric column that is right aligned for the items and all other columns are left aligned.  The filter box is left aligned and looks like it belongs to a different column.
I realise I can change the alignment of all filter boxes using the FilterItemStyle property but I only want to change the alignment of a single box.

Israel
Top achievements
Rank 1
 answered on 22 Sep 2015
1 answer
121 views

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!

Plamen
Telerik team
 answered on 22 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?