Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
171 views
This Below Code is : check.aspx
<br>
/*AjaxSettig*/<br>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"><br>
        <AjaxSettings><br>
            <telerik:AjaxSetting AjaxControlID="RgCheckSetUp"><br>
                <UpdatedControls><br>
                    <telerik:AjaxUpdatedControl ControlID="RgCheckSetUp" LoadingPanelID="RadAjaxLoadingPanel1" /><br>
                </UpdatedControls><br>
            </telerik:AjaxSetting><br>
        </AjaxSettings><br>
    </telerik:RadAjaxManager><br>
<br>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"><br>
    </telerik:RadAjaxLoadingPanel><br>
/*Rad window */<br>
<telerik:RadWindowManager ID="RadWindowManager2" runat="server" Behaviors="Default"<br>
        InitialBehavior="None"><br>
        <Windows><br>
            <%-- In Panel to Reset the CHK Number and EFT Number --%><br>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Default" InitialBehaviors="None"<br>
                Width="300px" Height="140px" VisibleOnPageLoad="false" Title="Reset Confirm"><br>
                <ContentTemplate><br>
                    <table><br>
                        <tr><br>
                            <td rowspan="2" style="width: 45px;"><br>
                                <asp:Image ID="image" runat="server" ImageUrl="~/images/informationbank.png" CssClass="ImgHdAlertCss" /><br>
                            </td><br>
                            <td><br>
                                <asp:Label ID="Label2" runat="server" Text="Do you want to reset your check number ?"<br>
                                    CssClass="Content2Css"></asp:Label><br>
                            </td><br>
                        </tr><br>
                        <tr><br>
                            <td><br>
                                <telerik:RadButton ID="RbtnYes" runat="server" Text="Yes" OnClick="RbtnYes_Click"><br>
                                </telerik:RadButton><br>
                                &nbsp;<br>
                                <telerik:RadButton ID="RbtnNo" runat="server" Text="No" OnClick="RbtnNo_Click"><br>
                                </telerik:RadButton><br>
                            </td><br>
                        </tr><br>
                    </table><br>
                </ContentTemplate><br>
            </telerik:RadWindow><br>
</telerik:RadWindowManager><br>
/*Rad Grid1 */<br>
<telerik:RadGrid ID="RgCheckSetUp" runat="server" GridLines="None"><br>
 <MasterTableView AutoGenerateColumns="false" DataKeyNames="FedTaxID,FractionCode,chkNumber"><br>
<columns><br>
 <telerik:GridTemplateColumn Visible="true" DataField="EFTNumber" HeaderText="EFT Number"<br>
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="EFTNumber"><br>
                    <%--EditFormColumnIndex="2"--%><br>
                    <ItemTemplate><br>
                        <%# Eval("EFTNumber")%><br>
                    </ItemTemplate><br>
                    <InsertItemTemplate><br>
                        <telerik:RadTextBox ID="rdtxtEFTNumber2" runat="server" Text='<%# Eval("EFTNumber") %>'<br>
                            Width="160px" onclick="shouldConfirm = true;" /><br>
                        <telerik:RadButton ID="RbtnResetEFTNo2" runat="server" Width="40px" AutoPostBack="true"<br>
                            CausesValidation="false" Text="Reset" OnClick="RbtnResetEFTNo_Click2"><br>
                        </telerik:RadButton><br>
                    </InsertItemTemplate><br>
                    <EditItemTemplate><br>
                        <telerik:RadTextBox ID="rdtxtEFTNumber" runat="server" Text='<%# Eval("EFTNumber") %>'<br>
                            Width="160px" onclick="shouldConfirm = true;" /><br>
                        <telerik:RadButton ID="RbtnResetEFTNo" runat="server" Width="40px" AutoPostBack="true"<br>
                            CausesValidation="false" Text="Reset" OnClick="RbtnResetEFTNo_Click"><br>
                        </telerik:RadButton><br>
                    </EditItemTemplate><br>
                </telerik:GridTemplateColumn><br>
</column><br>
</MasterTableView><br>
</RadGrid>

 
check.aspx.cs<br>
<br>
<br>
 protected void RbtnYes_Click(object serder, EventArgs e)<br>
    {<br>
        RadWindowManager2.Windows[0].VisibleOnPageLoad = false;<br>
    <br>
    }

The following  code...When i am  remove the  ,Control ID=" " ,It's working But In ,Control ID="RgCheckSetUp" , i am using the "RgCheckSetUp" Rad grid id,
Then button fire but Rad Window is Not visible in Loading Panel.
can  please  help .

Sairam
Top achievements
Rank 1
 answered on 24 May 2013
4 answers
369 views
It's in Rad code block ,
<style
type="text/css"> .RadWindow .rwWindowContent .radalert { background-image:url("images/InfoImg.png"); } </style>

The above code is used in my program ,In successful message ,I want to use same Background , But On failure of some condition I want to change to the background image of Radalert(),telerik Default background Image or Custom Warning  Icon for That at code behind technique .help me..plz
Sairam
Top achievements
Rank 1
 answered on 24 May 2013
1 answer
329 views
Hi,

I am implementing webmail in to my application by referring http://demos.telerik.com/aspnet-ajax/webmail/ 

From above example is showing basic idea of webmail. I have implemented other functionalities to my screen like showing attachments.

but when click on attachment , throwing an error : " Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. "

 From above link, showing email details in the detailsview in the 3rd pane. here i am showing attachments in the radgrid above the details view ( refer attachment "email1" ).

Even I disable the ajax while downloading , still the same problem.
function gridCommand(sender, args) {
           if (args.get_commandName() == "DownloadAttachment") {
               ajaxManager.set_enableAJAX(false);
               setTimeout(function() {
                   ajaxManager.set_enableAJAX(true);
               }, 0);
           }
       }


Download the file is working when I commented below lines "<telerik:AjaxUpdatedControl ControlID="RadGridAttachment" />

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                <telerik:AjaxUpdatedControl ControlID="DetailsView1" />
               <%-- <telerik:AjaxUpdatedControl ControlID="RadGridAttachment" />--%>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadTreeView1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="RadToolBar1" />
                <telerik:AjaxUpdatedControl ControlID="DetailsView1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="DetailsView1" LoadingPanelID="RadAjaxLoadingPanel1" />
               <%-- <telerik:AjaxUpdatedControl ControlID="RadGridAttachment" />--%>
                <telerik:AjaxUpdatedControl ControlID="RadNotification1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

But If i comment above lines then attachments are not refreshing , i.e not showing based on selection. we should remain keep this lines as uncommented.

please help me on this.. how to resolve this error..

Thanks in advance..



  




 
Andrey
Telerik team
 answered on 24 May 2013
1 answer
250 views
Hi there,

i want to build a RadGrid via Datatable as DataSource but the last Column of the RadGrid should contain hyperlinks which have the text of the column in the DataTable.

I tried to build the RadGrid manually. For each column in the datatable add a new column in the radgrid.
But now i don´t know how to do that with the rows?

Could you please help me?
i hope u understand what i want. 


regards
Alfons Winhart
Princy
Top achievements
Rank 2
 answered on 24 May 2013
1 answer
321 views
Hi,

Is it possible to change the width of the RadDatePicker Textbox within asp.net code-behind (c#)?

I'm using this to set the default width:

Div.RadDatePicker .riTextBox {
width: 150px !important;
}


I want to be able to change it during runtime.

Thanks.
Princy
Top achievements
Rank 2
 answered on 24 May 2013
1 answer
94 views
Hi,

There is a Enter Promocode link button on my page. On Clicking this button, I need to display a small dialog box asking the user to enter code. Once the user enter the code, I need to pass it to another JavaScript function? For this, I dont need RadWindow with contenttemplate.

Thanks,
Saravanan.
Shinu
Top achievements
Rank 2
 answered on 24 May 2013
2 answers
176 views

Greetings,

 

I am utilizing FileExplorer, including the built-in async upload feature. When you click Upload on the FileExplorer toolbar, a window is displayed, allowing users to select files on their local machines, and upload them to our Internet site.

 

I would like to know if it is possible to modify the window that is displayed by the Upload toolbar button. We find that some users are confused by this window. They seem to grasp the idea of clicking [Select] and picking files they wish to upload. The confusion comes as they watch the progress bar and the dot change color from yellow to green. Some users think the upload is complete at that point, and they often click the X in the upper-right of the window, instead of clicking the [Upload] button at the bottom of the window. Of course, when they click the X instead of the [Upload] button, their files do not appear in FileExplorer. So I would like to modify the upload window and make it more obvious as to what must be done in order to have a more successful experience.

 

For starters, I would like to hide the X in the upper-right of the upload window. Then I would like to add a label on the window that reads something like, “Step 1: Click [Select] to choose the files to upload.” It would be nice if the progress of each file appeared between the [Select] button and the [Upload] button.

 

Since the progress bar and green dot give some users the impression that the files are already uploaded, I would like to add another label that reads, “Click [Upload] to complete this process”. And I would like to change the text of the Upload button to read [OK], instead of [Upload].

 

And since I would like to hide the X in the upper-right, I would like to add a [Cancel] button next to the [OK] button.

 

Are any of these modifications possible? If so, can you point me to some examples that I can use to get started?

 

Thank you,

Steven

runbkk
Top achievements
Rank 1
 answered on 24 May 2013
1 answer
134 views
Hi Telerik,

Heard like Telerik itself is providing a list of most commonly used images which can be added to Radbuttons through built in css class. From where can I get those CSS names? The visual studio intellisense is not listing all those.

Thanks to all,
Katya.
Shinu
Top achievements
Rank 2
 answered on 24 May 2013
2 answers
349 views
Hi,
How do i change the color of all the TextBox controls in edit form.

Savyo
Daniel
Top achievements
Rank 1
 answered on 24 May 2013
27 answers
642 views
i have this listboxwith icons and the arrows to transfer one to left or all to left or one to rigth or all to rigth.
how can i detect wich arrow user as clicked in code behind becausee e see the demo and it doesnt show how it works

so i want to load to a left listbox all items from specific sql datasource and then the rigth lisbox just have the one that the user move to rigth listbox so i waant to associate items but they are loaded from diferent sources
Troika
Top achievements
Rank 1
 answered on 23 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?