Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
301 views

your onlinde demo for batch editing found at:

 http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultvb.aspx?skin=Bootstrap

 appears to be quite messed up with regards to the CheckboxColumn. Sometimes clicking on the column selects the box. Sometimes it doesn't. Sometimes double clicking does. Other times it appears impossible to get the box to become selected. 

This is true regardless of the EditMode.Click or EditMode... something else.

I have also seen the same problem in Firefox and Chrome.

Viktor Tachev
Telerik team
 answered on 17 Feb 2016
1 answer
165 views

I have a RadWindow created on code behind and when it gets closed I want the server to redirect the user to a specific page which I pass in via a URL parameter as per below:

 

protected void DisplayResultsWindow(string URL, string labelText)
        {
            RadWindow resultsWindow = new RadWindow();          
            resultsWindow.Width = Unit.Pixel(600);
            resultsWindow.Height = Unit.Pixel(190);
            resultsWindow.NavigateUrl = "Output.aspx?URL=" + URL + "&Label=" + labelText;
            resultsWindow.VisibleOnPageLoad = true;
            resultsWindow.Modal = true;
            resultsWindow.Behaviors = WindowBehaviors.Close;
            resultsWindow.Skin = "Glow";
            resultsWindow.VisibleStatusbar = false;
            resultsWindow.OnClientClose = "Redirect(" + URL + ")";
            resultsWindow.Title = "Output";
            rwmResultsWindow.Windows.Add(resultsWindow);
        }

 The JS:

function Redirect(URL) {
            window.location = URL;
            return false;
        }

How to correctly navigate to another page (the page and query string coming code behind) when the client closes the window? 

With the above I keep getting error:

JavaScript critical error at line 528, column 502 in http://localhost:19113/Manage?DC=Test\n\nSCRIPT1003: Expected ':'

Marin Bratanov
Telerik team
 answered on 17 Feb 2016
3 answers
182 views

Hello everyone.

I'm having a problem with an Android app. The app use a webview control to display and navigate a webpage. On the webpage I have a radasyncupload for uploading images. This woks perfectly both on the web page and the app FOR LOLLIPOP(Android 5.1.1).

My problem happens when I try to upload an image on Jellybean (Android 4.1.2), I'm able to upload the file to the control but when I hit the "Upload" button, that process the images I get the error "Parameter no valid" in the WEBPAGE code line "Bitmap upBmp = (Bitmap)Bitmap.FromStream(CurrentFile.InputStream);"

 

On the android app, when I hit the file upload bar it calls the following code:

public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture) {
                //openFileChooser(uploadMsg, acceptType);
            mUploadMessage = uploadMsg;  
                Intent i = new Intent(Intent.ACTION_GET_CONTENT);  
                i.addCategory(Intent.CATEGORY_OPENABLE);  
                i.setType("image/*");
                startActivityForResult( Intent.createChooser( i, "File Chooser" ), FILECHOOSER_RESULTCODE );
            }

And after I choose the file:

 public void onActivityResult (int requestCode, int resultCode, Intent data) {
 
        // code for all versions except of Lollipop
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
 
            if(requestCode==FILECHOOSER_RESULTCODE) {
                if (null == this.mUploadMessage) {
                    return;
                }
 
                Uri result=null;
 
                try{
                    if (resultCode != RESULT_OK) {
                        result = null;
                    } else {
                        // retrieve from the private variable if the intent is null
                        result = data == null ? mCapturedImageURI : data.getData();
                    }
                }
                catch(Exception e) {
                    Toast.makeText(getApplicationContext(), "activity :"+e, Toast.LENGTH_LONG).show();
                }
 
                mUploadMessage.onReceiveValue(result);
                mUploadMessage = null;
            }
 
        } // end of code for all versions except of Lollipop

...

 

It's a very strange problem and every help will be very appreciated.

Ivan Danchev
Telerik team
 answered on 17 Feb 2016
5 answers
227 views

I'm clearly misunderstanding the doc, I have a MaskedTextBox to which I'm trying to assign a value, but all I get is nothing in it and it displays the mask character.

Here's the definition of the text box, pretty simple:

<telerik:RadMaskedTextBox runat="server" ID="txtUserName" ZeroPadNumericRanges="true" Mask="__________" >
</telerik:RadMaskedTextBox     

Rodney
Top achievements
Rank 2
 answered on 16 Feb 2016
1 answer
629 views

I have a page, and on a user clicks, a RadWindow opens (non-modal) and when an event in the RadWindow happens (user clicks something) another RadWindow opens as a modal.  When the modal closes, I just want to refresh the parent RadWindow, not the parent page (as the RadWindow closes).

I am using the OnClientClose event of the modal RadWindow, but I'm not sure how to refresh the parent RadWindow.

I tried using

function OnBookTimeClientClose() {
    var w = GetRadWindow();
    if (w) {
        w.location.reload();
    }
}

 

but the Chrome debugger said "reload is not a valid method"

 

Mike
Top achievements
Rank 1
 answered on 16 Feb 2016
3 answers
363 views

Hi

Webmaster 

I saw this url for Multiple column for Autocomplete following url . But here mention DatasourceID="Sqldatasource" but i need use this same sample for call 

asmx method how will do this any one guide me.

 http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

 

Veselin Tsvetanov
Telerik team
 answered on 16 Feb 2016
1 answer
105 views
Perusing the Bootstrap Light skin (the default render mode now), it looks like the font-family is "TelerikWebUI". Why would you chose such an obscure font? It makes matching site content to your controls difficult, plus it makes it hard to predict the appearance of your controls if this font isn't available.
Danail Vasilev
Telerik team
 answered on 16 Feb 2016
1 answer
95 views

Hi

 How to Implementation AutoCompleteBox with Image for Ex:

My Control this but here i added this DataSourceID="SqlDataSource1"  but no need this i need fetch the data from database using c# and list object 

can you fixed this

 <telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBox1" runat="server" Width="400" Height="400px" 

                EmptyMessage="Type an E-mail" DataSourceID="SqlDataSource1" DataTextField="ContactName"
                OnItemDataBound="RadComboBox1_ItemDataBound">
            </telerik:RadComboBox>

 

But My Need this

 In my AutocompleteBox shows like this -> multiple column with image then c# list object using webservices  for Data binding.

 

EMPID   EMPNAME    EMPIMAGE

100        NAME HERE  IMAGE HERE 

 

 how will do this any one fixed this

 

Veselin Tsvetanov
Telerik team
 answered on 16 Feb 2016
1 answer
139 views

Hello,

 I have 2 radAsyncUpload controls and both of them are required on my content page.  I also have multiple textboxes and a listbox that are also required.

I have tried using the RequiredFieldValidator and it works but not on the radAsyncUpload control.  I search the forum and found the customvalidator to check but that works for the radAsyncUpload control but not the other controls. 

 Is there a way I can check all my controls before I send anything to the server?

I'm using Telerik Tools 2013 Q1 NET 45.  This page is using a master page.

Any help would be greatly appreciated

Hristo Valyavicharski
Telerik team
 answered on 16 Feb 2016
6 answers
910 views
Hi ,
     I tried to get a cell value from the Radgrid on clicking the button that is also present inside the radgrid. Both the label & buttons are in the GridTemplatecolumn.

Aspx file 
     

<telerik:GridTemplateColumn FilterControlAltText="Filter Status column"

HeaderText="Status" SortExpression="Status asc" UniqueName="Status">

<ItemTemplate>

<asp:Label ID="lblStatusText" Text='<%# Eval("Status")%>' runat="server"></asp:Label>

 

<asp:Button ID="btnChangeStatus" runat="server" Text="Change Status" onclick="btnChangeStatus_Click" />
</ItemTemplate>
</telerik:GridTemplateColumn>

Aspx.cs file:

 

protected void btnChangeStatus_Click(object sender, EventArgs e)

{

foreach (GridDataItem item in RadGrid2.Items)

{
Label lb = (Label)item.FindControl("lblStatusText");

Label lbOrder = (Label)item.FindControl("lblOrder");

string TemplateColumnValue = lb.Text;

string orderno = lbOrder.Text;

}

}
            Wat i get as o/p is the last row value of the radgrid in the particular page instead i want the cell values of the row on which the button is clicked. in this the lblOrder is a boundcolumn value.
 

Thanks

Viktor Tachev
Telerik team
 answered on 16 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?