Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
362 views
Hello I am trying to rebind a RadListView after a button click handled client side

this is my datasource:
<telerik:RadClientDataSource ID="rcdsStagingKofax" runat="server" AllowBatchOperations="true"><br>        <ClientEvents OnDataParse="Parse" /><br>        <DataSource><br>            <WebServiceDataSourceSettings BaseUrl="Webservice/KofaxService.svc/" ><br>                <Select Url="GetStagingDocs" DataType="JSON" /><br>            </WebServiceDataSourceSettings><br>        </DataSource><br>        <Schema><br>            <Model ID="DocumentId"><br>                <telerik:ClientDataSourceModelField FieldName="DocumentId" DataType="Number" /><br>                <telerik:ClientDataSourceModelField FieldName="NotifiedCompany" DataType="String" /><br>                <telerik:ClientDataSourceModelField FieldName="Origin" DataType="String" /><br>                <telerik:ClientDataSourceModelField FieldName="NotificationType" DataType="String" /><br>                <telerik:ClientDataSourceModelField FieldName="VatNumber" DataType="String" /><br>                <telerik:ClientDataSourceModelField FieldName="DocumentNumber" DataType="Number" /><br>                <telerik:ClientDataSourceModelField FieldName="DocumentValue" DataType="Number" /><br>                <telerik:ClientDataSourceModelField FieldName="ReceptionDate" DataType="Date" /><br>                <telerik:ClientDataSourceModelField FieldName="AnalysisStatus" DataType="Boolean" /><br>            </Model><br>        </Schema><br>    </telerik:RadClientDataSource>

and this is my radlistview
<telerik:RadListView ID="lvStagingKofax" runat="server" ClientDataSourceID="rcdsStagingKofax"<br>                    ItemPlaceholderID="ItemPlaceHolder" AllowPaging="true" PageSize="10"><br>                    <LayoutTemplate><br>                        <div style="width: 98%"><br>                            <ul class="padding-top" id="itemPlaceholder" runat="server"><br>                            </ul><br>                        </div><br>                    </LayoutTemplate><br>                    <ClientSettings><br>                        <DataBinding><br>                            <ItemTemplate><br>                                    <li class="selectItem" data-DocumentId="#= DocumentId #"><br>                                        <div class="ym-grid box-shadow"><br>                                          <h6><br>                                          #= SupplierName # </h6><br>                                            <div class="xpts ym-grid"><br>                                            <div class="ym-g40 ym-gl"><br>                                                <div class="ym-gbox"><br>                                                    <div class="ym-g25  ym-gl"><br>                                                        <img class="fr" src="../../Shared/image/64x64/Document-icon.png" /><br>                                                    </div><br>                                                    <div class="ym-g75 ym-gl"><br>                                                      <p><b>Document Number: </b><br>                                                         #= DocumentNumber #</p><br>                                                     <p><b>Process Number: </b><br>                                                      #= ProcessNumber #</p><br>                                                      <p><b>Type: </b><br>                                                     #= NotificationType #</p><br>                                                       <p><b>Origin: </b><br>                                                       #= Origin #</p><br>                                                 </div><br>                                                </div><br>                                            </div><br>                                            <div class="ym-g40 ym-gl"><br>                                              <div class="ym-gbox"><br>                                                    <div class="ym-g25 ym-gl"><br>                                                      <img class="fr" src="../../Shared/image/64x64/user.png" /><br>                                                 </div><br>                                                    <div class="ym-75 ym-gl padding-top"><br>                                                      <p><b>Company Id: </b><br>                                                      #= CompanyId #</p><br>                                                      <p><b>Company Name: </b><br>                                                        #= NotifiedCompany # </p><br>                                                      <p><b>Company Name: </b><br>                                                        #= NotifiedCompany # </p><br>                                                  </div><br>                                                </div><br>                                            </div><br>                                            <div class="ym-g20 ym-gl"><br>                                              <div class="ym-gbox"><br>                                                    <table><br>                                                        <tr><br>                                                            <td ><br>                                                                <img  src="../../Shared/image/32x32/Clock-icon.png" /><br>                                                            </td><br>                                                            <td class="padding-left"><br>                                                                <b>Date: </b>#= ReceptionDate #<br>                                                            </td><br>                                                        </tr><br>                                                        <tr><br>                                                            <td><br>                                                                <img src="../../Shared/image/32x32/money-euro.png" /><br>                                                            </td><br>                                                            <td  class="padding-left"><br>                                                                <b>Value:</b>#= DocumentValue #<br>                                                            </td><br>                                                        </tr><br>                                                    </table><br>                                                </div><br>                                            </div><br>                                            </div><br>                                        </div><br>                                    </li><br>                            </ItemTemplate><br>                            <ItemSeparatorTemplate><br>                                    <br/><br>                            </ItemSeparatorTemplate><br>                        </DataBinding><br>                    </ClientSettings><br>                </telerik:RadListView>

i want to hit a button lets say btnRebind and i want the list to refresh client side.

 
<script type="text/javascript"><br>function RebindList() {
<
br> <br>                var listview= $find("<%=lvStagingKofax.ClientID %>");
<
br>                listview.rebind();<br>            }
<
br></script>


but no success... could you help me please?

thanks in advance
Konstantin Dikov
Telerik team
 answered on 28 Apr 2015
2 answers
63 views

Hello,
 I'm trying to customize the filter menu of my RadGrid based on the column.  The server-side demo only shows how to change the filter menu for every column, not by column.  Is there any way to this with the current API?  Here is the code I’ve being working with to implement this functionality.  This code removes "Contains" from all the filtermenus.  I would like to do this for a specific column.

protected void RadGrid1_Init(object sender, System.EventArgs e)
{
     foreach(GridColumn column in RadGrid1.Columns)
    {
        if (column.HeaderText == "ColumnName")
        {
            GridFilterMenu menu = RadGrid1.FilterMenu;

            menu.Items.RemoveAt(menu.Items.FindItemByText("Contains").Index);
        }
    }
}

 

Thanks in advance.

End
Top achievements
Rank 1
 answered on 28 Apr 2015
0 answers
59 views
Hi Team,

We are using Telerik license : Dev Craft 2013 Q3.

The Expiry Date is Completed by Nov2014.

Now we are trying to use Reporting Viewer but we are Getting Error ,So how can we use the same licence for Reporting Viewer.
And What would be the Problem and how to resolve it.

Sumit
Top achievements
Rank 1
 asked on 28 Apr 2015
7 answers
124 views
Hi

Im trying to use telerik redchedule , I use web service to populate data, it working well on my local . but when I deployed it to server it rise an error 
"

No connection could be made because the target machine actively refused it 119.252.77.166:80

"

any  suggestion, what should I do hendle this error?
Bozhidar
Telerik team
 answered on 28 Apr 2015
7 answers
579 views
I am using RadEditor For ASP.Net AJAX

I want to give PageBreaks and Header, Footer Informations on each page.
Is any feature provided by RadEditor?? or how can I implement these features??

Regards,
Ramesh R.
Bharani
Top achievements
Rank 1
 answered on 28 Apr 2015
5 answers
71 views

Hello,

I have designed a webpage, where I have used RadRibbon (RadRibbon has RadTooptip as well).

When a user clicks on a specific Ribbon Tab (EmpTab), a Silverlight application is opened.

The RadTooltip hides under the Silverlight application (please enclosed the snapshot).

Can u please suggest a solution or a possible workaround to overlay the Radtooltip on the SilveSrlight.

Its an urgent issue, prompt answer is appreciated.

Thanks

~P

Alok
Top achievements
Rank 2
 answered on 28 Apr 2015
1 answer
133 views

I am deciding whether to use the Telerik controls for a project. The problem I've got is fairly straightforward and I've tried to create an ultra simple test code to see if it works and it doesn't.

I have a page with various forms of user input. I want a panel that displays a list of dynamically loaded user controls based on the user input.

For my test page I have simply created 3 user controls: control_a, control_b and control_c

On the main page I have a text input box and a "submit" button. I also have a xmlhttppanel and that simply has a placeholder in it The submit_click event simply reads .text property of the text box and does:

foreach (char c in txt_input.Text) {
            if ("abc".Contains(c))
    {
s = (UserControl)Page.LoadControl(string.Format("~/test/control_{0}.ascx", c));
s.ID = string.Format("asynccontrol_{0}", i++);
ph_panel.Controls.Add(s);
} } 

This works. It dynamically loads a set of user controls based on the user input.

However, in control_a I have a label, a text box and a "save" button. The save_click event simply copies the text box text to the label.text

Without using the rad control xmlhttppanel I was having a problem with a standard .net form that the dynamically loaded user controls weren't persisting. The rad xmlhttppanel appears to solve this (fab). However, the save_click event isn't executing. What have I missed?

Do I need to do anything else to make this app run safely and robustly?

Slav
Telerik team
 answered on 28 Apr 2015
4 answers
67 views

Sorry to sound impatient (I may yet have to open a support ticket) but I've been testing my application and I've run into a last minute IE11 compatibility problem.

 I have a RadGrid that uses RadButtons as link buttons to download attached files from a database.  This general set up has been in production for years now and has generally worked perfectly, in Chrome and Firefox.  Unfortunately we've had a number of problems with IE and we had believed we had solved most of them by moving to a new server and this generally seems to be true, with one exception.

I cannot download files in IE.  I get an error message saying file cannot be downloaded.  If I retry it claims to have succeeded but what I get is a corrupted stub of a file.  

The download process itself runs through the RadGrid's ItemCommand event handler and is so far as I know fairly conventional.  I get the file as a string from the database, set the Current.Response.ContentType to whatever the file is (In this case "image/jepg"), then do an add header ( AddHeader("Content-Disposition", "attachment; filename=\"" + sAttachName + "\"") ) and finally a BinaryWrite of the byte array containing the file.   As I said, this works perfectly in Chrome and Firefox.

It occurs to me that I've already had a problem like this earlier (http://www.telerik.com/forums/failure-of-download-links-after-ajaxifying-radgrid) and the code mentioned in that entry has not been changed in any way.

Suggestions?

Konstantin Dikov
Telerik team
 answered on 28 Apr 2015
1 answer
109 views

 <telerik:RadAsyncUpload runat="server" DisablePlugins="true" EnableInlineProgress="false" ID="AsyncUpload1" OnClientFileUploaded="OnClientFilesUploaded"
                                UploadedFilesRendering="BelowFileInput" MultipleFileSelection="Automatic" />

  <telerik:RadButton ID="btnUploadFiles" OnClientClicking="OnClientClicking" runat="server" Text="Upload File" />

 <script>
        function OnClientClicking(sender) {
            sender.set_autoPostBack(false);
            $telerik.$(".ruFileInput").click();
        }</script>

 

when DisablePlugins="true" of RadAsyncUpload, we can not select multiple files on IE

and if we remove DisablePlugins="true" of RadAsyncUpload, $telerik.$(".ruFileInput").click(); event not working...

 

 

 

 

Hristo Valyavicharski
Telerik team
 answered on 28 Apr 2015
4 answers
342 views
Is there a method for the client side so that I can access the control within the itemtemplate in lightbox item?  I have asp label (or I can use radtextbox) inside of the lightbox itemtemplate and need to change value.

Thank you!

Angel Petrov
Telerik team
 answered on 28 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?