Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
137 views
1.  I have Dropdown controls that get styled with the decorator.  When the user clicks on the down button, the dropdown list expands, but then clicking the button again will not contract the list.  This is breaking the correct operation of the dropdownlist.

<asp:DropDownList ID="AddressDropDownList" runat="server" DataSourceID="AddressSqlDataSource" DataTextField="adrFullname" DataValueField="adrIdx" AppendDataBoundItems="True" AutoPostBack="True">
    <asp:ListItem Value="" Text="--All--"></asp:ListItem>
</asp:DropDownList>


2.  The styling doesn't match a RadCombo on the same form.  The RadCombo has the text box area shaded, the dropdownlist doesn't.  Makes it pretty obvious where one or the other was used and provides inconsistent UI.  Is there a way to get them to match?
<telerik:RadComboBox ID="xrcarCarIdxRadComboBox" runat="server" DataSourceID="CarrierListSQLDataSource" DataTextField="carName"
    DataValueField="carIdx" SelectedValue='<%# Bind("xrcarCarIdx") %>' Width="300" HighlightTemplatedItems="true">
    <ItemTemplate>
        <asp:Label runat="server" ID="CarrierListLabel" >
            <b><%# Eval("carName") %></b><br /><%# Eval("carAddress")%><br /><%# Eval("carCSZ")%>
        </asp:Label>
    </ItemTemplate>
</telerik:RadComboBox>


In the master page:
<telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all" >
</telerik:RadFormDecorator>
Danail Vasilev
Telerik team
 answered on 21 Jan 2013
5 answers
1.1K+ views
Hi, 
I  am trying to get a Datagrid to work using Self Referencing heirarchy, but I get the error: No property or field 'ParentID' exists in type 'DataRowView'  when I add the FilterExpression:

RadGrid1.MasterTableView.FilterExpression =

"ParentID is null "

The code is modeled after the sample here

I can get it to work without the FilterExpression, but all items show up under the main grid, and then again as children.  It seems very simple, but I must be missing something.

 

Marin
Telerik team
 answered on 21 Jan 2013
7 answers
382 views

Hello, I´m using a RadGrid for displaying data bound using the "NeedDataSource"-event. It works almost perfectly. Since I want a combobox in one of the columns, i have a GridTemplateColumn which looks like this:

<telerik:GridBoundColumn DataField="CommunicationModule" HeaderText="CommunicationModule" UniqueName="CommunicationModule" ></telerik:GridBoundColumn>
                        
                       <telerik:GridTemplateColumn DataField="Module" HeaderText="Module" UniqueName="Module" ItemStyle-Width="400px">
                           <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "Module")%>
                           </ItemTemplate>
                           <EditItemTemplate>
                                <telerik:RadComboBox runat="server" ID="cboModule">
                           </telerik:RadComboBox>
                           </EditItemTemplate>
                       </telerik:GridTemplateColumn>


The first column holds the database value (int) and the second column contains the combobox. My plan is to use the first column (which in the end is supposed to be hidden) to set the SelectedValue of the combobox. 

I´m using the ItemDataBound event to detect when to populate the combobox and set the selected item. The problem is that every time I try to access the cell value of the "CommunicationModule" cell, it contains &nbsp. I try to do this using the e.item["CommunicationModule"].Text. 

Since I populate the grid using entity framework and a anonymous list created by a query, I cannot directly cast the e.Item.DataItem either. In that case I need to create a helper class that matches the signatures of my query and that would create much more work for me since I´m doing several pages with grids populated with different data. The Grid is in "EditForms" Editmode

So:

protected void RadGridCU_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item.IsInEditMode)
        {
            if (!(e.Item is IGridInsertItem)) //Is this a new item?
            {
                GridEditFormItem item = (GridEditFormItem)e.Item;
                
                RadComboBox cmb = (RadComboBox)item.FindControl("cboModule");
                cmb.DataSource = //Here I have logic to set the datasource (works);
                cmb.DataTextField = "Name";
                cmb.DataValueField = "OID";
 
                //I tried to use
                //item["CommunicationModule"].Text.ToString();
 
                //But to get it to work, I needed to create helper class and then cast the dataitem..
                cmb.SelectedValue = ((MyGridHelperClass)e.Item.DataItem).CommunicationModule.ToString();
                cmb.DataBind();
            }
        }
    }



How can I really access the cell value without the need of accessing the DataItem?



When using EditForms, I can access the value using 
item.ParentItem["CommunicationModule"].Text.ToString();

But when using InForms edit, I cannot access the value using item["CommunicationModule"].Text.ToString().


Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Jan 2013
5 answers
185 views
I have a radgrid using a ItemTemplateColumn.  I have GridLines="None" and BorderStyle="None".  My display looks wonderfull until I click on one of the links in the masterview.  I see a yellow 'focus' box around my display.  Is there a way to turn this off?
Vasil
Telerik team
 answered on 21 Jan 2013
2 answers
82 views
Hello !

I am using Page Properties dialog in order to set background color or background image of RadEditor window. What I have noticed is there is not any control for uploading background image from local computer. We can just specify path of directory where images are exists on server using ImageManager's ViewPaths property. Is there any solution if I want to upload the image from local computer and set it as background image?

Awaiting for your valuable response.

Thanks
Dev
Dev
Top achievements
Rank 1
 answered on 21 Jan 2013
1 answer
234 views
Hi
I have a grid with follwing columns.. the Calumn TRANSACTION_CURRENCY_CD should be a DropDown list

.....
      <Columns>   
      <telerik:GridBoundColumn ReadOnly="true" DataField="ACCOUNT_ID" UniqueName="ACCOUNT_ID"
        HeaderText="Account ID">
        </telerik:GridBoundColumn>
     <telerik:GridDropDownColumn UniqueName="TRANSACTION_CURRENCY_CD" ListTextField="TRANSACTION_CURRENCY_CD"
  ListValueField="TRANSACTION_CURRENCY_CD" HeaderText="DropDown Column"
  DataField="TRANSACTION_CURRENCY_CD" DropDownControlType="RadComboBox" AllowSorting="true">
</telerik:GridDropDownColumn>
       <telerik:GridBoundColumn DataField="TRANSACTION_AMT" UniqueName="TRANSACTION_AMT" HeaderText="TRANSACTION_AMT">
      </telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="LOCAL_CURRENCY_CD" UniqueName="LOCAL_CURRENCY_CD" HeaderText="LOCAL_CURRENCY_CD">
      </telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="LOCAL_AMT" UniqueName="LOCAL_AMT" HeaderText="LOCAL_AMT">
      </telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="SUB1" UniqueName="SUB1" HeaderText="SUB1">
      </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="SUB2" UniqueName="SUB2" HeaderText="SUB2">
      </telerik:GridBoundColumn>
    </Columns>
 
.....

public DataTable  CustomersTable
{
 
    get
    {
        DataTable  res = (DataTable)this.Session["CustomersTable"];
        if (res == null)
        {
            res = (DataTable)Table0021.Lade("1").Tables[0];
            this.Session["CustomersTable"] = res;
        }
 
        return res;
    }
}

    protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        RadGrid1.DataSource = this.CustomersTable;
    }

TRANSACTION_CURRENCY_CD is the column name in the Datatable

2 questions /problems:

- the CalumnTRANSACTION_CURRENCY_CD is always Empty (in the edit mode, too)
- I get a List<String> with the Elemts for the DropDownList. How can I bind this to the dropdownlist


Thank you very much!
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2013
4 answers
193 views
I have a RadAsyncUpload control in one usercontrol, loaded dynamically (wizard-style using RadTabStrip and RadMultiPage). I don't want to trigger the FileUploaded event until the Save button is clicked in the last panel of the wizard. Is this scenario supported? There will be a button in each PageView that will share the same ID--not a problem given that they are in different naming containers, of course, but perhaps a problem for RadAsyncUpload? How does it resolve the Control IDs contained in the PostbackTriggers property?

Thanks in advance for your help,

Larkin
Plamen
Telerik team
 answered on 21 Jan 2013
2 answers
245 views
Is there a property to force a 12 hour clock for the RadScheduler... when I select the times for the event from the Start Time and End Time dropdowns it displays 24 hour clock times.  I'd like this to be 12 hour clock only.
Alec
Top achievements
Rank 1
 answered on 21 Jan 2013
6 answers
90 views
Hi,

I'm using the RadSplitter together with RadSlidingPanes in a rather big project.
Everything worked fine (with version 2012.1.215.35) until recently in IE 10. In IE10/Win 8 the panes would not move.

I've upgraded to version 2012.3.1205.35 and the panes are working again, but there's a rendering error (also in IE9). When I open and close a pane, the pane displays on the bottom of the screen.

I've tested this with the demo found here: http://demos.telerik.com/aspnet-ajax/splitter/examples/sp_firstlook/defaultcs.aspx

The problem is our DocType. In our project we must use <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

I know everything works fine with Doctype 4.01, but I can't use this for now in this project.

Is there any workaround or a fix?

Thanks in advance!
vandenbroele
Top achievements
Rank 1
 answered on 21 Jan 2013
2 answers
65 views
Hi All,

I have a page in which i have an html table in this table's tr i have two td .. one td has radtabstrip and in one i have radgrid . initialy when grid is in read mode both controls heights are equal but when my grid is in edit mode (it has multiple edit simlutaneously) grids height increase but my tab remains same heighted . i have vertical tabstrip ....
i tried all the html changes like seeting td's height 100% and all but dosen't make any difference ...
thanks in advance ...
mahima jain
Top achievements
Rank 1
 answered on 21 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?