Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
123 views

Hi,

I have a RadCombox inside of a RadGrid and from OnClientSelectedIndexChanged event I need to call javascript function to get GridDataItem's DataKeyValue. Is there any example somewhere?

Thanks,
Enoch

Enoch Kuang
Top achievements
Rank 1
 answered on 02 Feb 2010
1 answer
200 views
Hi,

I'm having problems when using RadScriptManager with EnableHistory set to true, and using the RadAjaxManager to ajaxify the page.

I have a page with a row buttons - when a button is clicked, a corresponding usercontrol is dynamically loaded into a ContentPlaceHolder on the page. I've ajaxified this, using the RadAjaxManager, and it works fine. Though, I would like to have the browsers backward and forward buttons to work as well. 

In order to do so, I've set the EnableHistory property of the RadScriptManager to true. And I'm adding history points using the AddHistoryPoint method and implementing OnNavigate to restore "state". However the buttons and ContentPlaceHolder aren't updated with the RadAjaxManager - though Page's title updates correctly - when clicking the forward or backward button of the browser. 

The code works, if I replace the RadAjaxManager with an ASP.Net ajax UpdatePanel instead, and call UpdatePanel.Update from OnNavigate method. I'm guessing, I’m missing the functionality of the Update() method of the UpdatePanel, with using the RadAjaxManager - but I can't find any way to force an update with RadAjaxManager.

Any ideas? Any help would be much appreciated

Best regards,

Magnus 

Radoslav
Telerik team
 answered on 02 Feb 2010
2 answers
120 views
It's a shame that RadComboBox doesn't inherit from RadInputControl so it had a "Label" property.

One for the ToDo list possibly?

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 02 Feb 2010
5 answers
251 views
I have tried multiple ways of getting a RadComboBox to work in my application, and have not had any success yet. I am hoping I can get some guidance.

My situation seems pretty simple and common: I need a drop down list of items to contain two unique id's and some text for my items. Whichever item is selected by the user, I need to get the two unique id's for that selected item.  Also, I only want to load my radcombobox during the initial page load, not on individual postbacks.  And I want the first item in the list to be a "default" type of item that has no unique id's assigned to it and the test is just something like "<Select>".

I have tried using the ItemTemplate, and setting up attributes to hold my 2 unique id's, but the attributes disappear after a postback.

I tried using the ItemTemplate with some Hidden Field controls to hold my 2 unique id's.

I tried not using the ItemTemplate, but just setting the item.DataField to my object that contain the information I want.

All combinations of these i have tried loading several ways...calling the DataBind() on the main combobox control; Adding the items one at a time, and calling the DataBind() on each individual item...but each time, I get something to work, but not work 100%.

Is there an example that someone can give me of a good way to do this? I would think my situation is fairly common...

Thanks in Advance!
-Stacey


Kalina
Telerik team
 answered on 02 Feb 2010
2 answers
115 views
Hi,

I have 2 combo boxes on a page. The second one is dependent on the data selected in the first. The first one is loaded on page load. 

Everything works fine till this step.

1. User comes to screen, selects data in 1st combo. 
2. 2nd combo gets populated. User selects data in 2nd combo. 

Now here I have autopostback=true, and OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged", which hits the server and populates a Grid control. 

The problem I am facing is that when the form comes back, I have lost the data and the selected value in the 2nd dropdown. As a result, the grid control also doesnt get any data. 

This is how the 2nd combo looks. 
        <telerik:RadComboBox style="margin-left: 77%" ID="RadComboBox2" runat="server"  
          Skin="Windows7" OnClientItemsRequested="ItemsLoaded" 
          OnClientSelectedIndexChanging="LoadFunds" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged" 
          OnItemsRequested="RadComboBox2_ItemsRequested" Width="350px" AutoPostBack="true"> 
        </telerik:RadComboBox> 
 


Any help would be appreciated here.

Thanks.
Kalina
Telerik team
 answered on 02 Feb 2010
1 answer
257 views
Hi,

   I have used hirarchial grid,i have a master detail structure....
This works fine,but i need to display a table along with inner grid
within the master table view.
I tried doing this using nestedview template but could achive the same.....
How will i be able to acheive this.....

Thanks in Advance
Pushpa.
Pavlina
Telerik team
 answered on 02 Feb 2010
1 answer
498 views
Hi,

I have following issue, i used this approach on previous project. Now with telerik components I dont get effect of higlighted control. Jquery add class to control wich is below that visible one.

<span id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_wrapper" class="RadInput RadInput_Default" style="white-space: nowrap;"><input size="20" id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_text" name="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_text" class="riTextBox riEnabled" style="width: 90%;" type="text"><input id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle" name="ctl00$ctl00$BodyBase$ContentPlaceHolder1$DocTitle" class="rdfd_ inputError" style="border: 0pt none ; margin: -18px 0pt 0pt; padding: 0pt; overflow: hidden; visibility: hidden; width: 1px; height: 1px;" value="" type="text"><input autocomplete="off" id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_ClientState" name="ctl00_ctl00_BodyBase_ContentPlaceHolder1_DocTitle_ClientState" type="hidden"></span> 
         
        <span id="ctl00_ctl00_BodyBase_ContentPlaceHolder1_RequiredFieldValidator1" class="validation-error" style="color: Red; visibility: visible;">&nbsp;</span> 
         

Its class inputError on second input, but i think i need it on first one. 

Can you help me to set up css class to input control wich is handled by telerik RadTextbox/RadFormDecorator? 

Mainly i want show validation summary with listed errors and highlight conflicted controls. Is there some way to do it, when im using RadTextBox/RadFormDecorator?

Please as small more code as possible. I have many places to edit. Best solution is change Jquery script to add error class to the right input for me. 

Many Thanks!


Dimo
Telerik team
 answered on 02 Feb 2010
4 answers
240 views
I have a GridTemplateColumn in a RadGrid. It was a DateTime Column.

<telerik:GridTemplateColumn FilterListOptions="VaryByDataType" DataType="System.DateTime" 
                    DataField="cr_task_dt" GroupByExpression="cr_task_dt Group By cr_task_dt" HeaderText="Next date to contact" 
                    UniqueName="cr_task_dt" SortExpression="cr_task_dt"> 
                    <ItemTemplate> 
                        <asp:Label runat="server" ID="lblTaskDate" Text='<%# Eval("cr_task_dt_str") %>'></asp:Label> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <asp:TextBox CssClass="datepicker" ID="txtTaskDate" Text='<%# Eval("cr_task_dt") %>' 
                            runat="server"></asp:TextBox> 
                        <ajax:MaskedEditExtender ID="MaskedEditExtender4645" runat="server" TargetControlID="txtTaskDate" 
                            Mask="99/99/9999" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" 
                            OnInvalidCssClass="MaskedEditError" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" 
                            CultureName="zh-SG" ErrorTooltipEnabled="True" /> 
                    </EditItemTemplate> 
                </telerik:GridTemplateColumn> 

The grid datasource was a linqdatasource. It works fine in all functionalities like sorting,filtering and grouping.
The only issue is it shows Time part in the grouping header as below,

"Next date to conact: 6/1/2010 12:00:00 AM"

"Next date to conact: 4/12/2010 12:00:00 AM"

I dont want the Time part (12:00:00 AM) to be displayed in the group header.  How to remove it?

Please help me sort it out. Thanks in advance.

Regards,

Aswin Suriya


Aswin S
Top achievements
Rank 1
 answered on 02 Feb 2010
2 answers
123 views

Hi All,

 

We are currently in the process of purchasing the AJAX RadControls suite for 3 developers. My question is, how easy is it / how fast can one get up to speed on developing with the AJAX controls assuming the following:

 

1. Everyone in our team is completely new to AJAX and working with RadControls

2. we have been supporting an old solution that uses RadControls but all of the templates were built for us by a consultant

3. the solution we currently support is .Net 1.1 and we develop in VS2003

4. We will be building our new app on VS2005 and .Net 2.0

 

We need to get a fairly small searching and customer database management app built in a month. We have done the functional and tech specs and are ready to begin coding.

 

So my question is (finally) - Is it realistic to expect us to be able to get up to speed and build some telerik enabled pages inside a month?

 

Where would you suggest we start? I downloaded the 794 page manual from the telerik site and will read but obviously that is going to eat a bunch of time. Are there any other good quick resources to get us up and running quickly?

Appreciate any feedback even if it is just - "you're screwed man..." :)

DC
Top achievements
Rank 1
 answered on 02 Feb 2010
3 answers
128 views

Sorry if I've missed the point here, but here's my issue.

I've got a RadGrid  declared like this

 

<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowPaging="True"

                    AutoGenerateColumns="False" OnUpdateCommand="UpdateItem" OnInsertCommand="UpdateItem"

                    AutoGenerateDeleteColumn="false" AutoGenerateEditColumn="false" OnDeleteCommand="DeleteItem"

                    Skin="WebBlue" OnNeedDataSource="NeedDataSource" Width="50%" OnItemCommand="LawyerSelected">

                    <PagerStyle Mode="NextPrevAndNumeric" />

                    <MasterTableView CommandItemDisplay="TopAndBottom" AutoGenerateColumns="false" DataKeyNames="LawyerID"

                        BorderColor="Black" BorderWidth="1px" GridLines="Both">

                        <Columns>

                            <telerik:GridBoundColumn DataField="LawyerID" DataType="System.Guid" AllowFiltering="false"

                                HeaderText="LawyerID" UniqueName="LawyerID" Visible="False">

                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">

                            </telerik:GridBoundColumn>

                            <telerik:GridBoundColumn DataField="Company" HeaderText="Company" UniqueName="Company">

                            </telerik:GridBoundColumn>

                            <telerik:GridTemplateColumn UniqueName="TemplateColumn2">

                                <ItemTemplate>

                                    <asp:LinkButton ID="EditButton" CommandName="Edit" CommandArgument="Edit" Text="Edit" runat="server"></asp:LinkButton>

                                </ItemTemplate>

                                <EditItemTemplate>

                                    <asp:LinkButton ID="UpdateButton" CommandName="Update" CommandArgument="Update" Text="Update" runat="server"></asp:LinkButton>

                                    <asp:LinkButton ID="CancelButton" CommandName="Cancel" CommandArgument="Cancel" Text="Cancel" runat="server"></asp:LinkButton>

                                </EditItemTemplate>

                            </telerik:GridTemplateColumn>

                        </Columns>

                        <EditFormSettings ColumnNumber="2" CaptionDataField="Name" CaptionFormatString="Editing Lawyer {0}">

                            <FormTableItemStyle Wrap="false" />

                        </EditFormSettings>

                    </MasterTableView>

                    <ClientSettings EnablePostBackOnRowClick="true"></ClientSettings>

                </telerik:RadGrid>

 

The important bits being that the auto edit feature is turned off.

 

What I want to be able to do is either click on the edit link (Edit Button) to edit the row or click on a row to do something else (display related information).

For some reason when I click on a row the CommandName that’s returned is usually rowClick and not Edit.

Chirag Dedhia
Top achievements
Rank 1
 answered on 02 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?