Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
129 views
Hi,

I have two rad editors on a form and both need to have some text to be added.  Can you set the editors to make them required feilds?

If so how?

thanks,

JK
Rumen
Telerik team
 answered on 11 May 2009
2 answers
92 views
Hi everyone!

I am using RadEditor to create custom documents.
I have a dropdown list which is dynamicaly binded with a certain set of values. When I clicked on the button in the header for the first time dropdown appears, and clicking on a value (dropdown element) add it to body text in editor.
When I click the same button (to see dropdown) again, instead of showing dropdown it add the previous element to the body text once more and it repeats if I keep on clicking.
I am unable to select more than one values from dropdown.!

I wonder if there is anything wrong at my end, or something wrong with control.

Can you suggest a fix to this issue?

Regards,
Yasar Mumtaz
Bluegarden AS
Norway

Yasar
Top achievements
Rank 1
 answered on 11 May 2009
1 answer
126 views
Hi,

I want to change the positions of the columns on the RadGrid.

I have a selectcommand="Select RNO,Rname,MonJan,MonFeb,MonMar,MonApril..........".

sometime i need my selectedcommand in different ways.


selectcommand="Select RNO,Rname,MonApril,MonMar,MonFeb,MonJan..........".
selectcommand="Select RNO,Rname,MonMar,MonFeb,MonJan,MonApril,..........".


I just a sample from the above one.

I tried but fails all the time.

Thanks.

Regards




Princy
Top achievements
Rank 2
 answered on 11 May 2009
1 answer
106 views

Hello,

We currently own the full suite of your ASP.NET AJAX and need assistance choosing which control would be best for one of the pages in our site given our scenario.

We have a typical e-commerce website built using VS.NET 2005/C# running on .NET 2.0, which uses various controls from the Telerik suite including the AJAX functionality.

We have a page where the user completes their purchase by entering their payment information, after which they click the “Process Your Order” button to complete the purchase (screen shot attached) which validates their payment information and writes it to our db.  During this process, the user is left waiting for without any indication as to why.   We’d like to provide a message to the user indicating processing is occurring and also prevent them from pressing the button multiple times.  Finally, upon successful validation and db writing, we need to send them to the next “confirmation” page.

I have provided detailed information below regarding how we need the suggested control to function along screen shot of the page.

Expected control behavior

Upon the user pressing the “Process Your Order” the following should occur:

·         The page’s current validation ensures that required fields aren’t left blank, and the expiration date hasn’t passed (using CustomValidator logic).

·         If validation succeeds, then:

o   A control would display a custom message to the user indicating to the user the site is processing their order.  This message must be displayed centered within their browser and it prevents them from interacting with the page (modal).

o   If their payment information successfully processes, they’re sent to the next page (Response.Redirect() ).

o   If they’ve given invalid payment information, the control disappears, they’re once again allowed to use the page to correct their information as indicated by the validators’ error message(s), and they do not proceed to the next page.

·         If validation fails, then no message is displayed by the control (other than the validators’ error messages), and the user correct their errors.

 

We appreciation your assistance in this matter and look forward to any direction you provide.

Svetlina Anati
Telerik team
 answered on 11 May 2009
4 answers
168 views
Hello,

I have been using RadAJAXLoadingPanel in many of my web pages but I have
encountered a strange behavior in one of my web pages.
I have a page with  :
1. A Grid
2. Couple of text boxes
3. Three buttons
4. asp Image
5. Loading Panel.
When I click on each of the three buttons, an AJAX request is posted while the LoadingPanel appears on the 'asp Image' and the other buttons turn to be disabled through a javascript code. After the request has returned from the server the appropriate image is displayed i.e success or fail.
For some reason when I click on the first two buttons for the first time ( either the first button or the second button) the LoadingPanel doesn't appear. Only from the second click on the first two buttons the Loading Panel appears. Clicking on the third button doesn't causes the LoadingPanel to appear at all.

Here is the section of the RadAJAXManager:

<telerik:RadAjaxManager ID="AJAXManager" runat="server" EnableAJAX="true"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="btnSaveNow"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="StatusImage" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lblStatustxt"/> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnSaveNow" /> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnSaveLater" /> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnRefreshCommand" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="btnSaveLater"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="StatusImage" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lblStatustxt"/> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnSaveNow" /> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnSaveLater" /> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnRefreshCommand" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="btnRefreshCommand"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="StatusImage" LoadingPanelID="RadAjaxLoadingPanel1"/> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lblStatustxt"/> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnSaveNow" /> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnSaveLater" /> 
                </UpdatedControls> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnRefreshCommand" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
Is there something wrong with my definition? Has anybody encountered this problem?
Jhon s
Top achievements
Rank 1
 answered on 11 May 2009
3 answers
107 views
Hello,

I have a custom form where the RadEditor is loading up in a very strange way, please take a look at the screenshot .


http://lh5.ggpht.com/_DyWlCfdXXKs/SgHIAk3h8DI/AAAAAAAAACI/JoALV0yXgMA/radeditorerror.jpg
Stanimir
Telerik team
 answered on 11 May 2009
1 answer
92 views
At clientside, I need to reference some RadInputControls. The page opens in a RadWindow, and contains a formview which again contains the controls.

How do I do this in JavaScript? I need to reference the controls from the page that opens in the window - not the parent page.

Thanks in advance...
Georgi Tunev
Telerik team
 answered on 11 May 2009
3 answers
410 views

foreach

 

(GridDataItem item in Radgrid1.MasterTableView.Items)

 

 {
    foreach (GridColumn col in Radgrid1.MasterTableView.RenderColumns)

 

    {

 

    }
}
This will loop through all the items in the MasterTable. Waht's the solution for DetailTable.
I have one detail table and I want to loop through this detail table.

Thanks.
Jo.

 

Princy
Top achievements
Rank 2
 answered on 11 May 2009
3 answers
184 views
I am creating a grid programmatically:

RadGrid gridFileView = new RadGrid(); 
gridFileView.ID = gridFileViewID
gridFileView.Skin = "Vista"
gridFileView.AllowPaging = true
gridFileView.PageSize = 20
gridFileView.AllowSorting = true
gridFileView.ClientSettings.AllowRowsDragDrop = true
 gridFileView.ClientSettings.Selecting.AllowRowSelect = true
pnlFileView.Controls.Add(gridFileView); 
 
AddExistingFiles(gridFileView, docs); 


 and am creating the columns with the following code:

private static void AddExistingFiles(RadGrid gridFileView, ExternalDocuments docs) 
    { 
        // Bind files to grid 
        gridFileView.DataSource = docs
        gridFileView.AutoGenerateColumns = false
        gridFileView.MasterTableView.DataKeyNames = new string[] { "Guid" }; 
 
        AddGridRow(gridFileView); 
 
        gridFileView.DataBind(); 
    } 
 
    private static void AddGridRow(RadGrid gridFileView) 
    { 
        GridBoundColumn boundColumn; 
 
        boundColumn = new GridBoundColumn(); 
        boundColumn.DataField = "DocumentType"
        boundColumn.HeaderText = "Type"
        gridFileView.MasterTableView.Columns.Add(boundColumn); 
 
        boundColumn = new GridBoundColumn(); 
        boundColumn.DataField = "Uploaded"
        boundColumn.HeaderText = "Date added"
        gridFileView.MasterTableView.Columns.Add(boundColumn); 
 
        boundColumn = new GridBoundColumn(); 
        boundColumn.DataField = "Title"
        boundColumn.HeaderText = "Title"
        gridFileView.MasterTableView.Columns.Add(boundColumn); 
 
        boundColumn = new GridBoundColumn(); 
        boundColumn.DataField = "Filename"
        boundColumn.HeaderText = "File"
        gridFileView.MasterTableView.Columns.Add(boundColumn); 
 
        boundColumn = new GridBoundColumn(); 
        boundColumn.DataField = "Description"
        boundColumn.HeaderText = "Description"
        boundColumn.AllowSorting = false
        gridFileView.MasterTableView.Columns.Add(boundColumn); 
 
        boundColumn = new GridBoundColumn(); 
        boundColumn.DataField = "FileSize"
        boundColumn.HeaderText = "File size"
        boundColumn.AllowSorting = false
        gridFileView.MasterTableView.Columns.Add(boundColumn); 
    } 

I would like to get the DocumentType data bound column and replace the text with an image based on what that text is. Any ideas on how I go about approaching this?

Thanks,

Michael
Michael Dunbar
Top achievements
Rank 2
 answered on 11 May 2009
1 answer
115 views
Hi,

There seems to be a bug on the new version of the Dock Control. Previous version our Docks are working fine, and now the command buttons are not showing correctly (pls. see screenshot):

http://img26.imageshack.us/my.php?image=bug1jeu.jpg

Code are as follows:


        RadDock dockableObject = new RadDock();
        dockableObject.Visible = true;
        dockableObject.Style["margin-top"] = "5px";
        DockCommand cmdWebPart = new DockCommand();
        DockCloseCommand cmdCloseCommand = new DockCloseCommand();
        DockExpandCollapseCommand cmdExpandCollapse = new DockExpandCollapseCommand();
        cmdWebPart.Text = "View Information";
        dockableObject.Commands.Add(cmdWebPart);
        dockableObject.Commands.Add(cmdCloseCommand);
        dockableObject.Commands.Add(cmdExpandCollapse);
        cmdCloseCommand.AutoPostBack = true;

Whenever i add commands dynamically, command buttons are not showing up correctly even if im using default skins.
Your response is truly appreciated.

Thanks,

Rex

 

 

jorex
Top achievements
Rank 1
 answered on 11 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?