Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
379 views
Hi,
I have a grid having multiple records so i used paging now what i wanted is when i check first page records and go in any page and return on first the checked records userid must be maintained and on single button(outside grid) click those records data goes in database.
Thanks.
Eyup
Telerik team
 answered on 19 Aug 2013
1 answer
118 views

I am attempting to implement a custom skin with the RadCalendar control but I cannot seem to get it to display correctly.  I would like to customize the ‘Silk” skin for the calendar but I have run into a few hurdles before I can continue any further.  Once the custom skin is implemented (EnableEmbeddedSkins="False" Skin="Silk") the Calendar has some corrupted display issues.  The navigation buttons do not display correctly and the Days of Week align to the right as opposed to being centered.  Interestingly the calendar works fine with embedded default skin.  It does this in both Firefox and IE10.  Has anyone else run into this issue and if so were you able to rectify the situation?  I have modified several controls – Menu, TabStrip, ToolBar, and Grid without any problems.

Additional:

System: Windows 8.0 64

Visual Studios 2012

IIS 8.0

Web App is built in HTML5 .Net 4.0 (Default Classic in VS 2012)

RadControls for ASP.NET AJAX Q2 2013 2.7

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WhoCalendar.aspx.cs" Inherits="En4cer.eSysAdmin.Users.WhoCalendar" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head id="Head1" runat="server">
    <title>Calendar</title>
    <link href="../../Skins/Calendar/Blue/Calendar.Silk.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>  
        <div>
            <telerik:RadCalendar ID="RadCalendar1" runat="server" EnableEmbeddedSkins="false" Skin="Silk" MultiViewColumns="2"></telerik:RadCalendar>
        </div>
    </form>
</body>
</html>

The CSS file is the Calendar.Silk.css from RadControls for ASP.NET AJAX Q2 2013 unmodified.  Attached is a jpg image of the control.
Venelin
Telerik team
 answered on 19 Aug 2013
1 answer
83 views
Hi,

I just added RadScriptManager control and <a href="#maincontent"> Skip to Navigation</a> attribute to the master.site that will apply to all pages and then I just added <a name="maincontent id="maincontent"> </a> in the content page. 

Once I tested them in I.E 9 browser only, I was getting a common error from the radscriptmanager regarding WebResource.axd, etc.  I removed <a name="maincontent id="maincontent"> </a> off from the content page. It worked now.  I also tested them in other browsers (IE 7, 8, 10, Chrome, and Firefox). They are working 

I cannot figure out why I.E 9 is different from other browsers.

Please resolve this issue.

Thanks,
Chi Ming 


Venelin
Telerik team
 answered on 19 Aug 2013
3 answers
179 views
Hi All,

Have a RadGrid with AutoGenerateColumns="true" and EditMode ="InPlace".

Not able to view the last column fully. have attached the screen shot.

The Last column is "Shopping Mall" but it displays as Shop only.

<telerik:RadGrid ID="RadGridSingleClick" runat="server" Skin="Vista" AutoGenerateColumns="true"
                            OnNeedDataSource="RadGridSingleClick_NeedDataSource" OnPreRender="RadGridSingleClick_PreRender"
                            OnUpdateCommand="RadGridSingleClick_UpdateCommand" OnColumnCreated="RadGridSingleClick_ColumnCreated"
                            Height="250px" Width="1100px">
                            <%--OnItemDataBound="RadGridText_ItemDataBound" --%>
                            <MasterTableView HeaderStyle-CssClass="disable-highlight" Width="95%" HeaderStyle-HorizontalAlign="Center"
                                HeaderStyle-Wrap="true" DataKeyNames="MKTID" HeaderStyle-Width="100px" ItemStyle-Width="100px"
                                EditMode="InPlace">
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="60px" HeaderStyle-Width="60px">
                                    </telerik:GridEditCommandColumn>
                                </Columns>
                            </MasterTableView>
                            <ClientSettings Scrolling-AllowScroll="true" Resizing-AllowColumnResize="true" Scrolling-SaveScrollPosition="true"
                                Scrolling-FrozenColumnsCount="2" Scrolling-UseStaticHeaders="true">
                                <Selecting AllowRowSelect="true" />
                                <ClientEvents OnRowClick="RadGridSingleRowClick" />
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                            </ClientSettings>
                        </telerik:RadGrid>

Have even given the MasterTableView Width="95%".

Is there any option to rectify this.

-Anto
Venelin
Telerik team
 answered on 19 Aug 2013
2 answers
120 views
I have put this in my ascx file and I already have a ImageEditorTool with
the command name CustomPrint. But it seems that it isn't firing in the codebehind.
 I tried it using breakpoint and still it isn't firing. Any help?

The other tools(not custom) are working. I am also making this under vb.net coding
      <telerik:RadImageEditor ID="CurrentPageImage" runat="server" Height="100%" Width="100%" OnImageEditing="CurrentPageImage_ImageEditing">
        
                    <Tools>
                    
                     <telerik:ImageEditorToolGroup>
                      <telerik:ImageEditorTool CommandName="Rotate" ToolTip="Rotate Image" IsToggleButton="true">
                     </telerik:ImageEditorTool>
                       
                    <telerik:ImageEditorTool CommandName="RotateRight" ToolTip="Rotate Right by 90 degrees">
                 </telerik:ImageEditorTool>
                    <telerik:ImageEditorTool CommandName="RotateLeft" ToolTip="Rotate Left by 90 degrees">
                    </telerik:ImageEditorTool>
                    <telerik:ImageEditorTool CommandName="Flip" ToolTip="Flip Image" IsToggleButton="true">
                </telerik:ImageEditorTool>
 
                <telerik:ImageEditorTool CommandName="FlipVertical" ToolTip="Flip Image Vertically">
                </telerik:ImageEditorTool>
                <telerik:ImageEditorTool CommandName="FlipHorizontal" ToolTip="Flip Image Horizontally">
                </telerik:ImageEditorTool>
                   <telerik:ImageEditorTool CommandName="Zoom" ToolTip="Zoom Image" IsToggleButton="true">
                </telerik:ImageEditorTool>
        <telerik:ImageEditorTool CommandName="ZoomIn" ToolTip="Zoom In">
                </telerik:ImageEditorTool>
                      <telerik:ImageEditorTool CommandName="ZoomOut" ToolTip="Zoom Out">
                </telerik:ImageEditorTool>
                  <telerik:ImageEditorTool CommandName="CustomPrint" ToolTip="Print" ImageUrl="~/Images/PDFViewer/pdf-view-12-print.png" >
                </telerik:ImageEditorTool>
        </telerik:ImageEditorToolGroup>
    </Tools>
                        </telerik:RadImageEditor>
<
script type="text/javascript">
                              Telerik.Web.UI.ImageEditor.CommandList.CustomPrint = function (imageEditor, commandName, args) {
 
                                  var commandText = "CustomPrint";
                                  var commandArgument = "Additional Argument Sent to the Server";
                                  
                                  imageEditor.editImageOnServer(commandName, commandText, commandArgument, callbackFunction)
                               
                              }
 
                              function callbackFunction(clientData, serveData) {
                              }
    </script>
Vessy
Telerik team
 answered on 19 Aug 2013
3 answers
324 views
Hi,

Currently I use the following to ajaxify my RadGrid

<telerik:RadAjaxManagerProxy runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Grid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="LoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

This obviously ajaxifies everything. Is it possible to exclude postback within the FormTemplate of the RadGrid from this?

Within my FormTemplate I have questions which may trigger other questions to be displayed dynamically so I want them to be ajaxified directly (eg answer Yes to one question will postback and create another question).

Basically, I just want the CommandItem and GridButtonColumn's of my RadGrid to use Ajax, is that possible?
Princy
Top achievements
Rank 2
 answered on 19 Aug 2013
2 answers
321 views
Hi dear telerik team
I bought your source code and hardly tried to change the code of CalendarEngines.js file to change the Gregorian calendar to Jalali(Persian) calendar but I failed because I can't understand some of your variable in this code(like num1,num2 and etc in GetDatePart function). So if you have a JavaScript code for Persian calendar can I ask you to send it for me. I really need it.
with great thanks.
Ali
Top achievements
Rank 1
 answered on 19 Aug 2013
2 answers
76 views
Hi Im trying to implement this demo. When I was about to save changes I clicked "Add new record" instead "Save changes" and because of RequireFieldValidator in Unit Price I cant save changes. Now I am forced to add information to new record in order to save changes and not losing the rows I already added. I attached an image with the scenario.

Thanks. 

Julio
Top achievements
Rank 1
 answered on 16 Aug 2013
1 answer
108 views
I can't sort the query so is there a way to sort the list on page load?

The column name is "CYTD".

Sorry if dumb question, I'm a beginner with grid, and couldn't find an answer in search.
Hogen
Top achievements
Rank 1
 answered on 16 Aug 2013
1 answer
124 views
I am trying to build a grid that self-references orders on a Guid ID. Ultimately I want the user to be able to click on a button and turn the self-referencing on and off, but currently I am just working on the self-referencing part. The grid data source is a nettiers TList<order>. The grid shows a hierarchical structure, but the single related order in my test data is shown only as a top level item. The order it should be related to only shows "No child records to display." The search function returns the correct results, and the grid displays the correct results, but the parent and child are not linked. I have double checked that the data IDs are correct.

From the .aspx file
<telerik:RadGrid ID="uxOrderListControl" runat="server"
    OnNeedDataSource="uxOrderListControl_NeedDataSource"
    OnItemCreated="uxOrderListControl_ItemCreated"
    OnColumnCreated="uxOrderListControl_ColumnCreated"
    Width="100%"
    OnItemDataBound="uxOrderListControl_ItemDataBound"
    AutoGenerateColumns="False"
    ClientSettings-Selecting-AllowRowSelect="true"
    AllowMultiRowSelection="true"
    ParentDataKeyNames="ReferralInvoiceId"
    DataKeyNames="OrderId"
    EnableLinqExpressions="false"
    MasterTableView-HierarchyDefaultExpanded="true"
    MasterTableView-HierarchyLoadMode="ServerBind">
    <MasterTableView AllowSorting="true" DataKeyNames="OrderId, ReferralInvoiceId">
        <SelfHierarchySettings ParentKeyName="ReferralInvoiceId" KeyName="OrderId" />
    </MasterTableView>
    <ClientSettings AllowExpandCollapse="true">
        <Selecting AllowRowSelect="True"></Selecting>
        <ClientEvents OnDataBound="uxOrderListControl_OnDataBound" />
    </ClientSettings>
</telerik:RadGrid>
From the code behind file. (run on a Search button click event)
... code to fill parameters and call a search method
 
uxOrderListControl.DataSource = orderList;
uxOrderListControl.DataBind();
Bruce
Top achievements
Rank 1
 answered on 16 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?