Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
Hi,
  I am displaying RadCalendar in my App., In that i need to display the holidays on the date. like dec 25th x-mas... For that i have stored procedure having all the holidays for the year.. how can i diplay on the date....how can we do that?
Maria Ilieva
Telerik team
 answered on 10 Jan 2011
1 answer
102 views
Hello,

Does Telerik have anything like Dart's LiveControls for ASP.NET (http://www.dart.com/pwlc_overview.aspx)? I'm new to Telerik and am currently working on a big project which will require a good deal of client to server  interaction. Looks like the best solution other than potentially LiveControls is to write JavaScript in order to avoid postback caused screen flickering. Any suggestions for this issue or getting to know Telerik?

Thanks

Geoffrey
Sebastian
Telerik team
 answered on 10 Jan 2011
3 answers
280 views
I have a radlistbox
I can add to the list box
I can remove from the list box
What I cant for the life of me work out how to do is how to edit an entry in radlistbox in place.

I want to be able to change and save the text of a radlistbox item (preferably with AJAX)...

If anyone can point me to an example, pointer or guide as how to get started with this would be great.

Thanks....
Shinu
Top achievements
Rank 2
 answered on 10 Jan 2011
2 answers
73 views
Hi All,

I've been trying to figure this out for a while and not having much luck hence this posting.

I have a grid that has a subgrid for each row using detailtables, both levels are editable.  Because I have checkboxes in the admin form of each level I need to setup the value of any new rows in the InitInsert event and all of this works nicely.  

I have two issues now.  The fist issue is that I need to conditionally hide the checkbox (and potentially other fields) in the child level depending on a value in the parent level.  The second issue is that I want to have a checkbox present on the form which when ticked and the record is saved a new insert form opens up - thus saving the user from clicking a on the new item icon again.

Re the first issue I have the following in the ItemCommand event for the grid,

...
ElseIf e.CommandName = "InitInsertElement" Then
    e.Canceled = True
    Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary()
    newValues("IncludeInTotal") = True
    'IF THE CostType CELL IN THE PARENT ROW = UnitCost THEN HIDE THE uxIncludeInTotal CHECKBOX ON THIS INSERT FORM
 
    DirectCast(e.Item, Telerik.Web.UI.GridDataItem).ChildItem.NestedTableViews(0).InsertItem(newValues)
ElseIf .....

Re the second issue I have tried the following code to trigger the insert form to reopen but although the itemcommand is triggered the insert form does not load.  

If CType(editedItem.FindControl("uxAddNewAfterSave"), CheckBox).Checked Then
    Dim parentItem = CType(e.Item.OwnerTableView.ParentItem, Telerik.Web.UI.GridDataItem)
    parentItem.FireCommandEvent("InitInsertElement", String.Empty)
End If

Any help please?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 10 Jan 2011
3 answers
736 views
Hi

I am trying to modify slightly the color of the button on hover when using the form decorator with 'Hay' skin.
Tried a css file technique (see below) that worked with an earlier version of the controls, but it doesn't work now (Q2 2010 release). 
Can you tell me what I should be using instead?
Thanks
Clive
a.RadForm_Hay:hover .rfdInner {color: #ACB936 !important;}
Bozhidar
Telerik team
 answered on 10 Jan 2011
5 answers
157 views
Hi,

I want your help to the following problem.

I have a grid which calls an OnNeedDataSource event to fetch data. The grid columns and data are automatically created based on the list(Of Object) I pass to the grid datasource. The problem I have is that I want to REMOVE and RENAME some columns from the grid but I want to maintain the way the grid works now. How can I rename the column headers of the grid or make them visible false from code behind?  From the aspx file I can't do anything because in the ...<MasterTableView><Columns>... tag I don't include any data.

Thanks
George
Pavlina
Telerik team
 answered on 10 Jan 2011
2 answers
71 views
Hello,
I am trying to filter a column in a radgrid with a custom filter template, based on the id´s of the objects and not the display names (in some cases we have entries with the name / display name)

My Code is:
<telerik:GridBoundColumn AllowFiltering="true" AllowSorting="true" DataField="Accountrole.Name"
                    HeaderText="<%$ Resources:Administration,Role %>" UniqueName="Accountrole.RoleId">
                    <FilterTemplate>
                        <telerik:RadComboBox ID="RadComboBoxRole" DataSourceID="RoleDataSource" DataTextField="Name"
                            DataValueField="RoleId" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Accountrole.RoleId").CurrentFilterValue %>'
                            runat="server" OnClientSelectedIndexChanged="RoleIndexChanged">
                            <Items>
                                <telerik:RadComboBoxItem Text="<%$ Resources:Basic,All %>" />
                            </Items>
                        </telerik:RadComboBox>
                        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                            <script type="text/javascript">
                                function RoleIndexChanged(sender, args) {
                                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                    tableView.filter("Accountrole.RoleId", args.get_item().get_value(), "EqualTo");
                                }
                            </script>
                        </telerik:RadScriptBlock>
                    </FilterTemplate>
                </telerik:GridBoundColumn>

Unfortunately the filtering does not work because my entity data source get athe following filterexpression from the grid (seen in debug mode):
RadGrid1.MasterTableView.FilterExpression  = "(it.Accountrole.Name = \"1\")" 
but it should be:
RadGrid1.MasterTableView.FilterExpression  = "(it.Accountrole.RoleId= \"1\")"

How can I tell the Grid to generate the correct filter expression?

Thanks in advance!
Maria Ilieva
Telerik team
 answered on 10 Jan 2011
1 answer
126 views
Hello 
I am using rad grid with allow scrolling true and usestaticheader true. when the scroll bars are not visible (less no. of rows), the header flickers 
on every event inside the grid. Anyone can please help me how can I solve this issue ?

thanks
Shobhit
Pavlina
Telerik team
 answered on 10 Jan 2011
2 answers
157 views
Hi,

I want to set a value in a control exists in a GridTemplateColumn, I've read many threads here about it and I figure out that  I must use ItemDataBound event instead,
but actually I can't, because I have a control shows a popup and the popup returns a value by a callback in the server,
so how can I deal with this situation?

The code:

protected void MyCustomControl_ItemSelected(string returnedValue)
{
    var control = (RadGrid1.EditItems[0] as GridEdittableItem).FindControl("MyCustomTextBox");
 
    if (control != null)
    {
       control.Text = returnedValue;
    }
}

Thanks in advance.


Homam
Top achievements
Rank 1
 answered on 10 Jan 2011
4 answers
238 views

Hi,
I try to add the Save and Cancel buttons to a RadEditor’s Toolbar by using the approach on the http://www.telerik.com/help/aspnet-ajax/addingsaveandcancelbuttonstoolbar.html page. When I run the code, I have the javascript error: “Microsoft JScript runtime error: 'RadEditorCommandList' is undefined”. Could you please let me know what I am missing?
Thank you

Dobromir
Telerik team
 answered on 10 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?