Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
125 views
Sorry if this has been covered before...

I'm using VS2008 and the Entity Framework DataModel.

I have some fields in the database that are just strings saying "True" or "False".  There are about 15 or so entries for each field.  I can't do a databaind on the fields because I end up with 15 or so trues and falses in the drop down.  So I decided that I'd like to use the <Items><...RadComboBoxItem> instead to display the choices.  My problem is that I can't pull out the correct data from the database for the respective fields. 

Example:
I have one field called 'Half Year Interest' and the data is "False". 
My code behind is
this.halfYearInterestGroup9RadComboBox.Text=study.DataModel.Half_Year_Interest9;
My aspx code is
            <telerik:RadComboBox ID="halfYearInterestGroup9RadComboBox" runat="server" Width="200px" 
              style="left: 662px; top: 350px; position: absolute; text-align: right;">  
                <Items> 
                  <telerik:RadComboBoxItem Text="" Value="" /> 
                  <telerik:RadComboBoxItem Text="True" Value="True" /> 
                  <telerik:RadComboBoxItem Text="False" Value="False" /> 
                </Items> 
              </telerik:RadComboBox> 
It is pulling up the default empty string instead of "False". 

It feels like there is some connection piece missing somewhere, like the combobox isn't receiving data from the database somehow.  BUT... When I run the program and put breakpoints on the backend, I hover over the fields and see the correct data... I just then don't see it on the aspx side when it's completed running.

My question is this:  How can I pull up the correct data from the database and still use the Item Selections from the aspx page?

Any help would be greatly appreciated.
Thanks!
wen
Wendy Hunt
Top achievements
Rank 2
 answered on 07 Apr 2010
2 answers
95 views
I have a requirement to display an error message within the grid below each row where an error has occurred (see attached file for screen shot example). I was attempting to accomplish this by having a column at the end of my grid that would be visible cell if an error occurred and I was hoping to get the cell to wrap onto a new line but within the same row of the grid but not having a header for this column. I cannot figure out how to do this.

Does anyone else have any idea of how I can display an error message within a grid row like this?

Thanks,
Dan
Daniel
Top achievements
Rank 1
 answered on 07 Apr 2010
1 answer
75 views
I need to start using Telerik controls in an older .NET 2.0 project.

What version of the controls on the following page do I need to download that will be compatible with this older project?

http://www.telerik.com/account/downloads/product-versions.aspx?pid=561

Thanks.




Schlurk
Top achievements
Rank 2
 answered on 07 Apr 2010
6 answers
171 views
For my tastes, anyway. It seems that it fires the moment the user clicks on the expand icon. I want an event that fires when the node is expanded, which frankly is what I expected...Any solution for that? I want it for some code that has something to do with height so I need to get the final expanded height. I tried using a timer with a delay longer than the animation duration but no luck. Any help would be appreciated.
Dimitar Milushev
Telerik team
 answered on 07 Apr 2010
6 answers
253 views

Hi,
I'm trying to implement the dragging feature of the ListView as so:

                        <telerik:RadPane ID="RadPane2" runat="server" Height="100%" Width="300px" Scrolling="None">  
                            <telerik:RadListView ID="RadListView1" runat="server" DataSourceID="EntityDataSource1" EnableEmbeddedSkins="false" 
                                AllowPaging="true" ItemPlaceholderID="ListViewContainer">  
                                <ClientSettings AllowItemsDragDrop="true">  
                                </ClientSettings> 
                                <LayoutTemplate> 
                                    <div class="RadListView RadListView_<%# Container.Skin %>">  
                                        <asp:PlaceHolder runat="server" id="ListViewContainer" /> 
                                    </div> 
                                </LayoutTemplate> 
                                <ItemTemplate> 
                                    <div class="rlvI">  
                                        <telerik:RadListViewItemDragHandle ID="RadListViewItemDragHandle1" runat="server" ToolTip="Drag to the Sample Editor" /> 
                                        <asp:Panel ID="uxSampleEditorItemContainer" runat="server" ondragstart="OnClientNodeDragStart(this)" ondrag="OnClientNodeDragging()" ondragend="OnClientNodeDropping(this)">  
                                            <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" ImageUrl='<%# Eval("FileSystemName", "~/Contents/UploadedFiles/UserFiles/{0}") + ".jpg" %>' 
                                                AutoAdjustImageControlSize="true" ResizeMode="Fit" Width="90px" Height="110px" ToolTip='<%# Eval("FileTitle") %>' 
                                                AlternateText='<%# Eval("FileDescription") %>' dataSrc='<%# Eval("FileSystemName", "~/Contents/UploadedFiles/UserFiles/{0}") + ".jpg" %>' /> 
                                        </asp:Panel> 
                                    </div> 
                                </ItemTemplate> 
                            </telerik:RadListView> 
                            <asp:EntityDataSource ID="EntityDataSource1" runat="server" AutoPage="true" AutoSort="true" 
                                ConnectionString="name=SampleEntities" DefaultContainerName="SampleEntities" EntitySetName="Files">  
                            </asp:EntityDataSource>          
                        </telerik:RadPane> 

I noticed that after rendering, the "move" input button has the following properties and css properties:
I also notice that the "move" image is missing.

<input title="Drag to the Sample Editor" class="rlvDrag" id="ctl00_ctl00_ctl00_uxSiteContentContainerContentPlaceHolder_uxSiteLayoutContentContainerContentPlaceHolder_uxContentLayoutContentContainerContentPlaceHolder_RadListView1_ctrl0_RadListViewItemDragHandle1" onmousedown="$find('ctl00_ctl00_ctl00_uxSiteContentContainerContentPlaceHolder_uxSiteLayoutContentContainerContentPlaceHolder_uxContentLayoutContentContainerContentPlaceHolder_RadListView1')._itemDrag._dragHandleMouseDown(event, 0)" type="button"/>

cursor: url('<%=WebResource("Telerik.Web.UI.Skins.Common.grab.cur")%>'), move

So, I checked the online example again and I see that I'm missing the following "move" image.
Kindly help me check what I missed to have this image show up.

background-image : url(/aspnet-ajax/WebResource.axd?d=yWIF5pzOIByI0lZ3Ioc3RX00-hPm5-dDpfPnWxbo1HjTmuSiaDuh4WTkFN0XLWntfcvIeN2RxnMevUu3xdO7PA2&t=634037268960000000); BACKGROUND-POSITION: center center

Many Thanks,
Henry Wu
Henry
Top achievements
Rank 1
 answered on 07 Apr 2010
3 answers
125 views
HI,
    I am using Telerik rad grid.Problem in my case is when I use Grid Calculated column,while doing sorting or paging its giving an error like this "

System.ArgumentException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Message : An item with the same key has already been added."
.I have tried a lot to solve this issue ,But all gone in vain.
Atlast I have commented all the Gridcalculated column codes.Then grid works fine.Problem is only with the grid calculated column.
I am using master pagein my webpage.

Please Help me to solve this issue,it very urgent.

Nikolay Rusev
Telerik team
 answered on 07 Apr 2010
1 answer
146 views
Hi,

I have a error message when generating my web page dynamically. The error message is : "Microsoft JScript runtime error: Object doesn't support this property or method".

In the web page i'm adding my RadDateTimePicker, I have a RadCalendar and a RadTimeView.

Once my control is created, I had it to the controls in my page and this is where I get the error. BTW, I have don't have any problem if I change the control to Telerik.Web.UI.RadDatePicker.

objReturn = New Telerik.Web.UI.RadDateTimePicker 
 
With DirectCast(objReturn, Telerik.Web.UI.RadDateTimePicker) 
    .AutoPostBack = True 
    .CssClass = v_drControl("cCss_class").ToString 
    .SharedCalendarID = "calShared" '<-- The name of my RadCalendar
    .SharedTimeViewID = "tvShared" '<-- The name of my RadTimeView
    .Skin = "CHCA" 
    .EnableEmbeddedSkins = False 
    .TabIndex = CType(v_intTabIndex, Short
End With 

Mira
Telerik team
 answered on 07 Apr 2010
6 answers
163 views

Dear Telerik,

            I am facing big blow in my applications performance with NestedGrid.

I am having the parent grid and it has four nested grids. Each nested grid placed in each tab section with the help of multipage.

 

As per the Telerik direction I used the Parentgrid’s pre_render event to bind all the child or nested grids as the code given below

 

 

protected void ParentGrid_PreRender(object sender, EventArgs e)  
{  
    foreach (GridDataItem item in ParentGrid.MasterTableView.Items)  
          {                
                if (item.Expanded)  
                {  
                  //foreach (GridNestedViewItem item1 in RadFirmGrid.MasterTableView.GetItems(GridItemType.NestedView))  
                  //{  
                    GridNestedViewItem item1 = RadFirmGrid.MasterTableView.GetItems(GridItemType.NestedView)[item.ItemIndex] as GridNestedViewItem;  
                      
                    // Binding Cutomer grid      
                    RadGrid Child1 = (RadGrid)item1.FindControl("Customer");  
          
                    // Binding Products grid      
                    RadGrid Child2 = (RadGrid)item1.FindControl("Products");  
 

 

But my application seemed is loading very slowly for each time the operation of grids or child grids Edit, grouping/sorting operation has been done. Because it calls parent grids pre_render event, then binds all the child grids again.

 

Note: Based on the above mentioned code logic, the grids expanded loops to be done as much of the time number of items I expanded. So again binding occurs as much time.

 

So how can I make my application more optimistic? Whether it would be ok if I bind the nested grid for each respective tab is selected. if i did that will the performance be ok. If so how can I achieve it?

So please direct me to solve the issue of performance with some sample of code.

 

Help would be appreciated..

 

Regards,

John            
John John
Top achievements
Rank 1
 answered on 07 Apr 2010
3 answers
758 views
hi,

I want to hide Horizontal Scrollbar when my window is opened.

I have set some stylesheet properties in body tag like style="overflow-x: hidden; " but still my window is showing horizontal scrollbar !

I have noticed that when vertical scroll bar is getting visible then only my horizontal scroll bar is displayed. I dont want to show horizontal scrollbar. And even my horizontal things are not getting overflow !

Please provide me the solution for this.

Thanks
Shinu
Top achievements
Rank 2
 answered on 07 Apr 2010
10 answers
210 views
I want the menu to have images instead of text. I already have the images. I want it to be a vertical menu that when the mouse hovers over a root menu item, the sub menu items expand to the right. All menu items would be images that I provide.

Part of the images include the text of the menu item (rather than having the text written out, it is part of the image).

When I add the image as ImageUrl it displays the image over top where the text would be, but still has a space for the text even when the text is left blank. The sub menu also appears under the root item rather than to the right of it.

Is it possible to change a Telerik Menu to do what I want?
Peter
Telerik team
 answered on 07 Apr 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?