Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
82 views
I'm using asp.net model binding and for the select method returning an IQueryable, when I sort a column and then change the grid's page, the content remains the same, How can I solve this problem?
David
Top achievements
Rank 1
 asked on 16 Jul 2013
1 answer
62 views
When I use the RadEditor's Image Dialog control to insert an image I can specify a size for the image to display which generates the following HTML:

<img src="picture.jpg" height="250" width="250" />


As with other editing tools, this can't resize the image itself and instead just tells the browser to restrict the size accordingly even though it downloads the whole image - this is expected and not an issue. The only thing I'm curious is if it's possible to somehow make the dialog return HTML for that image that looks like this:

<img src="picture.jpg?height=250&width=250" height="250" width="250" />


I can then put an HTTP Handler in the directory where images are served up that automatically resizes images on the fly to take the static file, read the query string's height/width values and send back an image in that size. 

Is something like this possible?
digitall
Top achievements
Rank 1
 answered on 16 Jul 2013
1 answer
95 views
Hello,

using RadToolBar that has RadToolBarButtons for Undo, delete, copy, and proint and if click a button, it shows popup confirm window with Ok and Cancel button in it. the popup radwindow display text correctly but buttons are not clickable at the first in Chrome Browse. Close the popup window and click the same then buttons, ok and cancel, become clickable and functioning. it is working correctly in IE and Firefox browses. Chrome version is Version 28.0.1500.72.

Thanks in advance

HelloWorld
Top achievements
Rank 1
 answered on 16 Jul 2013
11 answers
357 views
I am creating a grid dynamically and setting client events in code behind. If I freeze any columns the OnScroll client event does not fire for horizontal scroll. It continues to fire for vertical but not horizontal.  Is this a bug? As soon as I comment out line three the event fires.

currentGrid.ClientSettings.ClientEvents.OnScroll =

"Scroll";

 

currentGrid.ClientSettings.Scrolling.UseStaticHeaders =

 

true;

 

currentGrid.ClientSettings.Scrolling.FrozenColumnsCount = 2;

Thanks,
Sean

 

Rob
Top achievements
Rank 1
 answered on 16 Jul 2013
2 answers
70 views
Is there a good documentation explain how controls are nested and how to find/access the controls in code behind? I have controls within radgrid, mastertable, etc. burying or nested in so many layers that I don't know how to get a handle to the controls. When the controls are outside those layers, it is so easy to access them by Label1.Text without having to findcontrol().
Lisa
Top achievements
Rank 1
 answered on 16 Jul 2013
3 answers
179 views
I am trying to use the example that I saw on this forum to get value from a dropdown list as my additional field, however, I am not showing the drop down list.

Here is the modified javascript code:

function onClientFileUploaded(radAsyncUpload, args) {
     var row = args.get_row(),
          inputName = radAsyncUpload.getAdditionalFieldID("objName"),
          inputID = inputName,
          input = createSelect(inputID, inputName),
          label = createLabel(inputID),
          br = document.createElement( "br" );
  
     row.appendChild( br );
     row.appendChild( label );
     row.appendChild( input );
}
 
function createSelect(inputID, inputName)
{
    var input = "<select id='" + inputID + "' name='" + inputName + "'><option value='Volvo'>Volvo</option><option value='Ford'>Ford</option><option value='SAAB'>SAAB</option><option value='Toyota'>Toyota</option><option value='BMW'>BMW</option><option value='OTHERS'>OTHERS</option></select>";
    return input;
}
 
  
function createLabel(forArrt) {
     var label = document.createElement( "label" );
  
     label.setAttribute( "for", forArrt );
     label.innerHTML = "Select a value: ";
  
     return label;
}

Please tell me what I am doing wrong as I am not very good at javascript. Besides, how do I get the value into a variable so I can get this over to the database.

Any assistance will be appreciated.

Thank you guys.
Abdul
Top achievements
Rank 1
 answered on 16 Jul 2013
3 answers
800 views
Following is my grid which has autogenerated column to true. I have created two new columns Add Comments and Add Documents.

I want to capture onClick event for these two hyperlink. How can I do that ?

I have tried with <ItemTemplate> and <asp:Hyperlink> but in that case I am loosing all my auto generated column, Please help


'<telerik:RadGrid ID="gvInvoice" Width="98%" AllowPaging="true" AllowSorting="true" PageSize="100"
                                    runat="server" AutoGenerateColumns="true" CellSpacing="0" GridLines="None" Skin="Office2010Blue"
                                    OnPageIndexChanged="gvInvoice_PageIndexChanged"
                                    OnItemDataBound="gvInvoice_ItemDataBound"
                                    OnSortCommand="gvInvoice_SortCommand" 
                                    ShowFooter="True" Height="100%">
                                    <MasterTableView>
                                        <Columns>
                                          <telerik:GridHyperLinkColumn Text="Add Comments" UniqueName="Comments"  HeaderStyle-Width="120px" HeaderText="Comments" NavigateUrl="#"></telerik:GridHyperLinkColumn>
                                          <telerik:GridHyperLinkColumn Text="Add Documents" UniqueName="Documents" HeaderStyle-Width="120px" HeaderText="Document" NavigateUrl="#"></telerik:GridHyperLinkColumn>
                                        </Columns>
                                    </MasterTableView>
                                   
                                    <PagerStyle Mode="NextPrevAndNumeric" />
                                    <ClientSettings>
                                    <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" /></ClientSettings>
                                </telerik:RadGrid>'


Any suggestion ?
Andrey
Telerik team
 answered on 16 Jul 2013
0 answers
59 views
Hi,

I trying to bind a dropDownColumn to a class property as Enum and the value in itemDataBound always nbsp. When i bind with BoundColumn it's ok, i see the value of the enum.

If i change the class property to integer, the dropDownColumn displayed correctly, but i want to keep the class property as enum.  

Any workaround for this?

'Do not work
Public class XYZ
    Public Property Status as StatusEnum
End Class
 
Public Enum StatusEnum as Integer
    Enabled = 0
    Disabled = 1
End Enum
 
'Work
Public class XYZ
    Public Property Status as Integer
End Class

ty
Allin
Top achievements
Rank 1
 asked on 16 Jul 2013
1 answer
154 views

We have multiple RadComboBoxes within a Microsoft AJAX UpdatePanel that lies within another Microsoft AJAX UpdatePanel.
Only with this configuration, we are seeing some javascript exceptions.
I’ve attached a screenshot of the exact exception and a clip of the stack trace.
This only occurs when one of the RadComboBoxes has their selected index changed and that causes a PostBack.
Also, this only seems to occur in IE10.
Can you possibly help shed some light on what may be the problem here? We are using Telerik version 2013.1.417.40.

Nencho
Telerik team
 answered on 16 Jul 2013
11 answers
301 views
Hello every one
how to find radgrid rows length in javascript here my script

i'm passing through grid like from server side

PricePerUnit.Attributes.Add("onFocusout", "return AmountCalculation('" + RadGrid1.ClientID + "','" + Quantity.ClientID + "','" + PricePerUnit.ClientID + "','" + Amount.ClientID + "','" + subtoal.ClientID + "')");

function AmountCalculation(Grid, Quantity, PricePerUnit, Amount, subtoal) {
                debugger;
                var Grid = $find(Grid);
                var Quantity = $find(Quantity).get_value();
                var PricePerUnit = $find(PricePerUnit).get_value();
                var Amount = $find(Amount);
                var subtotal = $find(subtoal);
 
 
                Amount.set_value(Quantity * PricePerUnit);
 
                for (j = 1; j <= Grid.MasterTableView.length; j++) {
                    if (Quantity.value != "") {
                        subtotal.set_value = Amount;
                    }
                }
            }
please refer the image ,
amount columns value should in assigned in subtotal field ,

Thanks ,
Mohamed.
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?