Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
72 views
I have a strange situation which I cannot recreate on any of my machines. I have a developer who reported that vertical scrolling is not working on one ajax enabled webpage. They also stated that removing the ajax code from the page corrects the issue.

The developer reported this issue with Windows 7 using IE8 (32 bit and 64 bit versions) as well as on a Windows XP machine using IE7. I tested both these senarios with my machines and everything worked correctly. The developer also tested in firefox and everything worked correctly for her there. I am wondering if this is some sort of setting or configuration issue on the developer's end.

Has anyone ever encountered anything like this? Any knowledge would be greatly appreciated!
Casey
Top achievements
Rank 1
 answered on 12 Sep 2011
2 answers
100 views
Hi,
    I need some info on this issue since i cant find any documentation on this. I am using entity framework with ObjectDatasource and RadGrid. all the rest (Update,insert) commands are working fine but when I try delete this is the error i get "$5,450.36 is not a valid value for Decimal" . I have automatic deletes turned on the grid. On the backend I have a column of decimal (18,2) to store the currency data. How can I keep the currency formatting and get rid of this error on delete please let me know, I have tried 

DataformatString = "{0:c}"    and NumericType = "Currency"

but none of these are working?? please see below for my grid column definition. Please let me know how to do this as it is urgently needed. Thanks in advance

<telerik:GridNumericColumn  DataField="payment_rate" DataType="System.Decimal" NumericType="Currency"  UniqueName="payment_rate" AutoPostBackOnFilter="true"   HeaderText="Payment Rate" DecimalDigits="2">
 <HeaderStyle HorizontalAlign="Left" Width="10%" />
    <ItemStyle HorizontalAlign="Left" />
 </telerik:GridNumericColumn>

Maria Ilieva
Telerik team
 answered on 12 Sep 2011
2 answers
186 views
I have the following code

Javascript

    function RowDblClick(sender, eventArgs)
                                 {
                                    window.radopen("Example.aspx?Id=" + eventArgs.getDataKeyValue("Id"), "Dialog");
                                }

Aspx Grid Code

     <telerik:RadGrid ID="RadGrid" runat="server" AllowPaging="True" AllowSorting="True"
                            GridLines="None" ShowGroupPanel="True" Skin="Black" AutoGenerateColumns="False"
                            Width="100%" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" PagerStyle-Mode="NumericPages"
                            OnItemInserted="GridItemInserted"
                            onitemdatabound="GridItemDataBound">
    .............................................
    ........................................
    ..................................................
                                <ClientSettings>
                                <Selecting AllowRowSelect="true" />
                                <ClientEvents OnRowDblClick="RowDblClick" />
                            </ClientSettings>
    </telerik:RadGrid>
    <asp:Button ID="AddButton" runat="server" Text="Add New" OnClientClick="return ShowForm();" />

My actual question is to disable or enable RowDblClick property based on the user permission
This is my sample code in the aspx.cs file where i want to set the edit or view permission for radgrid
 

    this.AddButton.Enabled =true/false;//the value will be true or false
     this.RadGrid.Enabled=true/false;

//the value will be true or false ,based on this value i want to enable/disable my rowdblclick,can any one help out to figure out where i am doing wrong
Bruno
Top achievements
Rank 2
 answered on 12 Sep 2011
3 answers
94 views
Hi Everybody,

RadMenu view is distorted in the page used RadMenu and RadTreeView. What could be the problem? Radtreview spoils radMenu's the appearance..
Kate
Telerik team
 answered on 12 Sep 2011
1 answer
44 views
I am using Editor (RadControls for Asp.net Ajax q2 2011) in Visial Studio 2005 project.
I have RadScriptManager as very first control on the page and RadEditor after it.
When i select some text and click HyperLink Manager button, i get Hyperlink dialog and after this popup Error (line 1093, Sys.WebForms.PageRequestManager is null or not an object.

thanks
Galina
Rumen
Telerik team
 answered on 12 Sep 2011
3 answers
107 views
Hi,

I've an issue with selected state of rows with custom cssclasses. I'll discribe the scenario: We have a grid with 20 addresses (name, street, city). Some records are from external source which we want to be blue (text). This works very well with cssclass, but ... After succesfully load of the girid, click on some blue record, the postback will be forced. The row is selected correctly with highlighting but after the postback is finished, the selected state is lose and is back to his normal state (rgRow or rgRowAlt).

Grid:
<telerik:RadGrid ID="grdData" Width="100%"
                                AllowPaging="True" PageSize="15" runat="server" AllowSorting="True"
                                GridLines="None" EnableLinqExpressions="False" GroupingEnabled="False"
                                AutoGenerateColumns="False" CellSpacing="0" SkinID="grdGeneral" CssClass="RadGrid">
                         
                                <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnablePostBackOnRowClick="true">
                                    <Selecting AllowRowSelect="True" />
                                    <Scrolling AllowScroll="True" />
                      
                                    <Resizing ClipCellContentOnResize="true" />
                                </ClientSettings>
                            
                                <MasterTableView Width="100%" ClientDataKeyNames="address_ID,type_ID" DataKeyNames="address_ID,type_ID" TableLayout="Fixed">
 
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="address_ID" UniqueName="address_ID" Visible="False" />
                                        <telerik:GridBoundColumn DataField="type_ID" UniqueName="type_ID" Visible="False" />
                                        <telerik:GridTemplateColumn UniqueName="SELECT" AllowFiltering="false" Reorderable="false" Resizable="false">
                                            <ItemStyle Width="35px" />
                                            <HeaderStyle Width="35px" />
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="chkSelectAll" runat="server" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkSelect" runat="server" />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="TYPE" CommandName="TYPE">
                                            <ItemStyle Width="30px" />
                                            <HeaderStyle Width="30px" />
                                        </telerik:GridButtonColumn>
                                        <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/images/edit.png" UniqueName="EDIT" CommandName="EDIT">
                                            <ItemStyle Width="30px" />
                                            <HeaderStyle Width="30px" />
                                        </telerik:GridButtonColumn>
                                        <telerik:GridBoundColumn DataField="full_name" UniqueName="full_name" HeaderText="Naam">
                                            <ItemStyle Wrap="false" CssClass="minwidth" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="city" UniqueName="city" HeaderText="Plaats">
                                            <ItemStyle Width="140px" Wrap="false" />
                                            <HeaderStyle Width="140px" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="emailaddress" UniqueName="emailaddress" HeaderText="E-mailadres">
                                            <ItemStyle Width="140px" Wrap="false" />
                                            <HeaderStyle Width="140px" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="phone" UniqueName="phone" HeaderText="Telefoon">
                                            <ItemStyle Width="140px" Wrap="false" />
                                            <HeaderStyle Width="140px" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/images/delete.png" UniqueName="DELETE" CommandName="DELETE">
                                            <ItemStyle Width="30px" />
                                            <HeaderStyle Width="30px" />
                                        </telerik:GridButtonColumn>
                                    </Columns>
 
                                </MasterTableView>
 
                            </telerik:RadGrid>

Databound event:
Private Sub grdData_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles grdData.ItemDataBound
   radItem.CssClass = IIf(radItem.ItemType = GridItemType.AlternatingItem, "rgAltRow", "rgRow") & " BlueRecord" 
End Sub

.BlueRecord
{
    color: navy !important;
}
Erick
Top achievements
Rank 2
 answered on 12 Sep 2011
4 answers
121 views
Hello! I have a question! I'm using the RadGrid and there I have FormSetting which is again RadGrid! Second grid, I use to display more information. To edit record in the inner grid, I use Radwindow! How can I update the internal grid? How to get it in the event  protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)? How I can do this? THANKS!!)))
Timyr
Top achievements
Rank 1
 answered on 12 Sep 2011
0 answers
93 views
Hi i am using RAD Scheduler. The Problem is when i bind RAD Scheduler in Resource Grouping mode its not showing Appointments. If i remove resource grouping the scheduler is working fine.

I have two tables one for Projects (Appointments ) and other for Techs ( Resources.). Both table have FK relationship. I tried all possible way of binding ( In Memory DataTable with Custom fields required by Scheduler) and finally i m using Sql Data Sources for Projects ( Appointments) and Techs (Resources.) The FK relationship is defined. 

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataSourceID="sdsProjects"
         Skin="Office2007" Height="100%" Width="100%"  ShowFooter="False"
         DataKeyField="project" DataStartField="Start" DataEndField="End" 
         DataSubjectField="Cust" CustomAttributeNames="Cust,Location, Tech" RowHeight="37px"
            OnAppointmentCommand="RadScheduler1_AppointmentCommand" 
            OnAppointmentInsert="RadScheduler1_AppointmentInsert" GroupBy="Tech">
            <AdvancedForm Modal="true" />
And here is Resource defination

        <ResourceTypes>
                <telerik:ResourceType DataSourceID="sdsResources" ForeignKeyField="Assignedto" 
                    KeyField="uID" Name="Tech" TextField="UserName" />
            </ResourceTypes>

here are two DataSources.

<asp:SqlDataSource ID="sdsResources" runat="server" 
        ConnectionString="<%$ ConnectionStrings:MyConn %>" 
        
        SelectCommand="Select * From Techs" >
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="sdsProjects" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Mycon %>" 
        SelectCommand="sched_GetSchedule" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:Parameter Name="schedDate" Type="DateTime" />
        </SelectParameters>
    </asp:SqlDataSource>


Any help will be greatly appreciated. 

Thanks
Waqar
Top achievements
Rank 1
 asked on 12 Sep 2011
1 answer
93 views
Dear all,

i need your help,i have a dropdownlist in master page.this dropdownlist having values like 1,2,3. in content page i have grid and inside grid i have radnumerictextbox now i want to limit the user according to the dropdownlist selected value,means suppose if user has selected value 2 and the grid having suppose 4rows now the total value of radnumeric textbox should not be more than 2 ,i hopw my question is understandable.
please help me to solve this issue.

Thanks
 
Tsvetina
Telerik team
 answered on 12 Sep 2011
2 answers
51 views
hi,

Radloading panel doesn't take up the entire screen in case of sticky when scrollpage... How do i this...
ne2000
Top achievements
Rank 1
 answered on 12 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?