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

I've a RadGrid where I'm using the edit form template editing mode, within a user control (Edit.ascx). The user control is part of a custom module for DNN. Whenever I click the Edit button in the generated edit column, the ItemCommand event triggers successfully, however the item command isn't triggered at all upon clicking the Update or Cancel buttons, instead the page posts back to another page control (View.ascx). The ItemCommand handler is a simple stub method; it does nothing.

My grid markup is as follows:

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ObjectDataSource1" AutoGenerateColumns="False" DataKeyNames="UniqueID"
    GroupPanelPosition="Top" AllowAutomaticUpdates="True" AutoGenerateEditColumn="True" OnItemCommand="RadGrid1_OnItemCommand">
    <MasterTableView>
        <Columns>
            <telerik:GridBoundColumn DataField="Address" HeaderText="Address" FilterControlAltText="Filter Address column" UniqueName="Address">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="LandArea" HeaderText="Land Area" FilterControlAltText="Filter Land Area column" UniqueName="LandArea">
            </telerik:GridBoundColumn>
        </Columns>
 
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <dnn:label ID="Label2" runat="server" Text="Land Area" />
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("LandArea") %>'></asp:TextBox>
                <asp:CompareValidator ControlToValidate="TextBox1" runat="server" ErrorMessage="Numbers only please" Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
                <dnn:label ID="Label3" runat="server" Text="Other features" /><br/>
                <dnn:texteditor ID="otherFeatures" runat="server" Text='<%# Bind("OtherFeatures") %>'></dnn:texteditor>
                <asp:LinkButton runat="server" ID="btnUpdate" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'></asp:LinkButton>
                <asp:LinkButton runat="server" ID="btnCancel" CommandName="Cancel" CausesValidation="False" Text="Cancel"></asp:LinkButton>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>
 

Interestingly, if I implement a similar set up using a standard ASP GridView, the commands work correctly, as expected. However, this doesn't allow me to customise the form as does the RadGrid. Any ideas? I first used the version of Telerik.Web.UI provided with DNN (2013.2.717.40), however upon upgrading to the latest version (2016.1.113.45), the behaviour doesn't change.

Kostadin
Telerik team
 answered on 17 Feb 2016
1 answer
143 views

Has anyone else noticed that if you have RadButtons which use embedded icons, if you then add a RadToggleButton the positions of the embedded icons in the RadButtons change? They move leftward so that part of the icon overlaps the left edge of the RadButton. You have to move them in (left) by 2px to get them back where they should be!

Has anyone also noticed that, by default, the RadToggleButton exceeds the RadButton in height so aligning them adjacent to each other is a little difficult?

Danail Vasilev
Telerik team
 answered on 17 Feb 2016
1 answer
114 views

I have created a new class library project where I extend few telerik controls where as referenced Telerik.Web.UI.dll reference as Specific Version = false and not as embedded resource. I use the CustomTelerik.dll in the project along with Telerik.Web.UI.dll.

The issue is everytime I upgrade my Telerik.Web.UI.dll version the CustomTelerik.dll complains that it could not load Older version of Telerik which it was built against.

How can I make my CustomTelerik.dll version proof for Telerik upgrade?

 Thanks

Danail Vasilev
Telerik team
 answered on 17 Feb 2016
1 answer
142 views

Hi all

Why pan not working in lineseries chart?

this is my code:

<telerik:RadHtmlChart  runat="server" ID="RadHtmlChart1" Width="500px" Height="800px" Skin="Silk" PlotArea-XAxis-StartAngle="90" Transitions="false"  Font-Size="Small">
                        <Pan Enabled ="true" />
                        
                        
                         <ChartTitle Text="My test">
                             
                            <Appearance Align="Center" BackgroundColor="Transparent" Position="Top">
                            </Appearance>
                             
                        </ChartTitle>

-------------------------------

</telerik:RadHtmlChart>

 

Thanks

Danail Vasilev
Telerik team
 answered on 17 Feb 2016
4 answers
149 views
This is a little hard to explain, so I have a few links below that will explain it visually much better, but I want to be able to do this:  when I am dragging a slider, when I get close to the right end (the higher values) I want the "selected value" to go up faster than it would with the lower values.  Have a higher "scale" for the higher values.  Ok visual help:

I am trying to replicate the functionality at this link:  http://www.bluenile.com/diamond-search
See my version for reference also:  http://www.fronseetechnology.com/autoid_video/Admin/DiamondMaintenance.aspx

- Look at the Carat slider on the bluenile link.  Notice when you are sliding towards the end of this slider, the values go up much faster.  Values 3 - 15 are in the last quarter of the slider.  While .23 - 2.00 are in the whole first half.  If you look at mine, it is all even through the whole slider.  Is it possible to achieve this "scaling" with your slider.  I imagine I could play with some of the OnClient javascript functions, but wanted to get your input first.

Your help is always much appreciated.  Thank you

Joe
Shimon
Top achievements
Rank 1
 answered on 17 Feb 2016
1 answer
355 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
201 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
221 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
266 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
668 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?