Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
184 views

Folks,

 
I am using RadControls for ASP.NET AJAX Q2 2009 SP1 with Visual Studio 2008 SP1.


I have a   
Heirarchical Grid (

MasterTableView

  and  DetailTables  both uses FormTemplate). In DetailTables, I have a RadCombo Box. Is it possible:

 

1)    In RadGrid1_UpdateCommand/ RadGrid1_InsertCommand Events, capture the Template Values of City and ContactTitle into string Variables?  Neither City nor ContactTitle are DataTextField or  DataValueField of ComboBox?

 

2)    After the RadComboBox1_SelectedIndexChanged Event of ComboBox (autopost is set to true here), is it possible to update a label (ComboBoxContactTitle) in DetailTable Form Template?

 

 

Below is my code. Any help will be appreciated.

Thanks


GC_0620

_________

 

protected

 

void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)

 

{

}


______

<

 

telerik:RadGrid ID="RadGrid1" OnInsertCommand="RadGrid1_InsertCommand"

 

 

OnUpdateCommand = "RadGrid1_UpdateCommand" >

 

<

 

MasterTableView runat = "server" Name = "Master">

 

<!

 

Beginning Block of Child DetailTable -->

 

<

 

DetailTables>

 

 

<telerik:GridTableView runat="server" Name = "Detail"

 

 

<ParentTableRelation>

 

...

 

</ParentTableRelation>

 

 

 

<Columns>

 

....

 

<telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName" HeaderStyle-Width="50%"

 

 

SortExpression="ContactName" UniqueName="ContactName" >

 

 

</telerik:GridBoundColumn>

 

....

 

</Columns>

 

 

<

 

EditFormSettings EditFormType="Template">

 

<

 

EditColumn UniqueName="EditCommandColumn1"></EditColumn>

 

 

<FormTemplate>

 

 


<
table id="Table1">

 

 

<tr>

 

 

<td>

 

Contact Name

 

</td>

 

 

<td>

 

 

<telerik:RadComboBox runat="server"

 

 

ID="RadComboBox1"

 

 

DataTextField="ContactName"

 

 

DataValueField="ContactName"

 

 

HighlightTemplatedItems="true"

 

 

Height="190px"

 

 

Width="220px"

 

 

DropDownWidth="420px"

 

 

DataSourceID="SQLDataSource1" AutoPostBack="True"

 

 

onselectedindexchanged="RadComboBox1_SelectedIndexChanged"

 

 

SelectedValue='<%#Bind("ContactName") %>'>

 

 

 

<HeaderTemplate>

 

 

<ul>

 

 

<li class="col1">Contact Name</li>

 

 

<li class="col2">City</li>

 

 

<li class="col3">Title</li>

 

 

</ul>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<ul>

 

 

<li class="col1"><%# DataBinder.Eval(Container.DataItem, "ContactName") %></li>

 

 

<li class="col2"><%# DataBinder.Eval(Container.DataItem, "City") %></li>

 

 

<li class="col3"><%# DataBinder.Eval(Container.DataItem, "ContactTitle") %></li>

 

 

</ul>

 

 

</ItemTemplate>

 

 

</telerik:RadComboBox>

 

 

</td>

 

 

<td colspan="2" style="font-size:small; z-index:0; font-family:Bookman Old Style; color:#669999">

 

 

<asp:Label ID="ComboBoxContactTitle" runat="server" Text="Contact Title"

 

 

Font-Underline="True">

 

 

</asp:Label>

 

 

</td>

 

 

 

</tr>

 

...

 

</table>

 

 

</FormTemplate>

 

 

</EditFormSettings>

 

 

</telerik:GridTableView>

 

</

 

DetailTables>

 

<!

 

Ending Block of Child DetailTable -->

 

<!

 

Beginning Block of MasterTableView -->

 

 

<Columns>

 

...

 

</Columns>

 

 

<EditFormSettings EditFormType="Template">

 

 

<FormTemplate>

 

...

 

 

</FormTemplate>

 

 

</EditFormSettings>

 

...

 

</

 

MasterTableView>

 

<!

 

Ending Block of MasterTableView -->

 

</

 

telerik:RadGrid>

 

<

 

asp:SqlDataSource ID="SqlDataSource1" runat="server"

 

 

ConnectionString="<%$ ConnectionStrings:SomeConnectionString %>"

 

 

SelectCommand="SELECT * FROM [Customers] ORDER BY City">

 

 

</asp:SqlDataSource>

 


______

______

Freddy Beltran
Top achievements
Rank 1
 answered on 23 Oct 2009
1 answer
65 views
hi all,

how to show all the appointments in monthview? i dont want to show the "more" link.

thanks,
Shinu
Top achievements
Rank 2
 answered on 23 Oct 2009
2 answers
145 views
Hi friends,

In Edit appointment (scheduler)  there is a radio button, on clicking the radiobutton a drop down should display ,ie if the radiobutton is not selected visibility of dropdown is false , I dont knw how to do this,
any idea

regards
chinnu
Chinnu Prabhakar
Top achievements
Rank 1
 answered on 23 Oct 2009
2 answers
88 views
Hi Friends,

When I click on the option button of the scheduler , the editAppointmnet window appears behind the menu bar of my web page, is it possible to avoid this , here is the image


REgards

chinnu


Chinnu Prabhakar
Top achievements
Rank 1
 answered on 23 Oct 2009
2 answers
228 views
Hi

I've got a nested gridview which I want to be editable. The master gridview works fine out of the box, but I need to set one of the controls in the nested grid to the parent key field value at insert, and preferably hide it in edit mode as well. Is there a tutorial for how this is done somewhere?

Grid one: PersonID
Grid two: AddressID, PersonID (must get value from parent grid)....

Re
Dennis
Dennis Gundersen
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
105 views
When I use RadEditor to create a HTML content something strange is happening after I store the content into the database. It was not happening before I think, but since I installed the latest version.
When I need to type a space character, after the content is stored into the database, I get this one in the place of the space: Ã‚ If someone knows how to fix that, I would greatly appreciate. I already used the suggestion about the "greek characters after pasting from word", but I think it's not my case.

Thanks,
Ivan
Ivan Stoilkov
Top achievements
Rank 1
 answered on 22 Oct 2009
3 answers
330 views
I have a problem with CSV / Excel-export from RADGrid (Q2 2009).

At my customers site, the export ends up as an Excel appl. completely embedded in the browser window.
The browser window is a RadWindow ... so I end up with an Excell sheet I cannot control at all (no menus).

If I access the site from my own PC, Excel is started as a standalone application - and my customer wants that as well.
I am pretty sure I could solve the problem if I was Administrator on the site (although I dont know yet exactly where to change which setting).

In other areas of the application I have coded my own CSV Export - and it works as the customer wants (Standalone Excel).

I have grabbed the HTTP Response headers from the RadGrid-Export, and found this:
"Content-Disposition: inline;filename="%52%61......"
and this:
Content-Type: application/vnd.ms-excel

In my own CSV-export I use this:
Response.AppendHeader("Content-Disposition", "attachment;filename=Job.csv")
Response.ContentType = "application/download"

Is there somehow a possibility that I can change the way RadGrid does the export ?

Thanks
Daniel
Telerik team
 answered on 22 Oct 2009
1 answer
74 views

Afternoon, please forgive the laymens manner of the question.

When viewing any appoitment in the sceduler or diary views there is a function that allows an appointment to be extended usually at the rhs or base of the particulat appointment.

 

I would like to know if its possible to apply this function to both sides of an appitment, so an appintment could be shortened and lengthed from both sides - Thanks

T. Tsonev
Telerik team
 answered on 22 Oct 2009
2 answers
146 views
I have a RadWindow opened and I can click on the 'X' or Click on a Close button.  The OnClientClick event basically does a oWnd.close().  

The problem is I need to be able to close this window from the 'Close' button when the user hits the Enter key. When I do this it causes a postback.  Normally I would return false.  But I can't return false because the window.close() method takes me out of context. 

Anyone?
Robert
Top achievements
Rank 1
 answered on 22 Oct 2009
2 answers
294 views
Hi

I am using the web blue skin from q3 2008. PLease can you tell me how i can make the expand/collapse column smaller in width. I created a custom skin based on the web blue skin and i have tried to make the width smaller like so

.RadGrid_SureTrack

 

.rgExpand

 

{

 

background-position:2px -722px;

 

 

width: 15px;

 

}



but to no avail.

Many thanks
Jeff Mikla
Top achievements
Rank 1
 answered on 22 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?