Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
99 views
What I'm wondering is if the upload is interrupted by some other occurence, such as the browser crashing when the user is 3/4 the way done, can it be resumed if the user reconnects and tries to upload the file again? My reading of the pause/resume feature seems like it is tied to that instance of the AsyncUpload and so would not be resumable in this scenario; the user would start anew each time. Correct?
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 22 May 2013
2 answers
69 views
Just trying to verify how the upload actually occurs. Our website is using https, so if that's how the user is connected, does the upload also occur over https ?
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 22 May 2013
3 answers
254 views
Hello,

     I am trying to dynamically hide a button that is contained in a nested view contained in each row on a telerik grid.

The grid represents a series of transactions, each with a transaction date. Upon expanding a row on the grid the button should be hidden for that particular row if the transaction date for that row is older than today. If the transaction date for that record is = today, then the button should appear,

I have tried the ItemCommand method, checking for ExpandCollapse event

if (e.CommandName == RadGrid.ExpandCollapseCommandName && !e.Item.Expanded)
 
This gets me the event that is firing for row expand. At this point, however, my data is not bound to the nested view for that row on the grid so I can't involve logic to hide based on a date for this particular row.

I will note that I am setting a series of labels on the nested view for the row - and the transaction date is one of the values. I tried accessing that label's text for my date logic but it is not set at the time of the "Expand" in itemCommand. If I expand, collapse, and expand again the data is there - so there is a timing issue with my data in using itemCommand.

In general which event is preferred to access controls in a Nested View and what methods could I employ to get at the data associated with the nested view? Would a client side approach be easier? 

Nested view settings:
<NestedViewSettings DataSourceID="SqlDataSourceInnerTable">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="TRAN_ID" MasterKeyField="TRAN_ID" />
                </ParentTableRelation>
 </NestedViewSettings>

Datasource:
<asp:SqlDataSource ID="SqlDataSourceInnerTable"
ConnectionString="<%$ ConnectionStrings:LAWConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM TRANS_HIST AS TH INNER JOIN
                         TRANS_TYPE AS TT ON TH.TRANS_TYPE_ID = TT.TRANS_TYPE_ID INNER JOIN
                         TRANS_STATUS ON TH.STATUS_ID = TRANS_STATUS.STATUS_ID LEFT OUTER JOIN
                         TRANS_SUBTYPE ON TH.TRANS_SUBTYPE_ID = TRANS_SUBTYPE.TRANS_SUBTYPE_ID
         WHERE (TH.TRAN_ID = @TRAN_ID)"
runat="server">
        <SelectParameters>

Ulonda
Top achievements
Rank 1
 answered on 22 May 2013
9 answers
272 views

I have two web front end servers configured with Load Balancer and one application server outside the load balancer configuration , and although I configured the machine key on both servers in the web config with the same values as you see in the below:

<machineKey validationKey="AEDAB4B755EB987CBBB4C56EA861BD8A6D2DF4425A9FB7F8" decryptionKey="96A44D2D02FEBBEF8E1FC94DBE4820AC67AEB8BA95DB9C53" validation="SHA1" />

WebResources references are different as you see in the below:

Web front end 1

<link href="/WebResource.axd?d=EUJeeKSuEHqtpWqYXKVDjXJwZS7qQrsjgWJPMkRyIcYidNaMCqJlrJfAZm184B8RJVb1d3QvRziOvCOXxIbf3b-svaG69jUCbEVxwomMUDQ_oerenUHELlXDkKGilSlk0&amp;t=634183493748290221" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

Web front end 2

<link href="/WebResource.axd?d=TFV8V9QizTHQudTQT7Dl7QlzBUw0G7zm7h08wDFQ_UzipCD3e-UfPbUM_K99qXB2tXDFm-IsNhtDmJRjcry3StO61iot2FcGK7_7XrsDCngKWEvSyBafv6D598hVEKY0LXNXFO8k-WFPbcklJ7FhAo0nSvrBXMyffRQN283jgYoatDQV0&amp;t=634509229928059050" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

 

Application server

<link href="/WebResource.axd?d=EUJeeKSuEHqtpWqYXKVDjXJwZS7qQrsjgWJPMkRyIcYidNaMCqJlrJfAZm184B8RJVb1d3QvRziOvCOXxIbf3b-svaG69jUCbEVxwomMUDQ_oerenUHELlXDkKGilSlk0&amp;t=634183493748290221" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

So I need to know why in the web front end 2 the web resources url refrences is different because it produce errors when redirect from one server to the other.

Peter Filipov
Telerik team
 answered on 22 May 2013
1 answer
46 views
Hi,

Setting OnReordered="true" is causing postback even when no reordering of the tabs is done.  It's causing postback when clicking on tabs to select which is not desired.  Is there anyway to workaround?

Thanks,
Kern.
Nencho
Telerik team
 answered on 22 May 2013
10 answers
858 views
I recently upgrade to the newest version of telerik and now all of the width attributes in my radtextbox's are not working. Essentially setting all of my textboxes at a default ~150px. I am using a custom theme. Can anyone suggest a fix. 

I found this after posting - http://www.telerik.com/community/forums/aspnet-ajax/input/radtextbox-width-not-working-after-upgrade.aspx


downgrading does not seem to help 
Galin
Telerik team
 answered on 22 May 2013
1 answer
99 views
I am using the code in:

http://www.telerik.com/help/aspnet-ajax/grid-export-with-ajax-enabled.html

to prevent a toolbar button in an ajaxified grid from causing an ajax update in order to ExportToExcel. It seems to be working fine, but I have found that, upon clicking this button, the grid's loading image in the lower left hand corner is still displayed and never goes away. How can I prevent this from showing when args.set_enableAjax(false)?
Andrey
Telerik team
 answered on 22 May 2013
2 answers
105 views
I have data that requires views to properly pull the correct updated columns from various tables. So a user can update on one webpage a Column for "EstimatedCompletionDate" of a task. Another page has this same date but it applies to a different task. So the easiest way to get the right data into the right grid is to utilize views. I'd like to use the Entity Framework DataSource but I'm not sure how to execute the stored procedure call?

Is there an example of how to do this?

I'm using Rad Controls for ASP.NET AJAX version 2013.1.220.

Thanks
Julian
Top achievements
Rank 1
 answered on 22 May 2013
7 answers
133 views
Hi Telerik and the community ! I'm french dev so sorry for my english .. i've got a problem with a scenario. I try to cancel by javascript the indexchanging on my radlistbox. When i set_cancel(true) my action seems to be canceled but the previous index is not selected and no one of my listitems are selected. After that I can't selected no items.

I hope my explanations are good ... So for exemple my first index is selected, I click on my second inex and I set_cancel(true) and I would like to keep my first item selected.

My radkustbix (populate in pageload for my test)
<telerik:RadListBox runat="server" ID="ListBoxFile" Height="100px" OnClientSelectedIndexChanging="onClientSelectedIndexChangingHandler"
SelectionMode="Multiple" AutoPostBack="false">
</telerik:RadListBox>

My JS script
function onClientSelectedIndexChangingHandler(sender, e)
{
       if(ok)
        {
           do something
         }
         else
          {
           e.set_cancel(true);
          }
 }

I searched since yesterday ... I found not solution for the moment. Hope you can help me. I would like to cancel and keep my previous index selected. I tried to re-set my index with set_selected but I created a loop and indexchanging is recall again and again ..

Thank

Roms
Romain
Top achievements
Rank 1
 answered on 22 May 2013
7 answers
1.2K+ views
Hi,

I have a SQL database table with a description column which has HTML encoded data. I want to display this table's each row in an asp.net 3.5 details view control.
This details view has an template field which displays this column's data. This template field has an aspx Lable control which display's data when the details view is in view mode and a RadEditor which display's data when details view is in edit mode.

But both of these controls display data with HTML tags, but I want to display the data in HTML decoded form. Like plain text with html tag applied on the text, instead of showing along with text in the editor and label.
 
Here is the code-

<asp:DetailsView ID="dv" runat="server" Width="748px" DataSourceID="dvSqlDataSource"
                             DataKeyNames="Id" AutoGenerateRows="False"
        HeaderText="Details" CellPadding="4">    
        <Fields>
         <asp:BoundField DataField="Id" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="Id" />
<asp:TemplateField HeaderText="Description" SortExpression="Description" >
          <ItemTemplate>
                <asp:Label ID="lblDescription" runat="server" Text='<%# Eval("description") %>' Width="580px"></asp:Label>
            </ItemTemplate>
            <EditItemTemplate>
                <telerik:RadEditor ID="RadEditDesc" SkinID="Edit" runat="server"  ToolsFile="~/Editor/BasicTools.xml" EditModes="Design,Preview" Width="580px" Content='<%#Bind("description")%>' />
                <asp:RequiredFieldValidator ID="valRequireDesc" runat="server" ControlToValidate="RadEditDesc"
                         Display="Dynamic" ErrorMessage="Required" SetFocusOnError="true"  ToolTip="Description is required."  />
            </EditItemTemplate>        
         </asp:TemplateField>       
         
            <asp:CommandField ShowEditButton="True" />       
         
        </Fields>
        <EmptyDataTemplate>No description found!</EmptyDataTemplate>
       </asp:DetailsView>
<asp:SqlDataSource ID="dvSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"
        SelectCommand="SELECT [ld], [description],FROM [tbldescripion]
 
       UpdateCommand="UPDATE [tbldescription] SET [description] = @description  WHERE [Id] = @Id">
        <UpdateParameters>
             <asp:Parameter Name="Id" Type="Int32" />
 <asp:Parameter Name="description" Type="String" />
        </UpdateParameters>       
    </asp:SqlDataSource>

I have handled this event handler for decoding the text of label control  but It isn't working

protected void dvDeal_OnDataBound(object sender, EventArgs e)
    {
        DetailsView d = (DetailsView)sender;
        foreach (DetailsViewRow row in d.Rows)

        {
            if (row.RowType == DataControlRowType.DataRow)
            {

                foreach (Control c in row.Cells)
                {
                    foreach (Control c1 in c.Controls)
                    {
                        if (c1.GetType() == typeof(Label))
                        {
                            Label l = (Label)c1;
                            l.Text = System.Web.HttpUtility.HtmlDecode(l.Text);
                        }


                  }
          }
        }
 }

Anybody knows, how can we display a html encoded string into the lable control and in RadEditor as well in html decoded form. So that the end user can easily view and edit the description without looking onto these confusing html tags.

Any help will be really appreciated.  

Regards,
dazy
Patrick
Top achievements
Rank 2
 answered on 22 May 2013
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?