Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
232 views

Hi

I am currently working on Scheduler, i want that scheduler give me option to print the appointments of current day shown in scheduler. How is it possible?

Thanks in advance

Best Regards

Akhtar Abbas

Paul
Top achievements
Rank 1
 answered on 04 Jul 2017
3 answers
362 views
I have a grid , have one GridTemplateColumn has a text box
<telerik:GridTemplateColumn   UniqueName="ForeignTranslation" AllowFiltering="true" FilterControlWidth="70px" 
HeaderText="dd">
<ItemTemplate>
        <asp:TextBox ID="txtTranslationText"  AutoPostBack="true" runat="server" Height="44px" OnTextChanged="txtTranslationText_TextChanged" TextMode="MultiLine"  ></asp:TextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
 OnTextChanged will save the data to DB

I need to allow user to tab out to the next row of the text box and set focus to the next row text box.
on Itemdatabound, I used
TextBox tb = (TextBox)dataItem["ForeignTranslation"].FindControl("txtTranslationText");
tb.TabIndex = 1;
It will allow me to tab out to the next row text box fine if I don't do any edit, as long as I change the text in the text box, which fires  OnTextChanged, then, the form did post back and the focus lost.

Is there anyway I can make the focus to the next row of text box in the grid after OnTextChanged triggered?

How can I find thegrid  next row clientID on OnTextChanged??


Thanks!
Omar
Top achievements
Rank 1
 answered on 04 Jul 2017
1 answer
204 views

Hi,

I have a javascript function (see below) that fires perform insert command for a data form. I am trying to pass the command argument of the button clicked to the ItemCommand event handler but somehow e.CommandArgument.ToString() tunrs out to be an empty string. Can anyone please guide me as to what i am doing wrong?

aspx:

function callSaveAll(sender,args) {                 
                        var object2 = $find("<%= OrderItemDataForm.ClientID%>");                       
                            if (object2._isItemInserted)
                                object2.fireCommand("PerformInsert", args._commandArgument);                                                                     
                }

 

.cs code:

protected void OrderItemDataForm_ItemCommand(object sender, RadDataFormCommandEventArgs e)
    {

        if (e.CommandName == "Cancel")
            ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CancelEdit();", true);


        if (e.CommandName == "PerformInsert")
        {
            if (Page.IsValid)
            {
                if (e.CommandArgument.ToString() == "SaveNew")
                {
                    saveAndNewButtonClicked = true;
                }
                else if (e.CommandArgument.ToString() == "Save")
                {
                    saveAndNewButtonClicked = false;
                }
            }
        }
    }
Marin Bratanov
Telerik team
 answered on 04 Jul 2017
3 answers
450 views

I've got a RadNumericTextBox's in a grid and a client side "OnValueChanged" event. How can I get the data key for the row of the control when the event fires? How can I find other controls in the same row.

 

                function onValueChanged(sender, args) {
    }

Rumen
Telerik team
 answered on 04 Jul 2017
3 answers
251 views

Hi,

Is there a way to switch a radgrid's edit mode from InPlace to BatchEdit client side. My goal is to have a checkbox to enable Batch Editing. When A RadGrid on the page fires the ClientSide OnCommand event, i would like to enter InPlace or BatchEdit EditMode based on whether the checkbox is checked or not. My reasoning for this is that I have multiple RadGrid's on the page that will be controlled by the single checkbox. 

 

Thanks,

Mike

Marin Bratanov
Telerik team
 answered on 04 Jul 2017
0 answers
119 views

Can I use RadClientDataSource for binding hierarchical grid? do you have any working example?

I tried creating the one with NestedViewTemplate like below ( just skeleton), 

<telerik:RadGrid ClientDataSourceID="RadClientDataSource1">
<MasterTableView>
<Columns></Columns>
<NestedViewTemplate>
<telerik:RadGrid ClientDataSourceID="RadClientDataSource2"/>
</NestedViewTemplate>
</MasterTableView>
</telerik:RadGrid>

I got multiple issue listed below, so I just want to check whether is it possible to use this option for hierarchical binding? if not do you have any other alternative option using client side binding?

1. When I change the pagesize from 10 to 20, expand icon was not appearing for the records starting from 11 to 20.
2. When I expand the first record in first page, then move to next page, expanded record doesn't collapse and it shows in next page as well.
3. When an expand command is fired then both the MasterView and Nestedview get refreshed, not retaining the state, say if I expand second page record, grid goes to first page

 

Sudharsan
Top achievements
Rank 1
 asked on 04 Jul 2017
0 answers
78 views
Respected Community,

I am facing a strange problem in RadGrid default filter menu. When I select Glow theme, all is well but whenever I change theme my filter menu becomes two line or out of alignment (attached). Plz, help. This behavior is with auto render mode, with lightweight rendering it is all ok, but, unfortunately, want to use classic rendering.

Saqeb
Saqeb
Top achievements
Rank 1
 asked on 04 Jul 2017
2 answers
110 views

I'm seeing an odd formatting issue with the FilterMenu, in IE only (see screenshot). I tried disabling the skin, but it made no difference. I'm running telerik version 2016.2.607.45.

Has anyone else seen this before?  How can I get rid of the extra space?

Here's the markup of the grid: 

<telerik:RadGrid ID="grid1" runat="server" AutoGenerateColumns="false" ShowStatusBar="true" AllowPaging="true" PageSize="100"
            OnNeedDataSource="grid1_NeedDataSource" OnDataBound="grid1_DataBound"
            Skin="Glow"
            AllowSorting="true" AllowFilteringByColumn="true">
            <PagerStyle EnableAllOptionInPagerComboBox="true" AlwaysVisible="true" />
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView DataKeyNames="LabID, TimeRequested, RerunInProgress, TestPackageName, BoxName, CellNumber, ReceivedDate, IRPosition, LubricantType"
                CommandItemDisplay="None">               
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="TimeRequested" SortOrder="Descending" />
                </SortExpressions>
                <Columns>
                    <telerik:GridTemplateColumn HeaderText="In Progress" DataType="System.Boolean" DataField="RerunInProgress">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkInProgress" runat="server" AutoPostBack="true" OnCheckedChanged="chkInProgress_CheckedChanged"
                                Checked='<%# DataBinder.Eval(Container.DataItem, "RerunInProgress") %>' />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn UniqueName="LabID" DataField="LabID" HeaderText="Lab ID" ItemStyle-Font-Size="Large" />
                    <telerik:GridBoundColumn UniqueName="TestPackage" DataField="TestPackageName" HeaderText="Test" ItemStyle-Font-Size="Large" />
                    <telerik:GridBoundColumn UniqueName="BoxName" DataField="BoxName" HeaderText="Box" ItemStyle-Font-Size="Large" />
                    <telerik:GridBoundColumn UniqueName="CellNumber" DataField="CellNumber" HeaderText="Cell" ItemStyle-Font-Size="Large" />
                    <telerik:GridDateTimeColumn UniqueName="TimeRequested" DataField="TimeRequested" HeaderText="Rerun requested time" DataFormatString="{0:g}" EnableTimeIndependentFiltering="true" />
                    <telerik:GridDateTimeColumn UniqueName="ReceivedDate" DataField="ReceivedDate" HeaderText="Received Date" DataFormatString="{0:g}" EnableTimeIndependentFiltering="true" />
                    <telerik:GridBoundColumn UniqueName="LubricantType" DataField="LubricantType" HeaderText="Lubricant Type" />
                    <telerik:GridBoundColumn UniqueName="IRPosition" DataField="IRPosition" HeaderText="IR Position" />
                    <telerik:GridBoundColumn UniqueName="Requester" DataField="Requester" HeaderText="Requester" />
                    <telerik:GridBoundColumn UniqueName="Reason" DataField="Reason" HeaderText="Reason" />
                    <telerik:GridBoundColumn UniqueName="Comment" DataField="Comment" HeaderText="Comment" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

 

 

 

Saqeb
Top achievements
Rank 1
 answered on 04 Jul 2017
0 answers
200 views

The benefits (Pros) of switching to the latest versions are:

  • Support for all modern browsers
  • Modern look and feel - many new modern skins are available: Bootstrap, Material, Metro and other improved skins
  • Modern lightweight rendering - less HTML, usage of modern CSS3 and font icons instead of images
  • Easier customization of the skins and ability to create new themes through the Theme Builder tool
  • Responsive rendering and mobile support for many of the controls
  • New controls to complete the portfolio of more than 100 Web UI components for ASP.NET Webforms
  • Better stability and less bugs

The cons of upgrading to the latest version are:

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 04 Jul 2017
2 answers
278 views

Hi,
I am using Visual Studio 2015 along with version 2016.1.225.35 of Telerik UI for ASP.NET AJAX

I am trying to get JavaScript intellisense to work, to try and resolve this I am following the instructions on here:

http://docs.telerik.com/devtools/aspnet-ajax/general-information/integration-with-visual-studio/how-to-use-javascript-intellisense-for-the-telerik-controls

I have created a single webform page and have added the suggested code from the help page, and when I type

oWnd.

I do get some intellisense buts its not what I would expected.  I’ve attached a picture so that you can see what I mean.

This is driving me mad, please highlight what I am doing wrong?

Thanks.

Andy.

Developer
Top achievements
Rank 1
 answered on 04 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?