Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
How would i make the treeview that instead of clicking the '+' I would click the node that i want to expand....

 http://maximlrg.com/uomo/tree.aspx


if i click the word 'mens', the tree would open... if i click 'Lady'... that tree would open...

i want to remove the '+'

any help would be appreciated,

thanks

Jeff

Shinu
Top achievements
Rank 2
 answered on 30 Sep 2008
1 answer
308 views
Dear telerik team

i'm using the RadDateTimePicker control
i need to make the format of the date dd/MM/yyyy when it is selected from the calendar so i need it to appears in the DateInput text box in format
"dd/MM/yyyy"

Thanks
Shinu
Top achievements
Rank 2
 answered on 30 Sep 2008
1 answer
113 views
Hi..
When using the built in editing.. how do I modify the layout of the text boxes.
I want to make a text box multi line and wider.
thanks
Shinu
Top achievements
Rank 2
 answered on 30 Sep 2008
1 answer
138 views
Hi,
I am using <ClientEvents OnCommand="RaiseCommand" ... />.

When user clicks on Update/Insert command on RadGrid, I need to validate the user entered values of each column of that row. All my controls on the grid or GridComboBoxes. Could you please provide any sample code how to access the column values of the current inserted/updated row on CLIEN SIDE using Java Script.  I found the below code, but not able to retrive column values using Java Script on Client.

Appreciate if you could get back to me ASAP.

<ClientEvents OnCommand="RaiseCommand" ... />

JavaScript

function RaiseCommand(sender, args)
{
    //retrieve the current commandName and commandArgument
    var result = String.format("CommandName: {0}, CommandArgument: {1}", args.get_commandName(), args.get_commandArgument());

    if (<some_custom_condition_not_met>)
    {
        args.set_cancel(true); //cancel the command
    }
}

Many Thanks,
John

Shinu
Top achievements
Rank 2
 answered on 30 Sep 2008
1 answer
110 views
hi,

I am a newbie and I got this error when I double click my RadGrid.

Line: 12522
Error: 'this._tableView._owner._clientKeyValues' is null or not an object.

Thank you for any suggestions.
Shinu
Top achievements
Rank 2
 answered on 30 Sep 2008
1 answer
92 views
Hi, I am having telerik RadGrid where I have to display records in Grid with Paging options.
Now with Paging options, I am using "<PagerStyle Mode="NextPrevAndNumeric" />" at present. But in addition to this, I need links for "First Page" and "Last Page" as well with this options. Can someone pls tell me How can I add these two links as I didnot see any existing schema which have "First Page" and "Last Page" links. I also want this existing one and in addition to this I need "First Page" and "Last Page" link.
So can someone pls give me C# code to add this?

Thanks in advance,
Nirav
Shinu
Top achievements
Rank 2
 answered on 30 Sep 2008
3 answers
106 views
I have placed a grid on a page and set the allowfilteringbycolumn to true.  Yet each time I click the icon, I do not get the filter criterion list, nor does it filter.  I have read every article in the knowledge base that I felt was pertinent to no avail.  Any suggestions?

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadGrid1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadGrid1" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManagerProxy>

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Office2007" CssClass="RadGrid"

AllowFilteringByColumn="true" AllowSorting="True" Width="100%" AutoGenerateColumns="False"

AllowPaging="true" PageSize="10" OnNeedDataSource="RadGrid1_NeedDataSource">

<PagerStyle Mode="NextPrevAndNumeric" />

<MasterTableView AllowFilteringByColumn="true" AutoGenerateColumns="false">

<Columns>

<telerik:GridTemplateColumn AllowFiltering="false">

<ItemTemplate>

<asp:Image runat="server" Width="60px" ImageUrl='<%#Convert.ToString(DataBinder.Eval(Container, "DataItem.Thumbnail"))%>'

Height="50px"></asp:Image>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridBoundColumn DataField="StockNumber" SortExpression="StockNumber"

UniqueName="StockNumber" HeaderText="Stock#">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="VIN" UniqueName="VIN" SortExpression="VIN"

HeaderText="VIN">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Year" UniqueName="Year" SortExpression="Year"

HeaderText="Year">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Make" UniqueName="Make" HeaderText="Make" SortExpression="Make" FilterListOptions="AllowAllFilters" CurrentFilterFunction="contains">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Model" UniqueName="Model" HeaderText="Model" SortExpression="Model">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Trim" UniqueName="Trim" HeaderText="Trim" SortExpression="Trim">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ExteriorColor" UniqueName="ExteriorColor" HeaderText="Color" SortExpression="ExteriorColor">

</telerik:GridBoundColumn>

<telerik:GridTemplateColumn HeaderText="New/Used" ItemStyle-HorizontalAlign="center" DataField="IsUsed" UniqueName="IsUsed" SortExpression="IsUsed">

<ItemTemplate>

<asp:Label runat="server" Text='<%# IsUsed(Convert.ToString(DataBinder.Eval(Container, "DataItem.IsUsed"))) %>'>

</asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridBoundColumn ColumnEditorID="Miles" DataField="Miles" UniqueName="Miles" HeaderText="Miles" SortExpression="Miles">

</telerik:GridBoundColumn>

<telerik:GridTemplateColumn HeaderText="Price" ItemStyle-HorizontalAlign="right" DataField="DisplayPrice" UniqueName="DisplayPrice" SortExpression="DisplayPrice">

<ItemTemplate>

<asp:Label runat="server" Text='<%# FormatMoney(Convert.ToString(DataBinder.Eval(Container, "DataItem.DisplayPrice"))) %>'>

</asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>

Shinu
Top achievements
Rank 2
 answered on 30 Sep 2008
1 answer
290 views
Hi I am using the below code to     examine whether Grid is edit mode or not.
but I am getting the error (JS Error)      grid.MasterTableView.Rows.length

Am I doing it right.

Thanks in advance  for the help.


   function DetectMode() {
                var flag = false;
                // Get the radGrid Reference
                var grid = $find("<%= CompanyGrid.ClientID %>");

                for (var i = 0; i < grid.MasterTableView.Rows.length; i++) {
                   // Check if the currenr row is in edit mode or not?               
                    if (grid.MasterTableView.Rows[i].ItemType == "EditFormItem") {
                        var flag = true;
                        alert("grid is in edit mode");
                        // Cancel the Event so that command edit mode is maintained
                        break;
                    }
                }
                if (!flag) {
                    alert("grid is in regular mode");
                }
               
            }
Shinu
Top achievements
Rank 2
 answered on 30 Sep 2008
2 answers
129 views

  I made changes to the font on a radgrid which show up in Visual Studio Design mode but these changes do not appear when running in debug.  How can this be corrected?

  Also, is there any way that I can view a Detail table of the radgrid in Design view in Visual Studio?  I can view the Master table in Design mode but not the Detail table.

Thanks
Darren
Top achievements
Rank 1
 answered on 30 Sep 2008
2 answers
110 views
Hi,

          I am beginer using telerik controls. Grid is displaying only one column even i defined six columns.

           Grid is displaying properly when i add "CommandItemDisplay="Top""  in  MasterTableView section with "Add new Reord and refresh " options.

              I want to display the data with sorting and paging.

Can you please help to solve this issue?

Thanks
Ravi




<%

@ Control Language="C#" AutoEventWireup="true" ClassName="Vehicles" CodeFile="Vehicles.ascx.cs" Inherits="Dealer_Vehicles" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<table style="width:95%;" border = "1">

<tr>

<td align="left">

<!-- <asp:Button ID="tempbtnSearch" runat="server" CausesValidation="false" OnClientClick="LookupParameter()" SkinID="DisplayButton"

Text="Search" /> -->

<!-- <asp:Button ID="btnSearch" runat="server" CausesValidation="false" SkinID="DisplayButton"

OnClientClick = "return ShowInsertForm();" Text="Search" /> -->

&nbsp;

</td>

</tr>

<tr>

<td >

<telerik:RadGrid

ID="grdVehicles"

runat="server"

AllowPaging="True"

AllowSorting="True"

PageSize="10"

GridLines="None"

OnNeedDataSource="RadGrid1_NeedDataSource"

EnableAJAX="true"

Skin="Vista"

ShowFooter="false"

ShowStatusBar = "false"

>

<PagerStyle Mode="NumericPages" />

<MasterTableView

AutoGenerateColumns="False"

Width="100%"

PageSize="15"

TableLayout="Fixed">

<Columns>

<telerik:GridBoundColumn

DataField="MODEL_YEAR"

HeaderText="Model year"

SortExpression="MODEL_YEAR"

UniqueName="MODEL_YEAR"

DataFormatString = "<nobr>{0}</nobr>"

ItemStyle-CssClass ="RadGridItemTemplate"

HeaderStyle-Wrap="false"

HeaderStyle-HorizontalAlign="Center"

ItemStyle-HorizontalAlign="Center"

HeaderStyle-Font-Bold="true"

>

</telerik:GridBoundColumn>

<telerik:GridBoundColumn

DataField="TYPE"

HeaderText="Product Type"

ReadOnly="True"

SortExpression="TYPE"

UniqueName="TYPE"

DataFormatString = "<nobr>{0}</nobr>"

ItemStyle-CssClass ="RadGridItemTemplate"

HeaderStyle-HorizontalAlign="Center"

ItemStyle-HorizontalAlign="Center"

HeaderStyle-Font-Bold="true"

HeaderStyle-Wrap = "false"

>

</telerik:GridBoundColumn>

<telerik:GridBoundColumn

DataField="VIN"

HeaderText="VIN"

SortExpression="VIN"

UniqueName="VIN"

DataFormatString = "<nobr>{0}</nobr>"

ItemStyle-CssClass ="RadGridItemTemplate"

HeaderStyle-HorizontalAlign="Center"

ItemStyle-HorizontalAlign="Center"

HeaderStyle-Font-Bold="true"

HeaderStyle-Wrap = "false"

>

</telerik:GridBoundColumn>

<telerik:GridBoundColumn

DataField="COLOR"

HeaderText="Color"

SortExpression="COLOR"

UniqueName="COLOR"

DataFormatString = "<nobr>{0}</nobr>"

ItemStyle-CssClass ="RadGridItemTemplate"

HeaderStyle-HorizontalAlign="Center"

ItemStyle-HorizontalAlign="Center"

HeaderStyle-Font-Bold="true"

HeaderStyle-Wrap = "false"

>

</telerik:GridBoundColumn>

<telerik:GridBoundColumn

DataField="MODEL_CLASS_CODE"

HeaderText="Class Code"

SortExpression="MODEL_CLASS_CODE"

UniqueName="MODEL_CLASS_CODE"

DataFormatString = "<nobr>{0}</nobr>"

ItemStyle-CssClass ="RadGridItemTemplate"

HeaderStyle-Wrap="false"

HeaderStyle-HorizontalAlign="Center"

ItemStyle-HorizontalAlign="Center"

HeaderStyle-Font-Bold="true"

>

</telerik:GridBoundColumn>

<telerik:GridBoundColumn

DataField="MODEL_CLASS_DESC"

HeaderText="Class Description"

SortExpression="MODEL_CLASS_DESC"

UniqueName="MODEL_CLASS_DESC"

DataFormatString = "<nobr>{0}</nobr>"

ItemStyle-CssClass ="RadGridItemTemplate"

HeaderStyle-HorizontalAlign="Center"

ItemStyle-HorizontalAlign="Center"

HeaderStyle-Font-Bold="true"

HeaderStyle-Wrap = "false"

>

</telerik:GridBoundColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>

</td>

</tr>

</table>

Sudipta Burman
Top achievements
Rank 1
 answered on 30 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?