Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
50 views
Sir,

I have a grid , all setting in design,

 AllowFilteringByColumn="True"
EnableLinqExpressions="False" and all columns  properties like    AutoPostBackOnFilter="True" and AllowFiltering="True" , CurrentFilterFunction="Contains" 

, the filter event is fired but no filter string is getting  and grid is not filtered.

 Please help.
by,

Seban
Eyup
Telerik team
 answered on 12 Feb 2014
1 answer
113 views
Hi, i'm noticing different selected item reported in the mastertableview because the event is triggered before the row is selected in IE but AFTER in chrome.

I'm trying to call getdatakeyvalue in the selecteditem to determine if i should cancel the edit, and the before and after does make a big difference.

Please advice if i should be doing something else..

Thanks,
raddy
Kostadin
Telerik team
 answered on 12 Feb 2014
4 answers
40 views
Hi,

I have a RadTabStrip control and use a RadMultiPage control inside that. Inside the "OnPageViewCreated" event, I load the relevant user control.

Let's say, the user in the first tab and if he select the second tab, the "OnPageViewCreated" event will execute with the PageView.ID of the "first" tab. So the first tab will be loaded again, before loading the selected tab. Because of this reason, there is a performance issue. 

I just wanted to know, how to stop/skip loading the current tab again before loading a new tab?

Thank you.
Lahiru
Top achievements
Rank 1
 answered on 12 Feb 2014
1 answer
53 views
 i am  using the rad schedular but it has very slow performance in retrieve the appointments .. any solution or suggestation for that urgetly
Bozhidar
Telerik team
 answered on 12 Feb 2014
1 answer
70 views
Hi,

We have a site working perfectly locally. Using the Ribbon, when we click a button to change theme or when we click on a split button, our form load event fires followed by the ButtonClick / SplitButtonClick event. We have defined the events using the Handles RadRibbonBar1.SplitButtonClick notation.

When we publish to Azure, the click events are not firing. The postback does happen so our form load event runs but that is it.

Has anyone else had this? Can anyone point us in the right direction to resolve this?

Regards,

Mark
Bozhidar
Telerik team
 answered on 12 Feb 2014
11 answers
1.0K+ views
Hello,
I'm building a multi video uploader using "RadAsyncUpload" control.
for each video the user will be asked to fill its title. after he had selected all the videos with their titles he will press submit.
The page will only submit  the files after all of them have been uploaded.
On the server side, after the submission each file directory will be change and a new record in the database will be added.

My question is:
Since the upload process can take a lot of time ,and in the event of a connection lost, or closing the browser by mistake
the user will have to upload all files again.
I was wondering if it is possible to call a server side function to preforme the file logging and manupuletion for each completed video without stopping the upload process?

this is a snippet of my code for example:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPage.aspx.cs" Inherits="TestPage" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div style="background-color: white" id="test-div">
            <asp:ScriptManager ID="ScriptManagerMain" runat="server">
                <Scripts>
                    <asp:ScriptReference Path="~/Script/jquery-1.9.1.min.js" />
                    <asp:ScriptReference Path="~/Script/jquery-migrate.js" />
                    <asp:ScriptReference Path="~/Script/ValidationEngineLibrary/jquery.validationEngine.js" />
                    <asp:ScriptReference Path="~/Script/ValidationEngineLibrary/jquery.validationEngine-en.js" />
                </Scripts>
            </asp:ScriptManager>
            <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" ClientIDMode="Static" HideFileInput="true" OnClientFilesUploaded="fileUploaded" OnClientFileSelected="addFileTitle" MultipleFileSelection="Automatic" MaxFileInputsCount="10"></telerik:RadAsyncUpload>
            <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="return submitPage();" OnClick="btnSubmit_Click" />
            <span id="uploading-msg"></span>
            <input type="button" runat="server" value="clearAll" onclick="clearAll()" />
            <asp:Label runat="server" ID="updateInfo"></asp:Label>
        </div>
        <telerik:RadScriptBlock runat="server">
 
            <script type="text/javascript">
                var submitPressed = false;
                function clearAll() {
                    $("#RadAsyncUpload1").find("input[name=RowRemove]").each(function () {
                        $(this).click();
                    });
                }
                function addFileTitle(radAsyncUpload, args) {
                    var $row = $telerik.$(args.get_row());
                    var inputName = radAsyncUpload.getAdditionalFieldID("TextBox");
                    var inputType = "text";
                    var inputID = inputName;
                    var input = createInput(inputType, inputID, inputName);              
                    var label = createLabel(inputID);
                    $row.append("<br/>");
                    $row.append(label);
                    //Add required validation
                    $(input).addClass("validate[required,custom[movieTitle]]");
                    $row.append(input);
                }
 
                function createInput(inputType, inputID, inputName) {
                    var input = '<input type="' + inputType + '" id="' + inputID + '" name="' + inputName + '" />';
                    return input;
                }
 
                function createLabel(forArrt) {
                    var label = '<label for=' + forArrt + '>File info: </label>';
                    return label;
                }
 
 
 
                function submitPage() {
                    $('#form1').validationEngine({ maxErrorsPerField: "1", binded: false, scroll: false });
                    var valid = $('#form1').validationEngine('validate');
                    //Check file uploads
                    if (valid == false)
                        return false;
 
                    if (!isAllUploadCompleted()) {
                        $("#<%=btnSubmit.ClientID%>").hide();
                        $("#uploading-msg").text("Uploading");
                        setInterval(function () { $("#uploading-msg").blink(); }, 1500);
                        $("#test-div").blockElement();
                        submitPressed = true;
                        return false;
                    }
                    return true;
                }
 
                function fileUploaded() {
                    if(submitPressed && isAllUploadCompleted())
                         fireSubmit();
                }
                function isAllUploadCompleted() {
                    var $ = $telerik.$;
                    //finds all file uploads that are currently in progress
                    var uploadingRows = $(".RadAsyncUpload").find(".ruUploadProgress");
                    //iterates and checks is there any file uploads that are successfully completed or failed and if yes - pop-up an alert box and prevent page submitting
                    for (var i = 0; i < uploadingRows.length; i++) {
                        if (!$(uploadingRows[i]).hasClass("ruUploadCancelled") && !$(uploadingRows[i]).hasClass("ruUploadFailure") && !$(uploadingRows[i]).hasClass("ruUploadSuccess")) {
                            return false;
                        }
                    }
 
                    return true;
                }
                function fireSubmit() {
                    document.getElementById("<%=btnSubmit.ClientID%>").removeAttribute("onclick");
                    document.getElementById("<%=btnSubmit.ClientID%>").click();
                }
            </script>
        </telerik:RadScriptBlock>
    </form>
</body>
</html>

thank you
oren
Shinu
Top achievements
Rank 2
 answered on 12 Feb 2014
4 answers
93 views
Hi,

I would like to achieve this Grid - Automatic Operations but I don't want to use Item Template. I would like to have the edit options so the data could be edited by user. Please guide. Below are my codes:

1.<telerik:RadGrid ID="dgvSummary" runat="server" AllowPaging="true" AllowSorting="true" CellSpacing="0" PageSize="7"  Skin="Hay" Width="100%" GridLines="None">
2.          <MasterTableView />
3.</telerik:RadGrid>
01.Private Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
02.        Me.dgvSummary.DataSource = Me._PopulatedgvSummary()
03. 
04.        If Me.dgvSummary.DataSource IsNot Nothing Then
05.            Me.dgvSummary.DataBind()
06.            Me.pnlSummary.Visible = True
07.        Else
08.            Me.pnlSummary.Visible = False
09.        End If
10.    End Sub

01.Private Function _PopulatedgvSummary()
02.        Dim tblData As DataTable = Me._GenerateTableShema
03.        Dim intIndex As Integer = 1
04.        Dim strEdit As String = String.Empty
05. 
06.        For Each objView_EvalSummaryRow As DSHREval.HREvalRow In HREvalDALC.GetEvalSummary(Me.radDepartment.SelectedValue, Me.radPosition.SelectedValue, Me.txtStarYear.Text, Me.cboStarTerm.SelectedValue)
07. 
08.            strEdit = "<a id=""popup"" href=""" & SharedCommon.GenerateLink(Request, SharedCommon.EditEvaSummary) & "?" & SharedCommon.ID & "=" & objView_EvalSummaryRow.ID.ToString & """>" & "Edit" & "</a>"
09.            tblData.Rows.Add(New Object() {intIndex, objView_EvalSummaryRow.EmpID, objView_EvalSummaryRow.EmpName, objView_EvalSummaryRow.PropertyCode, _
10.                                           objView_EvalSummaryRow.Department, objView_EvalSummaryRow.PresentPosition, _
11.                                           objView_EvalSummaryRow.Average, objView_EvalSummaryRow.FinalAverage, strEdit})
12. 
13.            intIndex += 1
14.        Next
15. 
16.        If tblData.Rows.Count = 0 Then
17.            tblData = Nothing
18.        End If
19. 
20.        Return tblData
21.    End Function

01.Private Function _GenerateTableShema() As DataTable
02.        Dim tblData As New DataTable
03. 
04.        With tblData.Columns
05.            .Add("Num.")
06.            .Add("Staff ID")
07.            .Add("Name")
08.            .Add("Property")
09.            .Add("Department")
10.            .Add("Position")
11.            .Add("Average Mark")
12.            .Add("Final Mark")
13.            .Add(" ")
14.        End With
15. 
16.        Return tblData
17.    End Function

Thank you in advance
Princy
Top achievements
Rank 2
 answered on 12 Feb 2014
1 answer
87 views
hi,
I want to delete the grid record on button click inside the grid with confirmation but  it not work my side please check my code and provide solutions.
my code is:
client side functions
function deletepermission() {
         
          var add = 1;
          if (add == 0)
          {
              bootbox.alert("You have no permissions to Delete Record"); return false; 
          }
          else
          {
              bootbox.confirm("Are You Sure To Delete Record ?", function (result) {
                  if (result == true)
                  { return true; }
              });
                  
          }      


<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="Action" HeaderText="Action" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>                                                                         
                                                                            <asp:Button runat="server" ID="btnDelete" ToolTip="DeleteRecord" CommandName="DeleteButton" CommandArgument='<%# Eval("LandlordId") %>' Text="Delete" onclientclick="return deletepermission();" Height="22px"></asp:Button>                                                                          
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" />
 </telerik:GridTemplateColumn>

Thanks,
Rahul
Shinu
Top achievements
Rank 2
 answered on 12 Feb 2014
3 answers
190 views
Hi, I want to call client side function than server side using OnClientClick Functionl on link button inside grid item template but it not work well so provide working examples.

client side function :

 function chkpermissionsEdit() {        
          var add =1;
          if (add == 0) { bootbox.alert("You have no permissions to Update Record"); return false; }
          else { return true; }
      }

  <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="Action" HeaderText="Action" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                                        <ItemTemplate>
                                                                            <telerik:RadButton ButtonType="LinkButton" runat="server" ID="btnEdit" 
                                                                                ToolTip="EditRecord"  Text="Edit" CommandName="EditButton" 
                                                                                CommandArgument='<%# Eval("LandlordId") %>' onClientClicked="return chkpermissionsEdit();"   />
                                                                         
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </telerik:GridTemplateColumn>
Princy
Top achievements
Rank 2
 answered on 12 Feb 2014
3 answers
30 views
Hello! I am facing a problem that when I click on the Grid Item to edit, after the post back the page shifts to the top and does not focus on the row which I have clicked for the editing. Please give me the solution and thanx in advance. 
Princy
Top achievements
Rank 2
 answered on 12 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?