Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
188 views

I save multiple variations of images and then I am filtering the Image Manager filelist to only show 1 of each kind of them.
When I click "Image Editor" to load the ImageEditorDialog, is it possible to load a different file than the one selected from the list?

For example the list shows:
1_thumb.jpg
2_thumb.jpg
...

but when I select 1_thumb.jpg, and click "Image Editor" I want to load "1_source.jpg" for example (which exists but is not shown in the list).

Is there a function that I can override to do this?
Dobromir
Telerik team
 answered on 25 May 2010
3 answers
358 views
I have a RadGrid being populated from a SQL stored proc and have set the OnRowClick event to properly show the value in an alert box...I need to know how to pass this value back to my vb.net code behind to show in a label or to use for a second query (such as customer details).

Again, I do not want a post back as I just want the label to reload or an Ajax panel.
Here is the code to handle the OnRowClick event:
function custClicked(sender, args) { 
    var grid = sender
    var MasterTable = grid.get_masterTableView(); 
    var row = MasterTable.get_dataItems()[args.get_itemIndexHierarchical()]; 
    var cell = MasterTable.getCellByColumnUniqueName(row, "COMPANY"); 
    
    alert(cell.innerHTML); 
     
 
Thanks in advance for your help!
Bruce
Bruce McCulloch
Top achievements
Rank 1
 answered on 25 May 2010
3 answers
70 views

I want shared functionality for all RadGrids in my project, but I can't figure out how. I started with a WebUserControl (ascx) but learned it requires the same markup for all instances, which I can't as I need different columns in different pages, along with other property settings.

Is there a way to create a control that wraps/inherits a RadGrid that allows me to create shared methods, events, and properties, but have different markup on different pages? Or is that not possible and I need to copy-paste my server-side code to all instances and pages? Thanks.
Dimo
Telerik team
 answered on 25 May 2010
1 answer
181 views
When RadSpell makes changes to a textbox it does not cause the TextChanged event to fire. I tried calling a __doPostBack OnClientCheckFinished and it posts back but does not handle the TextChanged event on postback. Here's the code I am using at this point (I've tried without the __doPostBack call and with AutoPostback=True and it doesn't postback at all):

ASPX
<asp:TextBox runat="server" ID="ModuleTitleBox" Width="700" TextMode="MultiLine" Rows="1" AutoPostBack="true" /> 
<telerik:RadSpell ID="Radspell1" Runat="server" ControlToCheck="ModuleTitleBox" ButtonType="ImageButton" IsClientID="false" Skin="Black" OnClientCheckFinished="checkFinished"  /> 
 

JS
function checkFinished(sender, args) { 
    args.suppressCompleteMessage = true
    __doPostBack(sender.get_controlToCheck(), ''); 
 

VB
Protected Sub SaveTitleEdit(ByVal sender As ObjectByVal e As System.EventArgs) Handles ModuleTitleBox.TextChanged 
    'saves changes to database here 
End Sub 

Darin Beard
Top achievements
Rank 2
 answered on 25 May 2010
2 answers
133 views
I have a radpanel linked to a sitemap which is on my master page.

Now i need to enable and disable items in the panel according to which form i show.

Is this possible any suggestions or alternatives are welcome

Thanks in advance
Jed Fletcher
Top achievements
Rank 1
 answered on 25 May 2010
1 answer
160 views
I'm using nested splitters (splitters occupy entire page) with almost nothing but text inside, and when the browser window is re-sized there is a noticeable lag for the panes to refit in the window.  Use of "VisibleDuringInit" only works when the page is loaded.
This is not an issue with your examples, since the splitters don't get resized with the browser window.
I saw a post here from 2007 that recommended enclosing the Radpane contents in <div RadResizeStopLookup="true" RadShowStopLookup="true" >...</div> with some additional JavaScript.
(See http://www.telerik.com/community/forums/aspnet-ajax/splitter/slow-window-resize.aspx).
I attempted this, and there was no difference.
Is there any way to get rid of this lag or disguise it.
This doesn't happen when I use frames (which I would really prefer not using). It doesn't happen with Obout's splitters, but their support is not good, and I really like everything else about your products.
If I can't resolve this problem, I'll probably have to use your system with frames (if that doesn't create even more obstacles).

Best regards,
Mike
Tsvetie
Telerik team
 answered on 25 May 2010
2 answers
106 views
Hi, it's my first go at Telerik controls.  Can't seem to get the Add New Record to show anywhere.  I'm working in Visual Studio 2010, .NET 4.0, Windows 7 and am using what is available for download as a trial.

snippets from my aspx file:

    <telerik:RadGrid ID="rgDealerMaintenance" AutoGenerateColumns="False"
        AllowAutomaticInserts="True" GridLines="None" ShowFooter="true" runat="server" >
    <MasterTableView EditMode="InPlace" DataKeyNames="RegistrationID" HeaderStyle-CssClass="body_text_black_BOLD">
    <CommandItemSettings AddNewRecordImageUrl="Images/AddRecord.gif" AddNewRecordText="Add New" />
    <Columns>
        <telerik:GridBoundColumn DataField="RegistrationID" Visible="false" />
        <telerik:GridBoundColumn UniqueName="txtFirstName" DataField="FirstName" HeaderText="First Name">
        </telerik:GridBoundColumn>
...
        <telerik:GridEditCommandColumn EditText="Edit" UniqueName="EditCommandColumn" UpdateText="Update" CancelText="Cancel" HeaderText="Edit">
        </telerik:GridEditCommandColumn>
        <telerik:GridButtonColumn CommandName="Delete" Text="Delete" HeaderText="Delete">
        </telerik:GridButtonColumn>
    </Columns>
    </MasterTableView>
    </telerik:RadGrid>
the ShowFooter shows the footer, but doesn't put anything in it
what am I missing?

I don't want to put the add into the edit button - I am working with an application which contains an already written program which keeps the add and update separate and want to be consistant

Marianne Seggerman


Elliott
Top achievements
Rank 2
 answered on 25 May 2010
1 answer
139 views
Hi there.

This is my first trip with RadControls. I've created an usercontrol, which shows a Grid. My datasource is a DataTable, wich is populated on NeedDataSource event. I have to dynamically generate all columns of DataTable at runtime, so my ASCX file is pretty poor:

<TELERIK:RADGRID ID="RadGrid1" RUNAT="server" ALLOWSORTING="true">  
</TELERIK:RADGRID> 

Also i need to group data. Therefore, i add columnbound on codebehind. Here is the important part of NeedDataSource

            RadGrid1.DataSource = table;  
 
            RadGrid1.GroupingEnabled = true;  
            RadGrid1.AutoGenerateColumns = false;  
 
            GridBoundColumn boundcolumn;  
            foreach (DataColumn column in table.Columns)  
            {  
                if (column.ColumnName == "Name")  
                {  
                    continue;  
                }  
                boundcolumn = new GridBoundColumn();  
                boundcolumn.DataField = column.ColumnName;  
 
                boundcolumn.HeaderText = column.ColumnName;  
                  
                RadGrid1.MasterTableView.Columns.Add(boundcolumn);  
 
            }  
 
 
            GridGroupByExpression expression = new GridGroupByExpression();  
            GridGroupByField groupbyfield = new GridGroupByField();  
            groupbyfield.FieldName = "Name";  
            groupbyfield.HeaderText = " ";  
            groupbyfield.HeaderValueSeparator = string.Empty;  
            groupbyfield.FormatString = "{0}";  
            expression.SelectFields.Add(groupbyfield);  
 
            groupbyfield = new GridGroupByField();  
            groupbyfield.FieldName = "Name";  
            expression.GroupByFields.Add(groupbyfield);  
            RadGrid1.MasterTableView.GroupByExpressions.Add(expression);  
            RadGrid1.EnableViewState = true

All works fine and the output is really pretty. But if i collapse one group, all column headers will be lost. I've also implemented export to Excel and PDF. It generates a file, but there are much more columns and some values are System.Data.DataRowView. Maybe it's the same reason?

Please advise me. Thanks
Daniel
Telerik team
 answered on 25 May 2010
1 answer
147 views
hello,

im trying to do it on the server side but it seemed impossible? any css custom class?
Petio Petkov
Telerik team
 answered on 25 May 2010
1 answer
103 views

Petio Petkov
Telerik team
 answered on 25 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?