Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
190 views
Hello,

I have a raddatepicker which is not working in google-chrome. on click to the icon nothing is displayed.

 <telerik:RadDatePicker ID="GMDatePicker1" runat="server"   CssClass="RadCalendarPopup"
                            Font-Size="10px" Skin="Default2006">
                            <DateInput ReadOnly="true" DateFormat="dd-MM-yyyy" ID="DI_TargetDt" runat="server"
                                DisplayDateFormat="dd-MM-yyyy" LabelCssClass="radLabelCss_Default2006" Skin="Default2006"/>
                            <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" runat="server"
                                ViewSelectorText="x" Skin="Default2006" >
                            </Calendar>
                            <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                        </telerik:RadDatePicker>
Pavlina
Telerik team
 answered on 20 Apr 2011
1 answer
75 views
Hello,i'm student,i have a small problem with raddatetimepicker
i getting data from sql server (birthday) , i don't know use  datetimepicker of telerik so how to add birthday to raddatetimepicker 
plz help me
THANK !
Iana Tsolova
Telerik team
 answered on 20 Apr 2011
1 answer
80 views
What is the best way to control a RadGrids CRUD behavior depending on the users Role? I already have a grid built with all of the updating and deleting functionality built in. Now I want to allow only certain users the ability to update and delete.
 


Shinu
Top achievements
Rank 2
 answered on 20 Apr 2011
2 answers
137 views
hi

what is the best way to do a fixed header & a srollable content in masterpage? Thanks
Marin Bratanov
Telerik team
 answered on 20 Apr 2011
1 answer
103 views
I have a simple RadGrid control a web page connecting to a view via a data source.  One of the fields requires a special formatting.

I was wondering is there a way to tell the GridBoundColumn to use a particular class when executing the DataFormatString property on the data at Binding Time.

For example, here is an example of data from the view
AccNumber (long), Name (string), OpenDate (datetime)
931367200, Bob Smith, 9-Sep-2010
911405190, Sue Smith, 8-Sep-2009
734412678, Tony Mendica, 3-Jan-2001

What I want the grid to display the fields is as follows:
931 367 200      Smith, Bob        9-Sep-2010
911 405 190      Smith, Sue        8-Sep-2009
734 412 678 L   Mendica, Tony  3-Jan-2001

The account for Tony is special as it has long standing customer privileges, so I would like to use a custom formatter class that implements the IFormatProvider interface.

I have considered using the ItemDataBound event and providing the customer format hook in there - however, i would prefer to avoid that if possible.

Thoughts?
j.
Marin
Telerik team
 answered on 20 Apr 2011
4 answers
311 views
hi all,
  
  I am using a Template Form to edit values from a RadGrid, When the grid is displayed the checkboxes appear to be properly bound, and are showing the correct "checked state", based on the value of 1 or 0 coming from the back-end.

  However, when I try to update from this edit form, I consistently get the error message "Cannot insert the value NULL into column DepositReceived ...."

   I can understand that on a new record ( INSERT ) that these values might be interpreted as NULL, however, as I've just returned the existing data, with valid checkbox values, I don't understand why they are still being seen as NULL ??? This is for all check boxes, including those which are "True" and checked ( please see attached image file )

   In the EditForm, I am binding as follows :
<asp:CheckBox ID="cbDepositReceived" runat="server" Checked='<%#Eval("DepositReceived") %>' />

  In the Grid, I am binding as follows :

<telerik:GridCheckBoxColumn DataField="DepositReceived" DataType="System.Boolean"
                                 HeaderText="DepositReceived" SortExpression="DepositReceived" UniqueName="DepositReceived"
                                 Visible="False" DefaultInsertValue="False" ConvertEmptyStringToNull="False">
                            </telerik:GridCheckBoxColumn>

  Any suggestions are very welcome -- I really don't want to have to deal with code-behind and hopefully I've missed something simple.

  thanks in advance
 b. stensrud
    
Brian
Top achievements
Rank 1
 answered on 20 Apr 2011
2 answers
113 views
I was wondering if there was a work around or another way of handling the load on demand functionality for the combo box that does not result in the "Non-Negative Number Required" error when scroll down? Currently we are working on the ASP.Net AJAX Q3 2009 Net35 version, I dont believe there is a free upgrade to the latest version is there?
Shinu
Top achievements
Rank 2
 answered on 20 Apr 2011
1 answer
790 views
on a button click "btn1_Click" event on server side, i want to change the time value in the raddatetimepicker to a new time value.
Is this possible?

thanks in advance
Shinu
Top achievements
Rank 2
 answered on 20 Apr 2011
4 answers
293 views
I'm trying to make a label control update to display the key value for the users row selection in a Radgrid.  For some reason I can't get this to work.  Data is populated by way of some Linq to Entities code in a separate class.  Can someone show me what I'm doing wrong?

Below is the relevant code from my aspx page and code behind.  

<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
 
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="654px"
            width="654px">
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server"
            ontabclick="RadTabStrip1_TabClick" SelectedIndex="0" AutoPostBack="True"
            Skin="Vista">
                <Tabs>
                    <telerik:RadTab runat="server" Text="Pending" Selected="True">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="In Storage">
                    </telerik:RadTab>
                    <telerik:RadTab runat="server" Text="Returned">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
            <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
            <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" GridLines="None"
                Height="300px" Width="654px" OnItemCommand="RadGrid1_ItemCommand"
                AutoGenerateColumns="False">
                <ClientSettings EnablePostBackOnRowClick="True">
                    <Selecting AllowRowSelect="True" />
                    <Scrolling AllowScroll="True" />
                    <Resizing AllowColumnResize="True" />
                </ClientSettings>
                <MasterTableView Width="100%" DataKeyNames="Tag">
                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="Tag"
                            FilterControlAltText="Filter column column" HeaderText="Tag"
                            UniqueName="column">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Name"
                            FilterControlAltText="Filter column1 column" HeaderText="Name"
                            UniqueName="column1">
                        </telerik:GridBoundColumn>
                        <telerik:GridDateTimeColumn DataField="Received"
                            FilterControlAltText="Filter column2 column" HeaderText="Received"
                            UniqueName="column2">
                        </telerik:GridDateTimeColumn>
                        <telerik:GridDateTimeColumn DataField="Shipped"
                            FilterControlAltText="Filter column3 column" HeaderText="Shipped"
                            UniqueName="column3">
                        </telerik:GridDateTimeColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                        </EditColumn>
                    </EditFormSettings>
                </MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                </HeaderContextMenu>
            </telerik:RadGrid>
            <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
        </telerik:RadAjaxPanel>

public partial class Inventory : System.Web.UI.Page
{
            
    protected void Page_Load(object sender, EventArgs e)
    {
         
        string CurrentUserEmail = Membership.GetUser().Email;
 
        int CurrentUserId = Sample.Data_Access.UserViewModel.GetUserIdByEmail(CurrentUserEmail);
 
        Label1.Text = CurrentUserEmail;
 
        int StatusID;
 
        StatusID = RadTabStrip1.SelectedIndex;
 
        RadGrid1.DataSource = Sample.Data_Access.PackageViewModel.GetUserBoxesByStatus(CurrentUserId, StatusID);
        RadGrid1.DataBind();
                   
                                 
    }
     
        protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
        {
         
        string CurrentUserEmail = Membership.GetUser().Email;
 
        int CurrentUserId = Sample.Data_Access.UserViewModel.GetUserIdByEmail(CurrentUserEmail);
 
        Label1.Text = CurrentUserEmail;
 
        int StatusID;
 
        StatusID = RadTabStrip1.SelectedIndex;
 
        RadGrid1.DataSource = Sample.Data_Access.PackageViewModel.GetUserBoxesByStatus(CurrentUserId, StatusID);
        RadGrid1.DataBind();
 
        }
 
        protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            Label3.Text = RadGrid1.SelectedItems[0].OwnerTableView.DataKeyValues[RadGrid1.SelectedItems[0].ItemIndex]["column"].ToString();
            //Label2.Text = RadGrid1.SelectedItems[0].OwnerTableView.DataKeyValues[RadGrid1.SelectedItems[0].ItemIndex]["tag"].ToString();
            //e.ToString() = Label3.Text;
        }
 
 
 
    //TextBox1.Text = grdCategory.SelectedItems[0].OwnerTableView.DataKeyValues[grdCategory.SelectedItems[0].ItemIndex]["category_id"].ToString();
 
               
 
}
Daniel
Top achievements
Rank 1
 answered on 19 Apr 2011
1 answer
301 views
We populated radComboBox in page_load method once it not from post back. When the user click a button and we will read selected item using following code

cmbCustAcctNo.SelectedItem.Text

However, we got object null reference because SelectedItem is null. We have verified EnableLoadOnDemand = false and AllowCustomText = false. Do we miss anything? 

version: 2008.2.826.35

<telerik:RadComboBox ID="cmbCustAcctNo" Width="128px"
    runat="server" Skin="Office2007" CausesValidation="false" AutoPostBack="true"
    ToolTip="Select Account Number"
    onselectedindexchanged="cmbCustAcctNo_SelectedIndexChanged">
</telerik:RadComboBox>

IList<prcWebAccountsForUserResult> listOfAcctNo = accountNumbers.ToList();
cmbCustAcctNo.DataSource = listOfAcctNo;
cmbCustAcctNo.DataTextField = "AccountNumber";
cmbCustAcctNo.DataValueField = "AccountNumber";
cmbCustAcctNo.DataBind();
Helen
Telerik team
 answered on 19 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?