Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
51 views
I wonder if it is possible to apply the control style to conbobox of telerik asp native controls for certain reasons because I have a combobox in my application and associated native Qusiera in design story to take the same format as the telerik , I generate in telerik but not how to apply these natives asp controls of telerik not
hugo arturo
Top achievements
Rank 1
 asked on 19 Oct 2012
6 answers
513 views

i have a radgrid showing header data with a nested detail table.
the header data is inserted/edited via an editForm.
the detail data is inserted/edited via a user control contained in a popup (EditFormType = WebUserControl).

data is submitted from the editForm using an asp.net button whose CommandName property is either "PerformInsert" or "Update".

upon submission of the new header data, i would like for the popup edit control to automatically appear so that detail data can be entered right away instead of having the user expand the newly created header row and then clicking "Add New Detail Record".

how can this be done?

Justin
Top achievements
Rank 1
 answered on 19 Oct 2012
0 answers
140 views
I have a tabstrip with approximate 20 pageviews.  I need to refresh the pageview loads onTabSelecting, this seems to be a very common thing but none of the solutions I have found actually seem to work for me,  I have gotten this to work other than the page within the pageview is not hitting the pageload and needdatasource events.  What am I missing that I need to do to make this work. Thanks in advance.  I have edited down the tabs so they are not all listed,

function onTabSelecting(sender, args) {
               
               var multiPage = $find("<%=RadMultiPage1.ClientID %>");
               var pageView = multiPage.findPageViewByID(args.get_tab().get_pageViewID());
 
               switch (args.get_tab().get_pageViewID()) {
                   case "RadPageView2":
                       //pageView.set_contentUrl("~/pageviews/emailTemplates.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/emailTemplates.aspx");
                       break;
                   case "RadPageView3":
                       //pageView.set_contentUrl("~/pageviews/originalEmails.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/originalEmails.aspx");
                       break;
                   case "RadPageView4":
                       //pageView.set_contentUrl("~/pageviews/CourtList.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/CourtList.aspx");
                       break;
                   case "RadPageView5":
                       //pageView.set_contentUrl("~/pageviews/region.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/region.aspx");
                       break;
                   case "RadPageView6":
                       //pageView.set_contentUrl("~/pageviews/listmgmt.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/listmgmt.aspx");
                       break;
                   case "RadPageView7":
                       //pageView.set_contentUrl("~/pageviews/subscribers.aspx");
                       args.get_tab().get_pageView().set_contentUrl("pageviews/subscribers.aspx");
                       break;
                  
 
               }
               // alert("The ID of the selected RadPageView is " + args.get_tab().get_pageViewID());

regina
Top achievements
Rank 1
 asked on 19 Oct 2012
2 answers
121 views
Hi,

I am hoping someone on this forum would be able to help me. 

I have a radgrid with Edit form set up as pop up. I am using an "on-click" event for my update/insert buttons on the form template.

However, I am unable to access the controls on the form from the code behind onclick function. Can someone please tell me how I'd be able to access the controls.

Here is my EditForm in my aspx:

  <EditFormSettings InsertCaption="New Request" CaptionDataField="RequestID" EditFormType="Template">
                                            <FormTemplate>
                                                <table id="Table1" cellspacing="1" cellpadding="1" width="800px" border="0" >
                                                    <tr>
                                                        <td colspan="4">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                     <td>
                                                            Request Name:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtReqName" runat="server" Text='<%# Bind( "Requ
est_Name") %>' TabIndex="1" >
                                                            </asp:TextBox>
                                                        </td>

                                                    </tr>
                                            
                                                </table>
                                                <table style="width: 100%">
                                                    <tr>
                                                        <td align="center" colspan="2">
                                                            <asp:Button ID="btnUpdate" OnClick = "InsertOrUpdate" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Add", "Update") %>'
                                                                runat="server" CommandName='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update") %>'>
                                                            </asp:Button>&nbsp;
                                                            <asp:Button ID="btnCancel"  OnClick = "CancelUpdate" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                                                            </asp:Button>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </FormTemplate>
                                            <PopUpSettings Height="600" Width="800"  CloseButtonToolTip="Cancel" Modal = "true" />
                                        </EditFormSettings>

And here is my code behind:

 Protected Sub InsertOrUpdate(ByVal sender As Object, ByVal e As EventArgs)
' How can I access the control txtReqName here and obtain it's value.
 End Sub

Appreciate any help. Thanks!
Berry
Top achievements
Rank 1
 answered on 19 Oct 2012
1 answer
91 views
Hi All,

I need to disable appointment  double click to edit for some appointment, its working fine for all appointment but i need to disable for some appointments only.

Thanks
Madhan
Madhan
Top achievements
Rank 1
 answered on 19 Oct 2012
2 answers
78 views
Due to the change in styles for the Radcombo box I regenerated a couple of skins using http://stylebuilder.telerik.com/ and I'm still seeing the problem.

Is it me or has the style builder not yet been updated?
Cradz
Top achievements
Rank 1
 answered on 19 Oct 2012
1 answer
106 views
I am following the demo here for the related ComboBoxes and have a couple questions.

Related ComboBox Demo

But I need it to expand to do the following.
  1. On Page_Load doing an edit where I have the continent and country already saved in the database how do I load it?
  2. When I select on the city and press Explore the city is not being passed correctly.  It is always sending the intial load city not the on selected. 

Your help is appreciated.
Thank You!

Kalina
Telerik team
 answered on 19 Oct 2012
1 answer
68 views
A very simple use of RAD combo:

Datasource provides a list of values to load the combo box. Plain-vanilla VB.Net code.

This combo box is used in an edit form, and the selected value is set when the record to be edited is read from the SQL Server database.

We are not using any type of binding.

So, when I attempt to initialize the combo when the page loads, I find that I have a value in the database that triggers an error that is not trapped by a traditional Try / Catch construct. (see attachment)

In this particular example, the code found in the database did not match any value in the datasource for this combo and I get a hard, untrapped error on the selected value assignment. ("selection out of range")

I am hoping that I am doing something really stupid and overlooking an obvious solution, anybody care to show me my error?

 

    type_code = reader("type_code").ToString
Try
    Me.Type_Code_Combo.SelectedValue = type_code
Catch ex As Exception
    ' just ignore if there is no match
End Try

 

 Note: I am aware that I can set "allow custom text" but that is not the intent, rather to insulate my page from data errors, and allow for corrections by setting the selected value to nothing and letting the user make a proper selection. But if that is the only way, how to I synchronize so that the text in the box matches the selectedvalue in the list?

 

Nencho
Telerik team
 answered on 19 Oct 2012
1 answer
59 views
Hi!!..
I need replace the Name of items draping by an icon!...

I did on Grid but I couldn't do in RadListbox.

OnDrapping="ShowIcon"

function ShowIcon(sender,args){

  var row = sender._draggedRow; --> this is not correct


    row.innerHTML = "<img  src='/UI/Images/user_transfer.png' />";
    row.style.width = 0 + "px";
    row.style.height = 0 + "px";
}


How i can do this?
July
Top achievements
Rank 2
 answered on 19 Oct 2012
6 answers
173 views
Hello everyone,

I'm trying to use Server snippets incrusted in HTML with no luck. The code is as follows:

<label for="<%= myTextBox.ClientID %>" >Text</label>
<asp:TextBox id="myTextBox" runat="server />

The server throws me the following exception:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

I know I have to use RadScriptBlock if I want to use it in javascript, but how can I achieve this behavior with Telerik?
I also know that Telerik:RadTextBox contains a label option, but I need it this way because I'm using a CSS template.

in advance, thanks

Gabriel
Top achievements
Rank 2
 answered on 19 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?