Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
48 views
Hi,

Is your scheduler RadScheduler ASP.NET support icalendar
Have you a soluce to synchronize with google calendar ?

Thanks
Sylo
Kate
Telerik team
 answered on 12 Feb 2014
3 answers
122 views
Hi,

I have a Grid in a page where I have updated the Radcontrols from version 2009.2.701 to 2013.2.611

The grid (code below) contains some databound columns and then a template column.
Now, when the grid is displayed, only the template column shows even though the databound columns are set to visible. Previously all visible columns were displayed as expected.

Does anyone have any idea how I can fix this?

Thank you

Paul


<rad:radgrid id="CheckListGrid" runat="server" AutoGenerateColumns="False" GroupingEnabled="False"
  style="position:absolute; top:73px; left:0px" width="900px" height="515px"
   EnableEmbeddedSkins="False" Skin="XLogixBlue" CellSpacing="0" GridLines="None">
  <clientsettings>
    <scrolling AllowScroll="true" scrollheight="500px" usestaticheaders="true"/>
    <Selecting AllowRowSelect="true" />
  </clientsettings>
  <mastertableview width="880px">
    <columns>
      <rad:GridBoundColumn UniqueName="iCheckItemID" DataField="iCheckItemID" display="false" ></rad:GridBoundColumn>
      <rad:GridBoundColumn UniqueName="sDataType" DataField="sDataType" display="false"></rad:GridBoundColumn>
       
      <rad:GridBoundColumn UniqueName="CheckDescription" DataField="CheckDescription" HeaderText="Description" Visible="true">
        <HeaderStyle width="280px"/>
        <ItemStyle width="280px" height="40px" Font-Size="Larger" font-bold="true"/>
      </rad:GridBoundColumn>
      <rad:GridBoundColumn UniqueName="CategoryDescription" DataField="CategoryDescription" HeaderText="Category">
        <HeaderStyle width="70px"/>
        <ItemStyle width="70px" height="40px"/>
      </rad:GridBoundColumn>
      <rad:GridBoundColumn UniqueName="bMandatory" DataField="bMandatory" HeaderText="Mandatory">
        <HeaderStyle width="55px"/>
        <ItemStyle width="55px" height="40px"/>
      </rad:GridBoundColumn>
      <rad:GridBoundColumn UniqueName="sRange" DataField="sRange" HeaderText="Range">
        <HeaderStyle width="100px"/>
        <ItemStyle width="100px" height="40px" Font-Size="Larger" font-bold="true"/>
      </rad:GridBoundColumn>
       
      <rad:GridTemplateColumn UniqueName="ValueTemplate" HeaderText="Entry">
        <HeaderStyle width="270px"/>
        <ItemStyle width="270px" height="40px"/>
        <ItemTemplate>
          <asp:panel id="UploadPanel" runat="server" style="display:none; text-align:left">
            <asp:FileUpload id="CheckItemUpload" runat="server" width="270px" onkeydown="return false;"/>
          </asp:panel>
          <asp:panel id="ConfirmPanel" runat="server" style="display:none; text-align:center">
            <input type="button" id="ConfirmYes" value="Yes" style="width:80px; height:35px; background-color:Silver" onclick="ToggleConfirmButton(this);"/>
            <input type="button" id="ConfirmNo" value="No" style="width:80px; height:35px; background-color:Silver" onclick="ToggleConfirmButton(this);"/>
            <input type="hidden" id="ConfirmResult" runat="server" value="" />
          </asp:panel>
          <asp:panel id="TextBoxPanel" runat="server" style="display:none; text-align:left">
            <asp:textbox id="CheckItemTextBox" runat="server" width="210px"></asp:textbox>
            <img id="WorksOrderKeyboard" alt="Show Keyboard" src="/XLogix/Images/Icon Buttons/Keyboard Btn.png" runat="server"/>
          </asp:panel>
          <asp:panel id="DropDownPanel" runat="server" style="display:none; text-align:left">
            <asp:dropdownlist id="CheckItemDropDown" runat="server" dataTextField="sDescription" DatavalueField="iCheckItemOptionID" width="270px"
              font-size="Large"></asp:dropdownlist>
          </asp:panel>
        </ItemTemplate>
      </rad:GridTemplateColumn>
       
    </columns>
  </mastertableview>
</rad:radgrid>
Viktor Tachev
Telerik team
 answered on 12 Feb 2014
5 answers
73 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
146 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
55 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
70 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
83 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.1K+ 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
121 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
119 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?