Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
51 views
Hi,
 I see that by default the Filter condition is always "AND", is there any way to change it to "OR" or let the users select whether they want "AND/OR" in their filter criteria??

Thanks,
Reena
Tsvetoslav
Telerik team
 answered on 15 Jul 2010
1 answer
365 views
Hi,
     I have grid whith 2 columns.  Couldm1 - row number and Coulmn 2 "Description"(TextBox) and button next to this description text box. When i click on this button i want to open a radwindow with single Textbox that should get value from the parent page (radgrid Description column) and disply in the radwindow Textbox , also when i change the value in Radwindow Textbox and click "Ok" button in radwindow I need want to the grid to be updated with the values entred. I tried a using javascript. But one issue is we can't send huge data using Quertystring.

"The spec for URL length does not dictate a minimum or maximum URL length, but implementation varies by browser. On Windows: Opera supports ~4050 characters, IE 4.0+ supports exactly 2083 characters, Netscape 3 -> 4.78 support up to 8192 characters before causing errors on shut-down, and Netscape 6 supports ~2000 before causing errors on start-up"

so Is there any other way to achive this ?

please check my existing code for this ..


ASPX code 

<telerik:RadGrid ID="grd1" runat="server" AllowPaging="true" PageSize="10" AllowSorting="true"
                AutoGenerateColumns="False" GridLines="None" Skin="WebBlue" OnItemDataBound="OnItemDataBoundgrd1" >
              <MasterTableView >
              <Columns>
              
                    <telerik:GridBoundColumn
                   DataField="ID"
                   HeaderText="ID"
                   SortExpression="ID"
                   UniqueName="ID" AllowSorting="true" />
                                 
                   <telerik:GridBoundColumn
                    <telerik:GridTemplateColumn HeaderText="Comments" UniqueName="Comments">
                <ItemTemplate><asp:TextBox ID="txtDetailDesc" runat="server" TextMode="MultiLine"  Columns="90" Text='<%# Eval("Comments") %>'></asp:TextBox>
                        <asp:Button ID="btnShowfullDescription" runat="server" Text="..." /></ItemTemplate>
                </telerik:GridTemplateColumn>

           </Columns>
              </MasterTableView>
            </telerik:RadGrid> 



.CS code 

 protected void OnItemDataBoundgrd1(object sender, GridItemEventArgs e)
    { 
 string strD;
        string strDetailDesc;
        if (e.Item is GridDataItem)
        {
            GridDataItem dataItem = e.Item as GridDataItem;
            intID = dataItem["ID"].Text.ToString();
            PropertyDetailDesc = dataItem["Property"].Text; 
            TextBox txtDetailDesc = e.Item.FindControl("txtDetailDesc") as TextBox;
            strDetailDesc = txtDetailDesc.Text;
            LinkButton btnOpenFullDesc = e.Item.FindControl("btnShowfullDescription") as LinkButton;
            btnOpenFullDesc.OnClientClick = "return OpenWindow('wndnew','Comments.aspx?" + "ID=" + intID + "&DetailDesc=" + strDetailDesc + "','');";
   }
}

Please help . my entire app need this functionality!!!!

Thanks
Anand Kesavan
Tsvetina
Telerik team
 answered on 15 Jul 2010
1 answer
188 views
I have two RadDatePicke controls which share a embedded calendar control. I created the custom skin for RadInput and RadCalendar, and tried to customize the popup calendar look and feel. Howerer, many times, the CSS is referred to Telerik WebResource instead of my customized local CSS file. How to avoid the reference to Telerik WebResource? Please advise it.
WebForm.aspx
    <link href="../Skins/NonTrans/Calendar.NonTrans.css" rel="stylesheet" type="text/css" />
    <link href="../Skins/Calendar.css" rel="stylesheet" type="text/css" />
    <link href="../Skins/NonTrans/Input.NonTrans.css" rel="stylesheet" type="text/css" />
    <link href="../Skins/Input.css" rel="stylesheet" type="text/css" />
        <table style="border-bottom: 1px dotted #EFEFEF; margin-bottom: 8px; font-size: 11px;" width="90%">
        <tr>
            <td colspan="4" style="padding-bottom:8px;">
            <asp:Label ID="CustomDateRangeLabel" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
            <asp:Label ID="DateRangeFromLabel" runat="server" AssociatedControlID="fromDatePicker"></asp:Label>
            </td>
            <td>
            <telerik:RadDatePicker ID="fromDatePicker" runat="server" 
                Width="120px" 
                BackColor="White" 
                BorderWidth="0"                 
                AutoPostBack="false" 
                ZIndex="8000"
                TabIndex="12"
                Font-Names="verdana, arial, sans-serif"
                DateInput-EmptyMessage="MM/DD/YYYY"
                DateInput-AccessKey="F"
                Skin="NonTrans"
                EnableEmbeddedSkins="false"                
                SharedCalendarID="SharedCalendar"
                OnSelectedDateChanged="RadDatePicker_OnSelectedDateChanged">
                <ClientEvents OnDateSelected="FromDateSelected" />
            </telerik:RadDatePicker>
            </td>
            <td>
            <asp:Label ID="DateRangeToLabel" runat="server" AssociatedControlID="toDatePicker"></asp:Label>
            </td>
            <td>
            <telerik:RadDatePicker ID="toDatePicker" runat="server" 
                Width="120px" 
                BackColor="White" 
                BorderWidth="0" 
                ZIndex="8000"
                TabIndex="14"
                DateInput-AccessKey="T"
                Font-Names="verdana, arial, sans-serif"
                AutoPostBack="false"
                DateInput-EmptyMessage="MM/DD/YYYY"
                Enabled="true"
                Skin="NonTrans"
                EnableEmbeddedSkins="false"                
                SharedCalendarID="SharedCalendar"
                OnSelectedDateChanged="RadDatePicker_OnSelectedDateChanged">
                <ClientEvents OnDateSelected="ToDateSelected" />
                <DatePopupButton onblur="CloseDropDown()" />
            </telerik:RadDatePicker>
            </td>
        </tr>
        </table>
            <telerik:RadCalendar ID="SharedCalendar" runat="server" 
                Skin="NonTrans"
                EnableEmbeddedSkins="false"                
                EnableEmbeddedBaseStylesheet="false"
                ShowRowHeaders="false" 
                CssClass="datepicker" 
                TabIndex="13" 
                ShowOtherMonthsDays="false" 
                DayNameFormat="Short" 
                DayStyle-Font-Bold="true" 
                DayOverStyle-Font-Bold="true">
            </telerik:RadCalendar>
  
FireBug Window
  
.RadCalendar .rcMain .rcRow a, .RadCalendar .rcMain .rcRow span {
display:block;
padding:1px 5px 1px 0;
text-decoration:none;
}
Teleri...f65231b (line 665)
  
.RadCalendar .rcMain .rcRow a, .RadCalendar .rcMain .rcRow span {
display:block;
padding:1px 1px 1px 0;
text-decoration:none;
}
Calendar.css (line 121)
  
.RadCalendar_NonTrans .rcMain .rcRow a, .RadCalendar_NonTrans .rcMain .rcRow span {
color:#405EBE;
padding:1px 1px 1px 0;
text-align:center;
}
Dimo
Telerik team
 answered on 15 Jul 2010
4 answers
458 views
<telerik:RadMultiPage ID="RadMultiPage1" runat="server">  
            <telerik:RadPageView ID="RadPageViewIntro" runat="server" Selected="true">  
              
<li><asp:Label ID="Label1" runat="server" Text="Due at(time) hours:" AssociatedControlID="lsthh"></asp:Label>  
           <telerik:RadComboBox ID="lsthh" runat="server" AppendDataBoundItems="True"   
                AutoPostBack="True" CausesValidation="False" 
                OnSelectedIndexChanged="lsthh_SelectedIndexChanged" Width="50px"   
                   MaxLength="50">  
                <Items><telerik:RadComboBoxItem Text="Choose One..." Value="0" Selected="True" />  
                <telerik:RadComboBoxItem runat="server" Text="to be allocated" Value="1" /><telerik:RadComboBoxItem runat="server" Text="shared" Value="2" /></Items></telerik:RadComboBox>  
                <asp:RequiredFieldValidator ID="RFV_lsthh" runat="server" ValidationGroup="Visitor" InitialValue="Choose One..." ControlToValidate="lsthh" ErrorMessage="Please enter time in hours of visit">*</asp:RequiredFieldValidator>  
            &nbsp;&nbsp<b>:</b>&nbsp;&nbsp;  
                <telerik:RadComboBox ID="lstmm" runat="server" AppendDataBoundItems="True"   
                AutoPostBack="True" CausesValidation="False"   
                OnSelectedIndexChanged="lstmm_SelectedIndexChanged" Width="50px">  
                <Items><telerik:RadComboBoxItem Text="Choose One..." Value="0" Selected="True" />  
                <telerik:RadComboBoxItem runat="server" Text="to be allocated" Value="1" /><telerik:RadComboBoxItem runat="server" Text="shared" Value="2" /></Items></telerik:RadComboBox>  
                <asp:RequiredFieldValidator ID="RFV_lstmm" runat="server" ValidationGroup="Visitor" InitialValue="Choose One..." ControlToValidate="lstmm" ErrorMessage="Please enter time in minutes of visit">*</asp:RequiredFieldValidator></li>                  
            </li>     
              
                    <li><asp:ValidationSummary ID="validationSummary1" runat="server" ValidationGroup="Visitor" />  
                    <asp:Button ID="bnVistors" runat="server" CausesValidation="true" OnClick="bnVisitors_Click" 
            Text="Next" ValidationGroup="Vistor" /></li></ol></telerik:RadPageView>       
The RadComboBox width does not work.I do not want dropdownwidth. I want to change the width.
I have set the width to 50px but it doesnt work.
I tried Radcombobox width property outside <asp:content> and it works fine but not within <asp:content>.

Also I want
hh:mm
dropdownlist side to each other. But I cant get it in <li> tag.#
Any help is appreciated.
Kalina
Telerik team
 answered on 15 Jul 2010
1 answer
223 views
Hi,

I'm currently having problems linking a RadGrid to its parent row. I know I could just use Detail tables which work fine, but I want to be able to have something similar to your demo here, but at the bottom of that nested view template to also show a RadGrid with something like the Contact Name's list of orders/sales/etc.

I've currently got it setup to pass in the Customer Name's ID into the RadGrid when the grid is loaded. But then I can't find a way of then linking the Insert/Update/Delete Commands for that Customer in the grid.

Any help would be much appreciated in showing how you would extend the online demo to also include a related grid in the nested viewtemplate.

Thanks in advance!
Yavor
Telerik team
 answered on 15 Jul 2010
1 answer
108 views
Hi, how are you?, I have a problem when I try to add GridTableView in My RadGrid, I add my GridTableView with code

Example:

              
GridTableView gtv = new GridTableView();
                gtv.AutoGenerateColumns = true;
                gtv.DataSource=   BillMaterial.getSubParts(mp.PartNumber);
               gtv.DataBind();
               RadGrid.MasterTableView.DetailTables.Add(gtv)';


But in my page, can not see my Detail Table, Why?


Shinu
Top achievements
Rank 2
 answered on 15 Jul 2010
1 answer
115 views
I have been using the Google based filtering example (http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid) to extend the GridDropDownColumn to support a RadComboBox rather than text filter.  I am looking for a way to utilize the AutoCompleteSeperator to allow to multiple value selection.  So the user could pick 3 items from the list and get a result set of any rows with any one of those columns set.  Is this possible?  My working code is bellow, it follows the Google example closely.

using System;
using System.Collections.Generic;
using System.Web;
using Telerik.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI;
 
/// <summary>
/// Summary description for DDLColumn
/// </summary>
///
namespace DQCT.Controls
{
    public class DDLColumn : GridDropDownColumn
    {
        public DDLColumn()
        {
        }
 
        //RadGrid will call this method when it initializes the controls inside the filtering item cells
        protected override void SetupFilterControls(TableCell cell)
        {
            base.SetupFilterControls(cell);
            cell.Controls.RemoveAt(0);
 
            RadComboBox ddl = new RadComboBox();
            ddl.ID = String.Format("_ddl{0}", this.UniqueName);
            //ddl.ShowToggleImage = false;
            ddl.EnableTextSelection = true;
            //ddl.Skin = "Office2007";
            ddl.AutoPostBack = true;
            //ddl.AutoCompleteSeparator = ";";
            ddl.MarkFirstMatch = true;
            ddl.Height = Unit.Pixel(100);
            ddl.DataTextField = this.ListTextField;
            ddl.DataValueField = this.ListValueField;
            ddl.DataSourceID = this.DataSourceID;
            ddl.SelectedIndexChanged += ddl_SelectedIndexChanged;
 
            cell.Controls.AddAt(0, ddl);
            cell.Controls.RemoveAt(1);
        }
 
        //RadGrid will cal this method when the value should be set to the filtering input control(s)
        protected override void SetCurrentFilterValueToControl(TableCell cell)
        {
            base.SetCurrentFilterValueToControl(cell);
            RadComboBox combo = (RadComboBox)cell.Controls[0];
            if ((this.CurrentFilterValue != string.Empty))
            {
                combo.SelectedValue = this.CurrentFilterValue;
            }
        }
 
        //RadGrid will cal this method when the filtering value should be extracted from the filtering input control(s)
        protected override string GetCurrentFilterValueFromControl(TableCell cell)
        {
            RadComboBox combo = (RadComboBox)cell.Controls[0];
             return combo.SelectedValue;
        }
 
        //handler for selected index changed
        private void ddl_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o).NamingContainer;
 
            filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.UniqueName));
        }
    }
}
Yavor
Telerik team
 answered on 15 Jul 2010
1 answer
137 views
Hi !

 I am calling ShowInsertIntem function to show rad list view in insert mode but it is not firing up InitInsert CommandItem because i have to populate a dropdownlist box on InitInsertCommand..


Kind Regards,
Rosen
Telerik team
 answered on 15 Jul 2010
1 answer
185 views
Hi,

I've a grid with autogenerated columns (columns are dynamic) and i'm setting the width of the 1st column in itemdatabound event.
And I'm using IE 8, so even if i've given the code for freezing the 1st column and header of the grid when it is scrolled horizontal or vertical, the horizontal or vertical scrollbars are not visible at all but when i click on Compatibility view icon near the refresh icon in web page, then only the grid becomes visible. How can i resolve this issue?  I don't want the user to click on ' Compatibility view '
 icon every time. And besides the grid moves when the number of columns are more. How can i resolve this?

 

<telerik:RadGrid ID="DR_Low_RadGrid" runat="server" AllowPaging="false" AllowSorting="True"

 

 

AutoGenerateColumns="true" GridLines="None" PageSize="14" Width="900px" Skin="Office2007"

 

 

OnNeedDataSource="DR_Low_RadGrid_NeedDataSource" OnItemDataBound="DR_Low_RadGrid_ItemDataBound"

 

 

Height="380px">

 

 

<GroupingSettings CaseSensitive="false" />

 

 

<AlternatingItemStyle Font-Names="verdana" Font-Size="10px" />

 

 

<ItemStyle Font-Names="verdana" Font-Size="10px" HorizontalAlign="Left" />

 

 

<HeaderStyle Font-Bold="true" Font-Names="Verdana" Font-Size="10px" ForeColor="Black"

 

 

HorizontalAlign="Center" />

 

 

<MasterTableView AutoGenerateColumns="true" DataKeyNames="Geography" Width="899px"

 

 

NoMasterRecordsText="No low case data found." NoDetailRecordsText="No low case data found."

 

 

PagerStyle-EnableSEOPaging="false" PagerStyle-Mode="Slider">

 

 

<PagerStyle EnableSEOPaging="false" Mode="Slider" />

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" FrozenColumnsCount="1"

 

 

EnableVirtualScrollPaging="false" />

 

 

</ClientSettings>

 

 

<PagerStyle Mode="NumericPages" />

 

 

</telerik:RadGrid>

 




Dimo
Telerik team
 answered on 15 Jul 2010
2 answers
196 views
Hello,

    I have a RadListView nested in a RadPanelBar, the itemupdating functions for the radlistview work fine outside of the panel but the code behind can not recognize the listview once I place it inside of the panelbar.

How is there a workaround for this so that I can use the item updating functions?
Tsvetoslav
Telerik team
 answered on 15 Jul 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?