Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
87 views
Hello,
probably I don't understand some things.

I have this case, i make it simple: 1 grid 1 datepicker
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="sdfsflt.aspx.vb" Inherits="Admin_PrenotaOnLine_sdfsflt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
<telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
<telerik:RadGrid    ID="RadGrid1"
                        runat="server"
                        AutoGenerateColumns="True">
                                                                             
    <MasterTableView >
    </MasterTableView>
                 
    <ClientSettings enablePostBackOnRowClick="true">
        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
        <Selecting AllowRowSelect="True" />
    </ClientSettings>                   
</telerik:RadGrid>   
             
             
             
<telerik:RadDatePicker ID="RadDatePicker1" Runat="server">
 
 
</telerik:RadDatePicker>
 
 
 
    </div>
    </form>
</body>
</html>

The datepicker popup calendar does not work.

I found out  that
<ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
is responsable. Without that line popup calendar works.
Why?

Thank you

Jean-Marc
Top achievements
Rank 1
 answered on 28 Sep 2011
1 answer
92 views
Hi,

I am working on dental project and we have to display perio chart for hygienist. Can anyone suggest me how to use perio chart?

Any help will be appreciated.

Thanks in advance.
Evgenia
Telerik team
 answered on 28 Sep 2011
0 answers
69 views
Hello
I have a radgrid that, when the row is in Edit Mode, calls a .ascx file that contains some fields and another radgrid. The "child" radgrid is not editable. If I click on Edit link, the EditCommand event is fired but the browser cannot show the inline edit mode. If I move the child radgrid to outside the parent radgrid it works perfectly.

Can anyone give me a suggestion?
Thanks
This is the main radgrid:
<MasterTableView TableLayout="Fixed" ShowGroupFooter="true" GroupsDefaultExpanded="true"
        CommandItemDisplay="Bottom" OverrideDataSourceControlSorting="true" DataKeyNames="ItemID,PortalID">
        <NoRecordsTemplate>
            Nessuna notizia presente!</NoRecordsTemplate>
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="ItemID" Visible="false" DataType="System.Int32"
                UniqueName="ItemID">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PortalID" Visible="false" DataType="System.Int32"
                UniqueName="PortalID">
            </telerik:GridBoundColumn>
            <telerik:GridDateTimeColumn DataField="Data" Visible="true" DataType="System.DateTime"
                AllowFiltering="true" HeaderText="Data" FilterListOptions="VaryByDataType" HeaderStyle-Width="250"
                UniqueName="Data" DataFormatString="{0:dd/MM/yyyy}">
                <HeaderStyle Width="100px"></HeaderStyle>
            </telerik:GridDateTimeColumn>
            <telerik:GridBoundColumn DataField="Titolo" HeaderText="Titolo" FilterListOptions="VaryByDataType"
                DataType="System.String" Visible="true" UniqueName="Titolo" Groupable="false" />
            <telerik:GridBoundColumn DataField="Testata" HeaderText="Testata" DataType="System.String"
                Visible="true" UniqueName="Testata">
                <FilterTemplate>
                    <telerik:RadComboBox ID="RadComboBoxTestata" DataSourceID="objDataSourceFiltroTestate"
                        DataTextField="Descrizione" DataValueField="Descrizione" Filter="Contains" Height="100px"
                        AppendDataBoundItems="true" runat="server" OnClientSelectedIndexChanged="TestataIndexChanged"
                        SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("Testata").CurrentFilterValue %>'>
                        <Items>
                            <telerik:RadComboBoxItem Text="(Nessun filtro)" />
                        </Items>
                    </telerik:RadComboBox>
                    <telerik:RadScriptBlock ID="RadScriptBlockTestata" runat="server">
 
                        <script type="text/javascript">
                            function TestataIndexChanged(sender, args) {
                                var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");
                                tableView.filter("Testata", args.get_item().get_value(), "EqualTo");
 
                            }
                        </script>
 
                    </telerik:RadScriptBlock>
                </FilterTemplate>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ArgomentiConcatenati" HeaderText="Argomento"
                DataType="System.String" Visible="true" UniqueName="ArgomentiConcatenati">
                <FilterTemplate>
                    <telerik:RadComboBox ID="RadComboBoxArgomenti" DataSourceID="objDataSourceFiltroArgomenti"
                        DataTextField="Descrizione" DataValueField="Descrizione" Filter="Contains" Height="100px"
                        AppendDataBoundItems="true" runat="server" OnClientSelectedIndexChanged="ArgomentiIndexChanged"
                        SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("ArgomentiConcatenati").CurrentFilterValue %>'>
                        <Items>
                            <telerik:RadComboBoxItem Text="(Nessun filtro)" />
                        </Items>
                    </telerik:RadComboBox>
                    <telerik:RadScriptBlock ID="RadScriptBlockArgomenti" runat="server">
 
                        <script type="text/javascript">
                            function ArgomentiIndexChanged(sender, args) {
                                var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");
                                tableView.filter("ArgomentiConcatenati", args.get_item().get_value(), "Contains");
 
                            }
                        </script>
 
                    </telerik:RadScriptBlock>
                </FilterTemplate>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="TagConcatenati" HeaderText="Tags" DataType="System.String"
                Visible="true" UniqueName="TagConcatenati">
                <FilterTemplate>
                    <telerik:RadComboBox ID="RadComboBoxTag" DataSourceID="objDataSourceFiltroTags" DataTextField="Descrizione"
                        DataValueField="Descrizione" Filter="Contains" Height="100px" AppendDataBoundItems="true"
                        runat="server" OnClientSelectedIndexChanged="TagIndexChanged" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("TagConcatenati").CurrentFilterValue %>'>
                        <Items>
                            <telerik:RadComboBoxItem Text="(Nessun filtro)" />
                        </Items>
                    </telerik:RadComboBox>
                    <telerik:RadScriptBlock ID="RadScriptBlockTag" runat="server">
 
                        <script type="text/javascript">
                            function TagIndexChanged(sender, args) {
                                var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");
                                tableView.filter("TagConcatenati", args.get_item().get_value(), "Contains");
 
                            }
                        </script>
 
                    </telerik:RadScriptBlock>
                </FilterTemplate>
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="FlgRiservata" HeaderText="FlgRiservata" DataType="System.Boolean"
                Visible="true" UniqueName="FlgRiservata" />
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
            </telerik:GridEditCommandColumn>
        </Columns>
        <EditFormSettings UserControlName="DesktopModules/_RassegnaStampa/DettaglioRassegna.ascx" EditFormType="WebUserControl">
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>
        </EditFormSettings>
        <SortExpressions>
            <telerik:GridSortExpression FieldName="Data" SortOrder="Ascending" />
        </SortExpressions>
        <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
            Font-Underline="False" HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" />
        <PagerStyle />
    </MasterTableView>
    <ClientSettings AllowDragToGroup="True">
        <Selecting AllowRowSelect="false" />
        <ClientEvents OnFilterMenuShowing="filterMenuShowing" />
    </ClientSettings>
    <GroupingSettings ShowUnGroupButton="true" CaseSensitive="false" />
    <SortingSettings EnableSkinSortStyles="true" />
    <FilterMenu EnableImageSprites="False" OnClientShown="MenuShowing">
    </FilterMenu>
</telerik:RadGrid>

this is the radgrid in .ascx file (called if the main radgrid is in edit mode)
<telerik:RadGrid runat="server" ID="RadGridNotizie_Argomenti" DataSourceID="objDataSourceGridNotizie_Argomenti"
                            Skin="Office2007" AutoGenerateColumns="False" GridLines="None" ShowGroupPanel="false"
                            CellSpacing="0" AllowAutomaticUpdates="true" >
                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            </HeaderContextMenu>
                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                            <MasterTableView TableLayout="Fixed" ShowGroupFooter="false" GroupsDefaultExpanded="true" EditMode="InPlace"
                                CommandItemDisplay="Bottom" OverrideDataSourceControlSorting="true" DataKeyNames="CodNotizia,CodArgomento">
                                <NoRecordsTemplate>
                                    Nessuna argomento presente!</NoRecordsTemplate>
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="CodNotizia" Visible="true" DataType="System.Int32"
                                        UniqueName="CodNotizia">
                                    </telerik:GridBoundColumn>
       
                                    <telerik:GridDropDownColumn DataSourceID="SqlDataSource2" ListTextField="Descrizione"
                                        ListValueField="ItemId" UniqueName="GridDropDownColumn"
                                        HeaderText="Argomento" DropDownControlType="DropDownList" DataField="CodArgomento">
                                    </telerik:GridDropDownColumn>
                                    <telerik:GridBoundColumn DataField="Descrizione" HeaderText="Descrizione" DataType="System.String"
                                        Visible="true" UniqueName="Descrizione" />
                                    <telerik:GridCheckBoxColumn DataField="FlgPrimario" HeaderText="FlgPrimario" DataType="System.Boolean"
                                        Visible="true" UniqueName="FlgPrimario" />
                                    <telerik:GridEditCommandColumn EditText="Edit" ></telerik:GridEditCommandColumn>
                                </Columns>
                                <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                    Font-Underline="False" HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" />
                                <PagerStyle />
                            </MasterTableView>
                            <ClientSettings AllowDragToGroup="false">
                                <Selecting AllowRowSelect="false" />
                            </ClientSettings>
                        </telerik:RadGrid>
Fabio Laserra
Top achievements
Rank 1
 asked on 28 Sep 2011
3 answers
225 views

Hi,

I am using RadComboBox in FormView and i am facing some issues. Well, its a simple data bind case involving Rad Combo Box; in which radcombobox is bound with values from a DataTable.
The code is as follows and is called from the PageLoad() event of the page

 

 

 

DataTable tb = FM.Get_tbl(); //Gets data from backend

 

 

//Forms View
FormsView1.DataSource = tb;

 

FormsView1.DataBind();

RadComboBox rad_No = (RadComboBox)FormsView1.FindControl("rad_No");

 

 

rad_No.DataSource = tb;

 

rad_No.DataTextField =

"Column_Name";

 

 

rad_No.DataValueField =

"Column_Name";

 

 

 

 

 

 

rad_No.DataBind();

On running this code it displays "Column_Name" as the values/Text in RadComboBox instead of the real data(Data from backend of the mentioned column).

I have used the same code mentioned below with success but with RadComboBox outside FormsView.
RadComboBox rad_No = (RadComboBox)FormsView1.FindControl("rad_No");

 

 

rad_No.DataSource = tb;

 

rad_No.DataTextField =

 

"Column_Name";

 

 

rad_No.DataValueField =

 

"Column_Name";

 

 

 

 

 

 

rad_No.DataBind();

 

 

 

Can anyone help me with this?

Regards,
Rahul Babbar

Shinu
Top achievements
Rank 2
 answered on 28 Sep 2011
3 answers
73 views
Hi Everyone,

I am using RadGrid to display a sharepoint list items with filter b column enabled. I am using RadAjaxManager with RadGrid inside the updatecontrols. I am able to filter for the first two times but when filtered third time in the same column or any differetnn column I get the following script error in IE

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Mon, 5 Jul 2010 17:05:59 UTC


Message: '_currentFilterTimeoutID' is null or not an object
Line: 22
Char: 307
Code: 0
URI: http://spdev/Pages/ConditionsManager.aspx


The same page in mozilla ir giving "TableView is null" in console window inside the firebug

Any ideas?

Thanks for reading
Deepak
Maria Ilieva
Telerik team
 answered on 28 Sep 2011
0 answers
119 views
Hi,

I am usinf Telerik grid, inside every row i am loading a image.

the image url points to azure storage. also images are small / big any type.

some times images are not loaded - is it somewere we can increase the timeout settings for Telerik grid ?

Thanks
Ilink
Top achievements
Rank 1
 asked on 28 Sep 2011
3 answers
131 views
I am trying to insert/edit items in the TreeList using a pop-up template. The item’s fields being modified have no relation to its parent and the order under its parent is not in a predetermined order, but determined by the person performing the modification and must be maintained.
The inserting and update of the data source is handled manually. I’m trying to use as little server resources as possible. For the edit I can include the DataIndex as a bound field and get the value back in the UpdateCommand event. This does not work when inserting new items in the TreeList. In the ItemCreated, I can get the DataIndex and save it in a protected variable and reference it from the pop-up, but it is not passed back for the InsertCommand, it is not bound.
Any ideas on how the determine the DataIndex of the item which caused the pop-up for the insert/edit?
Tsvetina
Telerik team
 answered on 28 Sep 2011
2 answers
58 views
Hello every one ,

<telerik:RadToolBar ID="RadToolBar1" runat="server" OnClientButtonClicking="onToolBarClientButtonClicking"
                    OnButtonClick="RadToolBar1_ButtonClick">
                    <Items>
                        <telerik:RadToolBarButton Text="<%$ Resources:FormName, Addnew %>" CommandName="InitInsert"
                            ImageUrl="../../images/AddRecord.gif" Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>'>
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton Text="<%$ Resources:FormName, Filter %>" CommandName="Filter"
                            ImageUrl="../../images/Filter 3.gif">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton Text="<%$ Resources:FormName, Refresh %>" CommandName="RebindGrid"
                            ImageUrl="../../images/Refresh.gif">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" CommandName="Excel" Text="Export Excel">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" CommandName="Word" Text="Export Word">
                        </telerik:RadToolBarButton>
                        <telerik:RadToolBarButton runat="server" CommandName="PDF" Text="Export PDF">
                        </telerik:RadToolBarButton>                       
                    </Items>
                </telerik:RadToolBar>


protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            string message = e.Item.Text;
            if (e.Item.Text == "Export Excel")
            {
                      RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount;
                RadGrid1.MasterTableView.ExportToExcel();
            }
            else if (e.Item.Text == "Export Word")
            {
                      RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount;
                RadGrid1.MasterTableView.ExportToWord();
            }
            else if (e.Item.Text == "Export PDF")
            {
                      RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount;
                RadGrid1.MasterTableView.ExportToPdf();
            }
        }


Export Window not come,
That toolbar is closed ,
Replay as soon as possible

Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 28 Sep 2011
2 answers
63 views
Hi,
how to set no of rows to visualize in a radgrid? I don't want to use paging where it's possible to set no of rows to visualize I just want to set rows to visualize in a scrollable radgrid. I have tried to set height to x but that's not a good solution since frame around radgrid disappears in the bottom of the radgrid (around horizontal scrollbar).

Rgds,
Jesper
Jesper
Top achievements
Rank 1
 answered on 28 Sep 2011
2 answers
131 views
I have a grid with a formtemplate. Inside the formtemplate I have a DropDownList that has set AutopostBack="true" and OnSelectedIndexChanged="something". The DropDownList is inside an updatepanel. In the code behind, in RadGrid1_UpdateCommand, I check if the dropdownlist's SelectedIndex > 0. If not, The UpdateCommand should be terminated (I am using editedItem.Edit = true).

When I play around with the DropDownList several times, set the SelectedIndex to 0, click on the UpdateCommand button, and then again selects for instance index 1 in the DropDownList, a full postback on the page is done, without clicking the UpdateCommand button.
Any ideas?
Roy Halvorsen
Top achievements
Rank 1
 answered on 28 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?