Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
223 views
Hi, I have a simple page with RadGrid above two RadListBox controls that are supposed to be populated with different items based on which item is selected in the grid.

No matter what techniques I try, RadListBox controls appear to be empty on the page.  I am currently trying to use simple method shown here:

http://www.telerik.com/help/aspnet-ajax/listbox-working-with-items-server-side.html

Basically manually adding an object of type RadListBoxItem directly to the RadListBox in question, but the box remains empty on the page, any tips?  Maybe grid is throwing it off in some way?  How do I refresh it?
Simon
Telerik team
 answered on 10 Jan 2011
1 answer
267 views
I have a Radgrid with checkbox template column for puropse of select all rows functionality. but right now whenever i hover through the header checkbox im getting the drag and drop cursor for drag & drop but i want thearrow cursor for that.
Any help is appreciated.

Regards,
Krishnan
Cognizant
Chennai
Shinu
Top achievements
Rank 2
 answered on 10 Jan 2011
1 answer
141 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
122 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
341 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
109 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
873 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
188 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
80 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
147 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?