Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
84 views
Hello,

well I have following Problem. Developing site with .NET 3.5, C#, Telerik Controls Q2/2008. On this site there is a RadGrid and a Formular. Both of them "ajaxified". Grid with this in code behinde:
RadAjaxManager manager = RadAjaxManager.GetCurrent(this.Page);
manager.AjaxSettings.AddAjaxSetting(m1ButtonSave, GrdAllNlCategorys);

which means when a save button is clicked grid should reload. And the form is in an
Ajax panel like this:
<telerik:RadAjaxPanel id="Radajaxpanel2" runat="server">
</telerik:RadAjaxPanel>

now following, there is an edit button, so when a user klicks on it I load the data of this item into the form at this site with following code:
private void SetDataFields(GridDataItem gdi, GridDataItem parentgdi)
        {
            UserInfo myCurrentUserInfo = SessionItems.CurrentUserInfo;
            using (M1eRelCLCustomerDB customerDBContext = ConnectionManager.CreateCustomerDBContextRO(myCurrentUserInfo.ConstraintCustomerID))
            {
                TxtCategorieName.Text = gdi["NewsletterCategoryName"].Text;
                TxtNlCategoryDescription.Text = ""; // gdi["AdmCustomerID"].Text;
                            }
        }
now my problem is, that the app comes into this, it gives the value to the telerik
textbox control. I see it in a debug mode, but the value is not displayed. If I remove the first ajaxifinig from grid, then it works.
Can someone give me a helpfull advice how to solve this issue.

regards,
zk
Sebastian
Telerik team
 answered on 03 Oct 2008
1 answer
67 views
Hi,

I set up the RadGrid EditMode to "PopUp" and also use the FormTemplate for editing and inserting. Everything works fine. The only thing I cannot control is the position of the pop up. So, can anybody help?

Thanks.
Princy
Top achievements
Rank 2
 answered on 03 Oct 2008
2 answers
104 views
Hi..
I'm using the built in editing with a Combo Box.
How to I add an event handler or pass the value of the combo box to another combo box - in order to set that second combo box's data source


Combo Box 1 is Products...
Combo Box 2 is Sub Products 

It's a parent / child relationship

So whent he user selects Product A - Combo 2 only displays the Sub Products of Product A

thanks
Princy
Top achievements
Rank 2
 answered on 03 Oct 2008
5 answers
164 views
Dear All,

How to specify the row height of the grid.

Is there any way to make the row height fixed.

Or else it can be changed dynamically in code or design.

Can any one let me know the possibility of it?

Thanks a lot in advance.

Jebamalai
Top achievements
Rank 1
 answered on 03 Oct 2008
1 answer
111 views
Hi ,

I'm currently using Rad Grid to display data. In the grid one the columns is a composite column means it is a combination of 3 columns from the table. For e.g. Name (FirstName + Middle Initials + Last Name). I want to allow the users to sort on that column but I'm not able to do it. I searched Telerik site and found MultiColumnSorting but no example on how to use it. Googling also didnt help me much.

This column is a label field in telerik:GridTemplateColumn. I'm SortExpression="FirstName" as an attribute. I've also registered SortCommand event. In that event I'm creating GridSortExpression object, assigning FirstName as its datafield property (If I assing FirstName, LastName ,  it throws an exception saying FirstName cannot be found but it is there in the table). I am also setting AllowMultiColumnSorting property to true but no luck. Any guidance on how to sort the Composite column.

Thanks in advance
Maulik Khandwala
Shinu
Top achievements
Rank 2
 answered on 03 Oct 2008
4 answers
110 views
I have a simple RadTabStrip and MultiPage combination. However, I want to be sure that they work if a user doesn't have Javascript enabled. Unfortunately, I can't seem to get this to work. I tried using querystirngs and the preventing postback in the OnClientTabSelcting, but that didn't work. I tried ajaxifying them using RadAjaxProxyManager (its a usercontrol) and using values to identify the selected tab, but that didn't seem to Ajaxify the RadMultiPage when Javascript was enabled. And am I missing something simple here?
bnye
Top achievements
Rank 1
 answered on 03 Oct 2008
1 answer
130 views

I want to implement radio buttons called “Expand/Collapse Selected” which would toggle depending on the state of what is selected.

 If you chose to Expand on the root (grandparent/first) level, it should drill in all the way.  If you are on the second level, it should expand all the way also, but just for that record. It should not expand the other records on the grid, only the selected (clicked) one.
How do I achieve this?

Shinu
Top achievements
Rank 2
 answered on 03 Oct 2008
1 answer
101 views
I am using the RadDateTimePicker as follows:

<telerik:GridTemplateColumn HeaderText="Expiry Date" UniqueName="expirydate" Visible="false"> 
                        <EditItemTemplate> 
                             <telerik:RadDateTimePicker AutoPostBackControl="Both" ID="expirydate" runat="server" Skin="Hay" SelectedDate='<%# Eval("expirydate") %>'> 
                            </telerik:RadDateTimePicker> 
                        </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 

Because it is in an EditItemTemplate, it throws an error when an 'add' is clicked because there is no value for SelectedDate.  Does anyone have any idea how I can set a default value for this?
Shinu
Top achievements
Rank 2
 answered on 03 Oct 2008
1 answer
336 views
I am using a RadGrid to display a list of checkbox items, upon checking an item, I would like to open that row for editing.  What is the best way to accomplish this?  Thanks.
Shinu
Top achievements
Rank 2
 answered on 03 Oct 2008
0 answers
100 views
I don't want to include the foreign key id in my Appointment object - an Appointment HAS A Resource, not a Resource Id, and I shouldn't need to include the foreign key. Is there a way to do this? In other words, if I have an Appointment object that has an Employer object represented as an Employer dropdown, is there a way for the Scheduler to save the Employer object to the Appointment (basically the Scheduler would do something like myAppointment.Employer = myEmployer, where myEmployer is the Employer instance represented by the dropdown selection)? I don't want to include notions of foreign keys in my objects. That is bad design.


Gabriel
Gabriel
Top achievements
Rank 1
 asked on 02 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?