Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
88 views
Hi,

Why I can't see the png image (radcombobox) in Internet Explorer, but yes in Chrome?

Thank you for your help.


GUSTAVO RODRIGUEZ NARES
Top achievements
Rank 1
 answered on 30 Apr 2010
8 answers
626 views
Hello chaps,

Quick question:  

I have a RadNumericTextBox with its MinValue property set to 0 and MaxValue property set to 1000.  I've worked out that I can use the ClientEvents-OnError property to call a JavaScript function and display an alert box when the user enters a value outside of the range, but is it possible to also clear the RadNumericTextBox raising the error, rather than have it revert to 1000 if the value entered is bigger and 0 if the value is smaller?

Cheers,

Adam


Martin
Telerik team
 answered on 30 Apr 2010
6 answers
240 views
Hi
can anyone tell me why i am getting this error:
--------------------------------------------------------------
[ArgumentOutOfRangeException: Selection out of range
Parameter name: value]
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +259
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +10
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +73
   Telerik.Web.UI.RadComboBox.PerformSelect() +21
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +515
   Telerik.Web.UI.GridTableView.CreateFilteringItem(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTHead thead) +100
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +761
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +495
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +4
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +221
   Telerik.Web.UI.GridTableView.Rebind() +48
   Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +1019
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +134
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source, EventArgs e) +299
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

------------------------------------------------------------------
here is my source code
---------------------------------------------------------------------------
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <table class="style1">
            <tr>
                <td>
                    <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True"
                        AllowAutomaticUpdates="True" AllowFilteringByColumn="True" AllowPaging="True"
                        AllowSorting="True" AutoGenerateEditColumn="True" DataSourceID="SqlDataSource1"
                        GridLines="None" ShowFooter="True">
<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" DataKeyNames="CategoryID"
                            DataSourceID="SqlDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridBoundColumn DataField="CategoryID" DataType="System.Int32"
            DefaultInsertValue="" HeaderText="CategoryID" ReadOnly="True"
            SortExpression="CategoryID" UniqueName="CategoryID">
            <HeaderStyle Width="20%" />
        </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="CategoryName" DataField="CategoryName" HeaderText="Category" HeaderStyle-Width="250px">
                        <FilterTemplate>
                            <telerik:RadComboBox ID="RadComboBoxCategory" Width="250" DataSourceID="SqlDataSource2" DataTextField="CategoryName"
                                DataValueField="CategoryName" Height="400px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("CategoryName").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="CategoryIndexChanged">
                                <Items>
                                    <telerik:RadComboBoxItem Text="All" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

                                <script type="text/javascript">
                                    function CategoryIndexChanged(sender, args) {
                                        var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");
                                        tableView.filter("CategoryName", args.get_item().get_value(), "EqualTo");
                                    }
                                </script>

                            </telerik:RadScriptBlock>
                        </FilterTemplate>

<HeaderStyle Width="250px"></HeaderStyle>
                    </telerik:GridBoundColumn>
    </Columns>
</MasterTableView>
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                    </telerik:RadGrid>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:OrderSystemConn %>"
        DeleteCommand="DELETE FROM [Category] WHERE [CategoryID] = @CategoryID"
        InsertCommand="INSERT INTO [Category] ([CategoryName]) VALUES (@CategoryName)"
        SelectCommand="SELECT [CategoryID], [CategoryName] FROM [Category] ORDER BY [CategoryName]"
        UpdateCommand="UPDATE [Category] SET [CategoryName] = @CategoryName WHERE [CategoryID] = @CategoryID">
        <DeleteParameters>
            <asp:Parameter Name="CategoryID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="CategoryName" Type="String" />
            <asp:Parameter Name="CategoryID" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="CategoryName" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server"
        ConnectionString="<%$ ConnectionStrings:OrderSystemConn %>"
        SelectCommand="SELECT [CategoryID], [CategoryName] FROM [Category] ORDER BY [CategoryName]">
    </asp:SqlDataSource>
    </form>
--------------------------------------------------------------------------------

Thanks
Mira
Telerik team
 answered on 30 Apr 2010
6 answers
328 views
I'm new at Telerik controls
Has anybody seen this problem before? I'm using a RadDatePicker (Ajax) and everytime i pick a date in the calendar it writes to days date in the indput field. the year changes but the day and month does not.

There is no error and i can change the date in the indput field and the right date gts posted back.

Does anybody have an idea to what could be wrong?

Tina
Pat
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
123 views

I am using a grid in my page for the user to insert data into.  on opening the page I want the grid to open the insert mode.  I put this in and it works but the default values are not showing in the fields.  if I just load the page and click on the insert link the values are there.  is there a way I can get my default values to show while opening this on the page load?

 

protected

 

void RadGrid2_PreRender(object sender, EventArgs e)

 

{

 

if (!Page.IsPostBack)

 

{

RadGrid2.MasterTableView.IsItemInserted =

true;

 

RadGrid2.Rebind();

}

}

my column editor looks like this

<

 

telerik:GridNumericColumnEditor ID="CCTavelCostColumnEditor" runat="server">

 

 

<NumericTextBox runat="server" ID="NumericTextBox3" Width="80px" Value="0" NumberFormat-DecimalDigits="0" Type="Currency"

 

 

</NumericTextBox>

 

 

</telerik:GridNumericColumnEditor>

if it helps my column is like this

 

<

 

telerik:GridNumericColumn Aggregate="Sum" DataField="TRAVELCOST" HeaderText="TRAVEL COST" UniqueName="TRAVELCOST" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"

 

 

DataType="System.Decimal" DataFormatString="{0:C}" ColumnEditorID="CCTavelCostColumnEditor" ItemStyle-Width="80px"

 

 

 

 

 

FooterAggregateFormatString="{0:C}" FooterStyle-HorizontalAlign="Right">

 

 

 

 

 

<FooterStyle HorizontalAlign="Right"></FooterStyle>

 

 

 

 

 

<HeaderStyle HorizontalAlign="Right"></HeaderStyle>

 

 

 

 

 

<ItemStyle HorizontalAlign="Right"></ItemStyle>

 

 

 

 

 

</telerik:GridNumericColumn >

 

Pavlina
Telerik team
 answered on 30 Apr 2010
1 answer
119 views
I have a RadGrid bounded with an ObjectDataSource. I have a DateTime parameter that gives some problem.
When I try to update data i get the following error: "Cannot convert value of parameter 'Data' from 'System.String' to 'System.DateTime' ".
I tried also to specify the format of date:
 <telerik:GridBoundColumn DataField="Data" DataType="System.DateTime"  

 

HeaderText="Data" SortExpression="Data" UniqueName="Data" EditFormHeaderTextFormat="{0:dd/MM/yyyy HH:mm:ss}" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">

 

 

 

</telerik:GridBoundColumn>

or to use:

<

 

 

telerik:GridDateTimeColumn DataField="Data" DataType="System.DateTime" HeaderText="Data" SortExpression="Data" UniqueName="Data" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" >

 

 

 

 

</telerik:GridDateTimeColumn>

 

 

 

I get always the same error, what can I do to solve?

 

 

 

 

Pavlina
Telerik team
 answered on 30 Apr 2010
1 answer
240 views

Hi Telerik Team,

In Rad combo box,
we are displaying default Text from Coding,like

DropDownCompany.Items.Insert(0,

New RadComboBoxItem("All Companies", "-1"))

this  "All Companies"  Text is displaying with no styles.

how to make that text as Italic font while selected.


Regards,
Surya Murthy.




 

Veronica
Telerik team
 answered on 30 Apr 2010
1 answer
178 views
Hi,

I am binding some data to Radgrid and sorting option is there in Radgrid.

My issue is that on sorting data for one column of Radgrid sorting icon
in another column is visible. I want on sorting one column of Radgrid
sorting icon in another column should not be visible.

Any help on this will be grateful.



Pavlina
Telerik team
 answered on 30 Apr 2010
2 answers
165 views
I captured a screen shot from the demo site which shows the grid menu items.

All of the grid menu items are lacking a space between words.  This appears to be something that has been there for a while, but now we have users coming to us to spell out these options correctly.

For example,
NoFilter -> No Filter
NotEqualTo -> Not Equal To

Has anyone else ran into this before?  I haven't been able to find any other forum post related to it. 

Is this the type of request I should submit to that public issue tracking site?

Thanks
Tim
Jeff
Top achievements
Rank 1
 answered on 30 Apr 2010
6 answers
128 views
Hi all.

I have a RadPanelBar inside of a Table that is set to a height of 100%.  The RadPanelBar is also set to 100%.

The basic structure of the panel is this:

<t

 

 

elerik:RadPanelBar ID="RadPanelBar1" runat="server" onitemclick="RadPanelBar1_ItemClick" CausesValidation="False" ExpandMode="FullExpandedItem" BorderWidth="0px"height="100%" Width="100%">
 
<Items>
 
<telerik:RadPanelItem runat="server" Expanded="True" Selected="True" Text="HOME" Value="parent">
 
<Items>
 <
telerik:RadPanelItem runat="server" Text="LINKS" Value="links">
 
</telerik:RadPanelItem>
 
<telerik:RadPanelItem runat="server" Text="about us" Value="aboutus">
 <
/telerik:RadPanelItem>
 
<telerik:RadPanelItem runat="server" Text="contact us" Value="contactus">
 </
telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" Text="portal login" Value="login">
 
</telerik:RadPanelItem>
 
</Items>
 
</telerik:RadPanelItem>
</telerik:RadPanelBar>

My Table is 1 row 2 columns.  The background of column 1 is gray.  This is where the RadPanel lives.
In IE8 and Chrome the page renders as expected. The panel is expanded and i can see all of HOMEs child items.

In Firefox the panel is shrunk and only displays the first child "LINKS" under home.  However, the column in which it resides is full height because i can see the gray background in the open space.

Any thoughts as to how to increase the height of the RadPanelItem to fill the column?

 

 

 

Thanks

 

Kamen Bundev
Telerik team
 answered on 30 Apr 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?