Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Dear Sirs,
we are using Scheduler from RadControls (Q2 2001 SP1 - latest release).
We are using the Timeline view, and it works fine but the problem is that we cannot see the timeline button.
Here's the code:
scheduler.SelectedView = SchedulerViewType.TimelineView;
scheduler.ShowViewTabs = true;
scheduler.TimelineView.UserSelectable = true;
scheduler.WeekView.UserSelectable = true;
scheduler.MonthView.UserSelectable = true;
scheduler.DayView.UserSelectable = false;

Could you please help us?
Thanks in advance.
Regards,
Sergio
Plamen
Telerik team
 answered on 10 Nov 2011
1 answer
233 views
Hello,

I have used rad grid with insert , update option using edit form template.While Add/Edit time Depending on Radio Button Selection I need to Enable , Disable Validation. Insert , Update option works perfect when validation are enable but when i am selecting option which is disabling my validation then by clicking on Insert , Update button my insertcommand and updatecommand are not working. By clicking on insert or update button it direct comes to itemcommand event not on insert or update command.

Any Idea why rad grid insert , update command not working after disabling validation?
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Nov 2011
1 answer
99 views
Hello All,
I am Using Custom Edit Template in Rad Scheduler to Insert Appointment Item.But i am facing to apply  my Own Css class to Cutom Edit Template.I have written my Custom Edit Template using InlineInsertTemplate but when ever am click on a particular date to add an Item,template not looking good and am unable to find how to Apply my Own Css class to Inline InsertTemplate. aim sending attached Screen Shot how Template looking.
Hoping Response will Come ASAP


 Thanks & Regards
N.Vishnu Vardhan Reddy
Ivana
Telerik team
 answered on 10 Nov 2011
2 answers
172 views
Hello,
I need to have a grid with Custom Filters. Those filters needs to be comboboxes with checkboxes.
I started from http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx.
I can successfully run the sample & I modified the combobox (checkboxes=true) to display all items with checkboxes.
Now I've 2 issues :
1°) When I filter on 1 checkbox from the combobox "Country", it works. But when I check 2 checkboxes (2 countries), I can not have results.
Do you have another sample or a doc explaining how to handle multiple selections for 1 filter ? Or any tips to explain how to do that ?
2°) The custom filters column are not sortable, how to have them sortable too ?

Nicolas
Nicolas
Top achievements
Rank 1
 answered on 10 Nov 2011
1 answer
391 views
The RadDatePicker Auto correcting if you put invalid date values.

Ex : 01012011auto correct to 01-Jan-2011

How Can i disable autocorrect in RadDatePicker? 
Princy
Top achievements
Rank 2
 answered on 10 Nov 2011
4 answers
287 views
I want to change a column header text in client-side (javascript + jquery). The column header support reorder.

I have this code:

$(grid.get_masterTableView().getColumnByUniqueName('ColumnUniqueName').get_element()).text('New header text')

I get the header text to be changed but I lose the link to reorder the column. Is there any other way to get the header text changed?

Thanks


Dariusz
Top achievements
Rank 1
 answered on 10 Nov 2011
2 answers
93 views

Dear Telerik,

    I use a grid,when I add new record,I want fire a function of my js script.but I use the radajax so I use  ClientScript.RegisterStartupScript  function is unuseful...
    my code:
    

function showEdit(customer, contact) {
    window.radopen("ContactEdit.aspx?cus=" + customer + "&contact=" + contact, "EditContact");
    return false;
}

protected void RadGridList_InsertCommand(object sender, GridCommandEventArgs e)
{
    Parents parents = new Parents();
    parents.Customer_No = ((TextBox)e.Item.FindControl("txtParentsCode")).Text.Trim();
    parents.English_Name = ((TextBox)e.Item.FindControl("txtEnName")).Text.Trim();
    parents.Join_Date = DateTime.Parse(((RadDatePicker)e.Item.FindControl("rdpJoinDate")).SelectedDate.ToString());
    parents.Salesman_Code = ((RadComboBox)e.Item.FindControl("rcbSalesman")).SelectedValue.Trim();
    parents.BR_No = ((TextBox)e.Item.FindControl("txtBRNo")).Text.Trim();
    parents.CR_No = ((TextBox)e.Item.FindControl("txtCRNo")).Text.Trim();
    parents.Remarks = ((TextBox)e.Item.FindControl("txtRemarks")).Text.Trim();
    parents.Parent_Customer_No = ((RadComboBox)e.Item.FindControl("rcbParent")).SelectedValue.Trim();
    parents.Alternative_Name = ((TextBox)e.Item.FindControl("txtAlternative")).Text.Trim();
    parents.Music_Service_Type = ((TextBox)e.Item.FindControl("txtMusSerType")).Text.Trim();
    parents.Next_Contact_Datetime = DateTime.Parse(((RadDatePicker)e.Item.FindControl("rdpNextConDate")).SelectedDate.ToString());
    try
    {
        new BLL.ParentsBLL().Add(parents);
        BindData();
        ClientScript.RegisterStartupScript(GetType(), "message", "<script language='javascript'>showEdit('0004', '')</script>");
    }
    catch (Exception)
    {
        throw;
    }
}
Y
Top achievements
Rank 1
 answered on 10 Nov 2011
4 answers
269 views
I have a dropdownlist in EditItemTemplate / insertItemTEmplate and in the codebehind file I am trying to bind it to a datasource.
could you please suggest how to bind it to a data source and in which event i should do it in codebehind file?

here is my radtreelist :


<telerik:TreeListTemplateColumn DataField="WorkShopType" UniqueName="WorkShopType" HeaderText="WorkShopType" >
                   
<ItemTemplate>
 <%# Eval("WorkShopType")%></ItemTemplate>
            <EditItemTemplate>
         <asp:DropDownList ID="ddlWorkShopTypeEdit" runat="server" />
                         </EditItemTemplate>
                         <InsertItemTemplate>
<asp:DropDownList ID="ddlWorkShopTypeInsert" runat="server"/>
</asp:RequiredFieldValidator></InsertItemTemplate></telerik:TreeListTemplateColumn>
Kushal
Top achievements
Rank 1
 answered on 10 Nov 2011
1 answer
275 views
I have a RadGrid with all rows set to be editable (inline) in PreRender. I'm setting a background color (BackColor) on every other GridEditableItem in this step, because there is no alternate style for editable rows.

I've got a heavy border at the bottom of each row - as well as a background image (according to FireBug it's coming from an axd resource).

The "Selected" row style also is hidden because of this default background image.

I've spent several hours trying to get rid of the border (1px from the inline style and 1px from the background image), and have had no luck.  

I can disable the border in Firebug and/or IE's developer tools, on the fly, and eliminate the border, allow the Selected Row style to function, but I can't seem to do it in my app.

Any assistance for what should be a very simple task would be greatly appreciated!

In my default css:

div.RadGrid_Default .rgEditRow
{
    background-image:none !important;
    border:none;
}


PreRender in code-behind:

protected void Page_PreRender(object sender, EventArgs e)
       {
           bool alternate = false;
            
           foreach (GridItem item in grid.MasterTableView.Items)
           {
               if (item is GridEditableItem)
               {
                   GridEditableItem editableItem = item as GridDataItem;
                   editableItem.Edit = true;
                   if (alternate)
                   {
                       item.BackColor = System.Drawing.ColorTranslator.FromHtml("#efefef");
                   }
                   alternate = !alternate;
               }
           }
       }

Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Nov 2011
1 answer
83 views

When I try to filter an item in a grid which has virtual scrolling enabled on client side, it does not bring up anything. 

I am trying to get an item which has an id 100. I am scrolling through the pages in a grid virtually, but when I search for an item it brings up a blank page.

Please advice.

Thanks,
Divya
Princy
Top achievements
Rank 2
 answered on 10 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?