Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
456 views

Can someone advise how to programmatically create a radwindow and it needed elements?

And then add it to the page.

Kyle

Georgi Tunev
Telerik team
 answered on 11 May 2010
1 answer
151 views
hi guys

i have grid view.
pic : http://www.freeuploadimages.org/images/30brjuf9vbd7larfzalc.jpg

i need udpate buy basket(count textbox) when user click in Refresh button.

how i can implement that?

tnx
Princy
Top achievements
Rank 2
 answered on 11 May 2010
1 answer
112 views
When I create a new project (Visual C#, Web, RadControls Web Application, .NET Framework 3.5), I do not get RAD controls in the Toolbox.  Upgrading to 2010.1.415.35 (from 2010.1.309) did not help.  I have also tried right-click on "General" tab in toolbox then "Choose Items" and browse to the Telerik.Web.UI.dll.

Just noticed, too that old projects which used to have Telerik in the Toolbox now do not either.  Microsoft AJAX components (Pointer, Script Mangager, etc) are listed.

Thanks in advance!
Andrey
Telerik team
 answered on 11 May 2010
3 answers
156 views
hi,

currently I am doing grouping on single values as follows

GridGroupByExpression CountryCategoryExpression = GridGroupByExpression.Parse(" CName [ ],pName[    ProductValues/ServiceValues],sName[/] Group By CName"); 
CountryRadGrid.MasterTableView.GroupByExpressions.Add(CountryCategoryExpression); 

above code works fine for me.

but now my requirement changed as a way that the CName, pName and sName can be multiple (they are coming as array, which is as follows

Iana Tsolova
Telerik team
 answered on 11 May 2010
9 answers
839 views
Hi,

I want to call "InitInsert" through using  firecommand event in server side coding.I need to call this event from Combo box selected index changed event.

please answer this as soon as possible.

Regards,
Kishore
Rosen
Telerik team
 answered on 11 May 2010
4 answers
129 views
I have checkboxes in my grid row which I would like to pass to a new insert form.  However, the following code seems to be creating the form before inserting the data and therefore causing an invalid DBnull where it is expecting a boolean value.  How can this be corrected?

If e.CommandName = "CopyToInsertForm" Then 
                Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) 
                'Put the RadGrid in the insert mode  
                RadGrid1.MasterTableView.IsItemInserted = True 
                RadGrid1.Rebind() 
                'Get the inserformItem using the GetInsertItem Method  
                Dim insertedItem As GridEditFormInsertItem = DirectCast(RadGrid1.MasterTableView.GetInsertItem(), GridEditFormInsertItem) 
                'Finding the textbox in the insert form and setting it's value  
                TryCast(insertedItem("NCR").Controls(0), RadTextBox).Text = item("NCR").Text 
                TryCast(insertedItem("PartNumber").Controls(0), RadTextBox).Text = item("PartNumber").Text 
                TryCast(insertedItem("Title").Controls(0), RadTextBox).Text = item("Title").Text 
                TryCast(insertedItem("Disposition").Controls(0), RadTextBox).Text = item("Disposition").Text 
                TryCast(insertedItem("Status").Controls(0), RadTextBox).Text = item("Status").Text 
                TryCast(insertedItem("maj").Controls(0), CheckBox).Checked = item("maj").Text 
                TryCast(insertedItem("min").Controls(0), CheckBox).Checked = item("min").Text 
                TryCast(insertedItem("corractionreqyes").Controls(0), CheckBox).Checked = item("corractionreqyes").Text 
                TryCast(insertedItem("corractionreqno").Controls(0), CheckBox).Checked = item("corractionreqno").Text 
 
            End If 


I work around the issue in normal insert with the following code:

            If e.CommandName = RadGrid.InitInsertCommandName Then 
                e.Canceled = True 
                'Prepare an IDictionary with the predefined values 
                Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary() 
 
                'set initial checked state for the checkbox on init insert 
                newValues("maj") = True 
                newValues("min") = False 
                newValues("corractionreqyes") = False 
                newValues("corractionreqno") = True 
                newValues("Liason") = User.Identity.Name + Space(5) + DateTime.Today 
 
                'Insert the item and rebind 
                e.Item.OwnerTableView.InsertItem(newValues) 
            End If 

Iana Tsolova
Telerik team
 answered on 11 May 2010
1 answer
118 views
In an AJAX callback function we get a GridDataItem and set it to selected.  This appears to work ok in the client and is visible in the UI.  We even set a label in the client base on the values in the selected item with no problem.
Client side setting selected item:

itemsNY[i].set_selected(true); 
itemsNY[i] is a GridDataItem

On the server when we go to get the selected item from grid we are getting a previously set selected item, not the one set by our ajax callback code.  Is there anything we can do to figure this out?  We are working around it with hidden variable, but this is kind of messy.

Server side access to selected item:
radGrid.MasterTableView.DataKeyValues[radGrid.SelectedItems[0].ItemIndex] 

Tsvetoslav
Telerik team
 answered on 11 May 2010
1 answer
92 views
I have 2 timepicker and a numeric text box in each grid cell.  So as the user makes a selection on either of the Timepickers the , numeric txtbox is supposed to show the differences of the two selections.  I need to to find a way to accomplish this behaviour.  Any help is appreciated.

Heres my itemtemplate in the grid.

 <ItemTemplate>
                                    <table  >
                                        <tr>
                                            <td align="center">
                                                <asp:CheckBox ID="cb7" runat="server"   />
                                                <asp:Label    ID="lb7" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                            <telerik:RadTimePicker ID="txt_InD7" runat="server" Width="86"></telerik:RadTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                              <telerik:RadTimePicker ID="txt_OutD7" runat="server" Width="86"></telerik:RadTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                        
                                            <telerik:RadNumericTextBox ID ="txt_MinD7" runat="server" MaxLength="3" Width="54"></telerik:RadNumericTextBox>
                                            <asp:CompareValidator ID="CompareValidator7" runat="server"  ControlToCompare="txt_InD7" ControlToValidate="txt_OutD7" Operator="GreaterThan" ErrorMessage="*"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                    </table>
                                   
                            </ItemTemplate> 
Shinu
Top achievements
Rank 2
 answered on 11 May 2010
1 answer
91 views
Hello

I have a RadEditor in a databound detailsview.
Now when the detailsview inserts i want to insert the text from the RadEditor as html.
Is there a way to do this

Thanks
Rumen
Telerik team
 answered on 11 May 2010
1 answer
161 views
whenever i try to use the rad controls ,an error pops up by the side of the control(in design mode).the error is as follows :

error creating control:
could not load file or assembly 'telerik.web.ui' version=2009.3.1208.35 culture=neutral,public key token=121fae 78165ba3d4' or one of it's dependencies.the system could not find the file specified

pls help me undestand why this error is occuring,and how to overcome it......................
Princy
Top achievements
Rank 2
 answered on 11 May 2010
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?