Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
120 views
I have a grid with a single master table view, which has an Form Template declared.  The form template contains (among other things) another RadGrid which needs to have it's NeedDataSource event wire up a data source.

<RadGrid

 

ID="m_rgMain" runat="server" Width="100%" AllowFilteringByColumn="false" OnNeedDataSource="m_rgMain_NeedDataSource"

 

 

OnItemCommand="m_rgMain_ItemCommand" OnItemDataBound="m_rgMain_ItemDataBound" >

 

 

<MasterTableView DataKeyNames="WmTaskId" HierarchyDefaultExpanded="true">

 

 

<Columns>

 

 

<telerik:GridButtonColumn UniqueName="EditButton" ButtonType="ImageButton" CommandName="Edit"

 

 

Text="View / Edit Task" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20px">

 

 

</telerik:GridButtonColumn>

 

 

<telerik:GridButtonColumn UniqueName="ViewButton" ButtonType="ImageButton" ImageUrl="View.png"

 

 

CommandName="View" Text="View Entity" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20px" />

 

 

<telerik:GridBoundColumn SortExpression="WmTaskId" HeaderText="Id"

 

 

HeaderButtonType="TextButton" DataField="WmTaskId" AllowFiltering="false">

 

 

<ItemStyle Width="50" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="PrioritySequence" HeaderText="Priority" HeaderButtonType="TextButton"

 

 

DataField="PrioritySequence" >

 

 

<ItemStyle Width="50" />

 

 

</telerik:GridBoundColumn>

 

 

    . . . other columns here
</
Columns>

 

 

<EditFormSettings EditFormType="Template">

 

 

<FormTemplate>

 

 

<table class="FormTable" width="100%" border="0" cellpadding="0" cellspacing="0">

 

 

<tr valign="top">

 

 

<td class="FormLabelCell">

 

 

<tst:TstLiteral runat="server" ID="litRole" Text="Role:"></tst:TstLiteral><br />

 

 

<tst:TstLabel runat="server" ID="lblRole"></tst:TstLabel>

 

 

</td>

 

 

 

</tr>

 

 

<tr>

 

 

<td class="FormFooterCell" colspan="7">

 

 

<RadGrid ID="rgCompany" runat="server" Width="99%" ShowStatusBar="true"

 

 

AutoGenerateColumns="False" AllowMultiRowSelection="False"

 

 

GridLines="None" OnNeedDataSource="rgCompany_NeedDataSource">

 

 

<MasterTableView Width="100%" DataKeyNames="CompanyId" AllowMultiColumnSorting="True">

 

 

<Columns>

 

 

<telerik:GridBoundColumn HeaderText="ID" HeaderButtonType="TextButton"

 

 

DataField="CompanyId">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn HeaderText="Name" HeaderButtonType="TextButton"

 

 

DataField="CompanyShortName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn HeaderText="Phone" HeaderButtonType="TextButton"

 

 

DataField="CompanyPhoneNumber">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</RadGrid>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</FormTemplate>

 

 

</EditFormSettings>

 

 

</MasterTableView>

 

</Rad

 

Grid>
In the edit form template, I want to show the companies associated with my taskId as information to the user editing the task info.
I can can get the EditFormTempalte at ItemDataBound time, then get the company RadGrid using FindControl and call its Rebind().
However, in the rgCompany.NeedDataSource event (which does fire), I can't get back to :
A)  the parent grid to get the key for which to drive my look up of the associated company data and
B)  I can't get a reference to the rgCompany grid so as to set the datasource to my company result set.

Is this possible and if so, can you provide the details of how to do it?

Thanks.

 

Mark
Top achievements
Rank 1
 answered on 21 May 2009
6 answers
232 views
Hi,

I have already reviewed your templates example
http://demos.telerik.com/aspnet-ajax/scheduler/examples/templates/defaultcs.aspx



and this provides the result I want, EXCEPT that rather than using Stylesheets with pre-defined colors, I want to provide end users with the color picker for a new appointment and allow them to color code based on a ColorPicker choice.

I had thought that I would be able to do something like this in the TimeslotCreated event -

                If e.TimeSlot.Appointments.Count > 0 Then
                    e.TimeSlot.Appointments(0).BackColor = Drawing.Color.Blue
                End If

But even in this hard-coded example, the scheduler adheres to its stylesheet. I wanted to avoid developing a custom color picker/stylesheet and use the colorPicker. Is there any way to accomplish this? Thanks.
Majd
Top achievements
Rank 1
 answered on 21 May 2009
2 answers
168 views
I use two RadCalendars to allow users to pick a date and time.

I have both calendars restricted to only allow dates that are within the last 30 days to be choosen.

This all works well. My users are requesting that the weekend dates look like the weekday dates (same style/font color).

I use the skins manager on the web site  so any page can be changed to any of the available skins.

How do I make the available weeknd dates look like the available weekday dates?

Thanks,
Joe
Joe
Top achievements
Rank 2
 answered on 21 May 2009
3 answers
402 views
I am using a RadUpload Control and it displays the text "Browse..." in the button displayed next to the textbox.  Is there a way to change the text for the "Browse..." button.  I am using RadControls for ASPNET AJAX Q1 2008.  I have noticed that you can use the "Localization" method to change the text for other types of control and so have tried: Localization["Select"] = "text"; for the RadUpload control, but this has no effect.

Cheers

Dave
Sudhanva
Top achievements
Rank 1
 answered on 21 May 2009
1 answer
129 views
Hi, we are using RadMenu with a XML data source.  But everytime we change something in the XML file, the change does not reflect in the menu immediately, sometimes taking hours.  What settings should we be looking at to change the refresh so that modifications to the XML can appear instantaneous?
Atanas Korchev
Telerik team
 answered on 21 May 2009
1 answer
121 views
I get the following message when viewing the home page...

~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager


My web.config handlers section has the item..

      <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />

Deployment was done on shared hosting environment.

Any ideas?
Atanas Korchev
Telerik team
 answered on 21 May 2009
5 answers
86 views
We have used radajaxpanel for pagination. On first pagination click the page is getting refreshed (instead of ajax call)  and on second/subsequent click it is performing ajax call. This issue is occuring in MOSS 2007 Environment

The same code/page is working properly in ASP.NET evnvironment. On first click it doesnt post and makes ajax call

Pls Help...
Rosen
Telerik team
 answered on 21 May 2009
5 answers
132 views
Hello,

I have 3 databound charts loaded on a page that load relatively fast as I have viewstate disabled for them.  I really love the new zooming feature and would like to turn it on for the charts, however I can't seem to get the plot area to render my data with zooming enabled unless viewstate is also enabled. 

For some reason the viewstate for these charts is massive (several hundred KBytes per chart), so I take a massive perf hit on the download and CPU processing on the web server with VS turned on.

Is ViewState absolutely needed for the Zooming/Scrolling functionality? (or is there anything clever I could implement to workaround?)  If it is needed, are there any pointers on how I can shrink the size of my viewstate blobs for the charts?

Thanks!

Chris
Giuseppe
Telerik team
 answered on 21 May 2009
3 answers
190 views
Hi, how can I stop fileexplorer from displaying certain folders? For example I might have a folder called "Admin" that other users do not need to see, how can I get file explorer to stop displaying this folder?

Thanks,
Matt
Fiko
Telerik team
 answered on 21 May 2009
9 answers
94 views

I have a RadGrid ,placed in a usercontrol (ascx) which is dynamically loaded and added to a MutliPage at runtime on a tab is click event.

When I use the RadAjaxManagerProxy to Ajax the TabStrip and its Multipage, the Grid renders with no Skin / CSS applied. just a few labels and buttons.

This only happens when the MultiPage the control is added to, is not the first shown at PageLoad and the Grid has 

AllowFilteringByColumn

 

="True"

 



When not using the RadAjaxManagerProxy and / or AllowFilteringByColumn is False it renders fine.

It appears as though it is not downloading the CSS or having it applied when this value is set ??



Sebastian
Telerik team
 answered on 21 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?