Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
63 views
I have a radcombo in a grid cell. When the user clicks a gridbutton column, i evaluate the value in the drop down in the ItemCommand event. My initial problem was that the radcombo was losing its value before the ItenCommand event.fired causing the radcombo to lose the value selected by the user. i was told to remove the code that loads the grid from the page_load event.

My issue now is, how do I repopulate the grid without affecting the value in the drop down. I cant reload the grid in the page_load because that fires prior to the itemcommand. Paging is not working in the grid and I also have to radcombo boxes outside the grid that filer the grid content when a command button is pressed.

Please assist.

thanks
Sebastian
Telerik team
 answered on 26 Nov 2009
4 answers
116 views

How i can use cookie in this sample(owner is telerik) with live link
link :

in this link just user that registered can change style...
(but wuth some change ... i used database to store data)
now i wanna user that not registered in my web site can change thire page
i think must use cookie

http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx

tnmx man
Pero
Telerik team
 answered on 26 Nov 2009
1 answer
126 views
Hi Everybody,

I'd like to know if does this component permit that shows times how it was a grid component?

For example, I'd like to show hours between 00:00 am and 23:55 pm with interval of 5 minutes.  Theses schedules woulb be shown as a grid, where this there would be 10 columns, see example:

00:00   00:05  00:10  00:15  00:20  00:25  00:30  00:35  00:40  00:45  00:50
00:55   01:00  01:05  01:10  01:15  01:20  01:25  01:30  01:35  01:40  01:45
...

Then, the user can click one or more times... Is it possible to do it with this component? Is there a demo that ilustrated a similar example that I liked?

Thank you for all attention,

Carlos
Johny
Top achievements
Rank 1
 answered on 26 Nov 2009
1 answer
77 views
Hi,

Does Grid support aggregate functions when it uses client side data binding?
Nikolay Rusev
Telerik team
 answered on 26 Nov 2009
1 answer
75 views
Hi,
 I have telerik 2009 and I m binding combo box to database . i want the text of the input field of Telerik RadComboBox to be empty when the page is loaded . But the issue is I get the text value of the checkbox's first list item in the input field of Telerik RadComboBox.

      <telerik:RadComboBox runat="server" ID="rcbLocation" HighlightTemplatedItems="true" DataTextField="Location" DataValueField="Location" Width="405px" AllowCustomText="false" >                                
                                    <ItemTemplate>
                                        <div onclick="StopPropagation(event)" >
                                            <asp:CheckBox runat="server" ID="CheckBox1" onclick="checkboxClick(event);" />
                                            <asp:Label runat="server" ID="Label1" AssociatedControlID="CheckBox1" Text='<%# DataBinder.Eval(Container, "DataItem.Location") %>' Font-Size="10pt" Width="88%"  />
                                        </div>
                                    </ItemTemplate>
                                    <CollapseAnimation Duration="200" Type="OutQuint" />
                                </telerik:RadComboBox>

    Me.rcbLocation.DataTextField = "Location"
        Me.rcbLocation.DataValueField = "Location"
        Me.rcbLocation.DataBind()
       Me.rcbLocation.Text=" "
I want to set the input field of Telerik RadComboBox to empty from server side..How can I do it ? Please let me know ..




Shinu
Top achievements
Rank 2
 answered on 26 Nov 2009
1 answer
112 views
Hi,
I would like to change the title font color of a dock which uses the forest skin to white,
since it is hard to read a black font over a dark green background.
I tried
.rdTitlebar, .rdTitle  
    {  
                color:White  !important; 
    }
but nothing happened.
Is it possible?
Thanks.
Martin
Telerik team
 answered on 26 Nov 2009
1 answer
111 views
We have the Full-Featured RadEditor for SharePoint. We have replaced the standard SharePoint editor with the Rad Editor for SharePoint, but the 'Paste from Word' button is not visible on the toolbar. We do see the Strip Word Formatting, but not the 'Past from Word'. I have added a screenshot of the Editor we see. The site features (Use RadEditor to edit HTML fields &  Use RadEditor to edit List Items) are active.

What went wrong? And more important: How can we fix this?

I think we have the RadEditor version 5.4.0.0 (I see the Rad Editor resources in:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\5.4.0.0__1f131a624888eeed\Resources)

On your help-site (http://www.telerik.com/help/aspnet-ajax/cleaningwordformatting%20.html) I found information about Cleaning Word Formatting, but we can't test this in real life...

Thanks in advance for the help !

Willem Oosterhof
The Netherlands
Stanimir
Telerik team
 answered on 26 Nov 2009
1 answer
105 views
In my popup edit form I have a templated column "TTL" and its TextBox   "TTLTextBox".
I want to suggest a value for this, and have used this code, which does not presen an inital value,
but has no error messages. Can you tell me why?
Thanks
Clive
Private Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated  
        If TypeOf e.Item Is GridEditableItem And e.Item.IsInEditMode Then  
 
            If e.Item.OwnerTableView.IsItemInserted Then  
                'item is about to be inserted  
                Dim item As GridEditableItem = DirectCast(e.Item, GridEditableItem)  
                Dim TxtBx As TextBox = DirectCast(item.FindControl("TTLTextBox"), TextBox)  
                TxtBx.Text = "21" 
 
            Else  
                'item is about to be edited  
            End If  
        End If  
    End Sub 

the rekevant column declaration is

<

 

telerik:GridTemplateColumn DataField="TTL"

 

 

DataType="System.Int16" HeaderText="TTL"

 

 

SortExpression="TTL" UniqueName="TTL">

 

 

<EditItemTemplate>

 

 

<asp:TextBox ID="TTLTextBox" runat="server" Text='<%# Bind("TTL") %>'

 

 

Width="30px" MaxLength="3" style="text-align:right"></asp:TextBox>

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label ID="TTLLabel" runat="server"

 

 

Text='<%# Eval("TTL") %>'></asp:Label>

 

 

</ItemTemplate>

 

Shinu
Top achievements
Rank 2
 answered on 26 Nov 2009
3 answers
202 views
I have a RadTabStrip hooked up to a RadMultiPage, with a 1px border set on the RadMultiPage. I've then used some CSS on the RadMultiPage control (margin-top: -1px) so that it aligns properly to the bottom of the tabstrip.

This looks great, except the border is continous on the RadMultiPage and doesn't break for the selected tab. I'm trying to get this to work with the "Gray" skin, but I'm also seeing similar behaviour with the "Vista" skin.

I've had a search through the forums and can't find any posts on this, although there is a post for the old RadControl which describes the margin solution I'm already using.

I'm sure I didn't used to have this problem with the pre-Prometheus version, so maybe it's something new with the ASP.NET AJAX version?
Dave
Top achievements
Rank 1
 answered on 25 Nov 2009
4 answers
236 views
Here is the scenario:

SQL Database Tables involved:
Contacts
Numbers             (A contact can have multiple numbers)
Addresses           (A contact can have multiple addresses)
PracticeAreas     (A contact can have multiple Practiceareas)

When I combine the tables in a single query I get multiple rows of the same contact when the contact has multiple numbers, addresses, or practice areas.  So I went ahead and built a grid with the datasource from a query that included just the contacts table. 

On the grid ItemDataBound I do calls to the database to pull the correct numbers/addresses/practiceareas for each contact.
I save multiple numbers in a hidden field as a string.  (Example:  "number1+number2+number3" could be a string of 3 numbers for one contact)
(Everything is displayed in a single Template column with multiple controls)

This works good but is pretty resource intensive doing multiple calls to the DB for each record.....

Also on the ItemDataBound event, when e.Item.IsInEditMode I fill my controls in my edit template with the values from my Contact datasource.  However, I am not sure how to access the hidden fields because they are in the ItemTemplate  How do I do that?

Also, does anyone have a better idea on how to display this type of data in a grid and keep track of it for edits and updates?





Developer
Top achievements
Rank 1
 answered on 25 Nov 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?