Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
i have user control in RADDock, In Raddock i have Gear Button. If i click gear button it will navigate to new page, like wise i have button in usercontrol if i click  it,  navigate to same page. how should i fire button event in usercontrol when i click gear button. I am loading RADDock Dynamically
Shinu
Top achievements
Rank 2
 answered on 10 Dec 2013
0 answers
67 views
 Got it working
Ebenezer
Top achievements
Rank 1
 asked on 10 Dec 2013
0 answers
98 views

Hello there,


due to some concerns I want to populate the radscheduler from a query I execute in the code behind and avoid using the sqldatasource within the .aspx.



i have not found an example and all of my attempts have been unsuccessful, can you point me in the right direction?

In esscence i want to execute a query against a view titled appointments and then bind the data as in the folllowing...



can you get me to the next step?  sorry i new to the scheduler and trying to determine if all of this is possible.





Protected Sub RadScheduler_OnLoad(ByVal sender As Object, ByVal e As EventArgs) Handles RadScheduler1.Load

 

Dim myDBUtil As DBUtil.DBUtils = DirectCast(Me.Page, BasePage).reqDBUtils

Dim rTable As DataTable = dbUtils.GetDataTable("SELECT [ID], [RoomID]+'%'+[Subject] + ' ' + [RoomID] as [Subject], [Start], [End],[RoomID], [UserID], [RecurrenceRule], [RecurrenceParentID] FROM [Appointments] WHERE [id] = @id", {{"@id", Session("user_id")}})

End Sub





AName
Top achievements
Rank 1
 asked on 09 Dec 2013
2 answers
54 views

Hi All

I have a Telerik Radgrid with GridHTMLEditorColumn inside it. I would like to put the require field validator so that user must fill the value inside GridHTMLEditorColumn.

Can someone please let me know how to put require field validator on GridHTMLEditorColumn.

Many thanks

Syed
Syed
Top achievements
Rank 1
 answered on 09 Dec 2013
4 answers
307 views
I have a situation where I am generating a RadGrid control dynamically, and am seeing two issues:

1) The alternating rows are not working correctly - both rows and alternating rows have a white background; and
2) I am unable to change the background color programmatically.

I have a feeling #1 is interfering with #2, but can't figure out why. This is the code I use to generate the RadGrid:

                With rgStatusCenterMessages
 
                    .ID = Me.ID & "_RadGrid"
                    .AlternatingItemStyle.BackColor = Drawing.Color.LightGray
                    .Width = Unit.Percentage(99)
                    .AllowSorting = False
                    .AllowPaging = True
                    .PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric
                    .AutoGenerateColumns = False
                    .GroupingEnabled = True
                    .ShowGroupPanel = False
                    .ShowStatusBar = False
 
                    With .ClientSettings
                        .AllowDragToGroup = False
                        .EnableAlternatingItems = True
                    End With
 
                    With .MasterTableView
                        .AlternatingItemStyle.BackColor = Drawing.Color.Aqua
                        .PageSize = 15
                        .ShowGroupFooter = False
                        .GroupsDefaultExpanded = True
                        .GroupLoadMode = GridGroupLoadMode.Client
 
                        Dim groupBy As GridGroupByExpression = GridGroupByExpression.Parse("AppName [Group] Group By AppName")
                        .GroupByExpressions.Add(groupBy)
 
                        .DataKeyNames = New String() {"FormNo"}
                    End With
 
                End With

You can see everything I've tried here, like enabling alternating items in the client settings, changing the back color of alternating items in the RadGrid (and in the MasterTableView as well), etc. But nothing seems to work. I've tried some rudimentary CSS changes, but haven't had luck with that either.

In the item data bound event I've tried using e.Item.BackColor, as well as assigning e.item to an object of type GridDataItem and then setting the back color of that object. Neither of these has worked, even though when debugging I see it changing the back color in the code. Like I said before, I wonder if #1 above is interfering with #2, but that's why I'm posting here. Any help is appreciated.
mortman
Top achievements
Rank 1
 answered on 09 Dec 2013
1 answer
116 views
I am having an issue with a hierarchical grid where I have to press the expansion button twice. I assume that is because it is making a round trip the first time and getting all the detail view data. the grid is in a usercontrol with a ajaxmanagerproxy and the browser doesn't appear to do a full postback but the grid does not expand.

the demo has the same issue here:
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx

notice that if you press the expansion button on the sales grid at the bottom, the loading icon will swirl and then stop with no expansion but if you press it a second time after it stops the loading swirl, it will expand. What can I do to fix this?
Chris
Top achievements
Rank 1
 answered on 09 Dec 2013
1 answer
122 views
Hi,

when using some skins (like Default or Black), the "Upload Image" button of the control has visibility issues (also on mouse-hover).
in this demo:
http://demos.telerik.com/aspnet-ajax/imageeditor/examples/imageupload/defaultcs.aspx?product=asyncupload

 We tried it on two different computers with Chrome and Firefox (latest version), IE8 and IE11. Same problem everywhere

TIA

Martin
Hristo Valyavicharski
Telerik team
 answered on 09 Dec 2013
6 answers
380 views
How do I need to configure my RadGrid and EntityDataSource to get them to work with hierarchy? I got this to work with LinqToSql but it doesn't seem to work for me with EntityDataSource. I currently have:

<telerik:GridTableView Name="ListItems" DataKeyNames="Id, Parent.Id" DataSourceID="ListItemsDataSource" ... runat="server">
<ParentTableRelation><telerik:GridRelationFields DetailKeyField="Parent.Id" MasterKeyField="Id" /></ParentTableRelation>

<asp:EntityDataSource ID="ListItemsDataSource" ContextTypeName="Blah.Bah" EntitySetName="ListItem" Include="Parent" Where="it.Parent.Id == @ParentId" OrderBy="it.SortOrder" ... runat="server">
<WhereParameters>
 <asp:Parameter Name="ParentId" Type="Int32" />
</WhereParameters>                    
</asp:EntityDataSource>

I'm pretty sure my problem is with the where parameter. It's not hooking into the Grid to fiter the results right. With LinqToSql the DataKeyNames and where paramenters could be identical and it worked, but with entities the DataKeys need to have a dot in them referencing the next object, and you can't put a dot in the parameter name of the where parameter used to filter the datasource. I've tried a bunch of different combinations of ParentId / Parent.Id but I can't seem to get my hierarchy to select with results filtered by the parent record.

If y'all would be kind enough to tell me what time it is or post an example of a grid with hierarchy using two EntityDataSource controls I'd be mighty appreciative. I am also using Automatic CRUD operations on these EntityDataSource controls so I don't think using a fully custom select is going to work, with LINQ I had to use Where.

bd



Andy
Top achievements
Rank 1
 answered on 09 Dec 2013
2 answers
663 views
I'm in the process of converting all my <asp:radiobutton> and <asp:Checkbox> controls over to <telerik:radbutton> setting ButtonType="ToggleButton"  and ToggleType="CheckBox" || ToggleType="Radio".  We're making these updates so that the controls can be custom-styled using CSS. This is working well but we're running into just one issue.  What we're struggling with is figuring out how to change the color of the checkbox text based on whether the checkbox is checked or not checked.  I've turned on every optional CssClass attribute to see what's rendered in the output, but i don't see any class name changes to the <span> around the text element.

Regardless of whether the checkbox is checked or not-checked, the output HTML looks like:

<span class="rbText rbSecondary">
    This is my checkbox text.
</span>

I can see that the <span> tag that contains the primary icon has a class that changes from rbToggleCheckbox to rbToggleCheckboxChecked when the checkbox is checked.  How can we accomplish the samething with the text portion of the checkbox?  I was really kind of expecting to see something like a SelectedCss attribute or something like some of your other controls have.  I experimented with the PressedCssClass attribute but that only seems to be active for a split second while the item is being pressed.  if the page loads and the checkbox is initially checked that class isn't referenced. 

Any advice you have for us is greatly appreciated.
Thanks!
-Mark
Mark Kucera
Top achievements
Rank 1
 answered on 09 Dec 2013
0 answers
109 views
post deleted
AAA
Top achievements
Rank 1
 asked on 09 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?