Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
 
I have the follwoing code in my web page. On the click of the link button ID_Link, I am raising an event and delegates that passes some calculated value of  to anothe web page. The raising of the event works if I remove this line <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel_Header" LoadingPanelID="RadAjaxLoadingPanel1">
otherwise if I put this line back then it does not work
I am not sure how can I raise the event on the click of the ID_Link with using ajax along with it.
Below is my code:  It seems ajax does not work well with raising events. any help will be greatly appreciated
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="1500px" BackColor="#E6E6E6"
ExpandMode="MultipleExpandedItems">
<Items>
<telerik:RadPanelItem runat="server" Text="ID Picker" Expanded="true">
<Items>
<telerik:RadPanelItem Text="" Expanded="true">
<ItemTemplate>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel_Header" LoadingPanelID="RadAjaxLoadingPanel1">
<table> <tr>
<td>
<div class="cis_edit_label_tiny">
keyword:</div>
   
<telerik:RadTextBox ID="radTBX_SearchBox" runat="server">
</telerik:RadTextBox><telerik:RadButton ID="radBtn_Search" runat="server" Text="Search"
OnClick="radBtn_Search_Click">
</telerik:RadButton>
<telerik:RadButton ID="radBtn_CurentlySelected" runat="server" Text="Show parents "
OnClick="radBtn_CurentlySelected_Click" Visible="false" />
</td>
<td>
</td>
</tr>
<tr>
<td>
<telerik:RadGrid ID="RadGrid_IDPicker" AllowSorting="True" PageSize="100" AllowPaging="True"
runat="server" GridLines="None" OnPageIndexChanged="RadGrid_IDPicker_PageIndexChanged"
OnPageSizeChanged="RadGrid_IDPicker_PageSizeChanged" Width="1500px" Visible="false"
OnItemDataBound="RadGrid_IDPicker_DataBound">
<MasterTableView RetrieveAllDataFields="true" AutoGenerateColumns="false" DataKeyNames="ID">
<Columns>
<telerik:GridTemplateColumn UniqueName="TemplateLinkColumn" AllowFiltering="false"
HeaderText="ID">
<ItemTemplate>
<asp:LinkButton ID="ID_Link" runat="server" OnClick="ID_Link_Click" Text='<%#Bind("ID") %>'
CommandName="Bold"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="TAG">
<ItemTemplate>
<asp:Label ID="lbltag" runat="server" Text='<%#Bind("TAG") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="TAG" Visible="false">
<ItemTemplate>
<asp:Label ID="lblRootLevel" runat="server" Text='<%#Bind("root_level") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="Nom" HeaderText="Nom">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>
</td>
</tr>
</table>
</telerik:RadAjaxPanel>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>  
Maria Ilieva
Telerik team
 answered on 30 Aug 2011
2 answers
56 views
Hi,

Im running in some very strange behavior with the  radcombobox (Telerik 2011Q2).
I have 2 dropdownlist and a button. Changing the selecting of the 1st box alters the content in the 2nd box. the button does nothing special, just a postback.

When i change the selection of the first box, the 2nd box gets filled correctly. But when i push the button, the contents of the 2nd box gets alterd, the fist 2 items dissapear and the last 2 get copied and are added to the back.

aspx
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadComboBox ID="ddlbInstituut" runat="server"  AutoPostBack="true" />
<telerik:RadComboBox ID="ddlbAfdeling" runat="server" CheckBoxes="true" Width="300px"
     />
<asp:Button ID="Button1" runat="server" Text="Button" />

vb.net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Page.IsPostBack = False Then
        vulInstituutDropdown()
    End If
End Sub
Sub vulInstituutDropdown()
    Dim dsInstituten As DataSet
    dsInstituten = SqlHelper.ExecuteDataset(Conn, "SP_GetInstituut")
    With ddlbInstituut
        .DataSource = dsInstituten
        .AutoPostBack = True
        .ID = "ddlbInstituut"
        .DataTextField = "inst_omschrijving"
        .DataValueField = "inst_id"
        .DataBind()
    End With
    vulAfdelingDropdown()
End Sub
Private Sub vulAfdelingDropdown()
    Dim dsAfdelingen As DataSet
    dsAfdelingen = SqlHelper.ExecuteDataset(Conn, "SP_GetAfdelingen", ddlbInstituut.SelectedValue)
    With ddlbAfdeling
        .Controls.Clear()
        .ID = "ddlbAfdeling"
        .DataSource = dsAfdelingen
        .DataTextField = "afde_omschrijving"
        .DataValueField = "afde_id"
        .DataBind()
    End With
End Sub
Protected Sub ddlbInstituut_SelectedIndexChanged1(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlbInstituut.SelectedIndexChanged
    vulAfdelingDropdown()
End Sub

The storedprocedures always cough up the correct data.

When useing radListBox, same problem, enabeling or disabeling the checkboxes makes no difference, when useing conventional dropdownlists, no problems whatsoever.

Please help.
it-workz
Top achievements
Rank 1
 answered on 30 Aug 2011
2 answers
127 views
I'm using RadGrid and when insert a record which have special character as "< abc" or ">xyz"... The Grid stop working. So, Any one please help me how to solve this problem.
Thanks in advance.
chinh
Top achievements
Rank 2
 answered on 30 Aug 2011
10 answers
114 views
We often have users pasting content from Word or other editors, and often the text contains extraneous codes, extra font tages, span tags wrapped around every block of text, etc. The users often don't even know the extra tags are there (they don't typically use HTML view, and wouldn't understand most of what they would see there anyway). It only becomes noticeable when they ask why the results look 'funny' when viewed. I don't believe this is an uncommon request; I know that we run into it regularly, and had incorporated a solution with a prior HTML editing control that worked well.

What would be nice is to have a couple of button options on the Editor, as follows;

Clean up Font Tags
This would remove any font tags in the content, and remove any nested or redundant markup.

Clean up Word Content
This would remove all extra content added by MS Word, and restore the pasted content to generic HTML.

I know we could sit down and code these, but it would be nice to have them built right in the control.
Rumen
Telerik team
 answered on 30 Aug 2011
3 answers
200 views
I would like to show an error message to user
when input validation fails on server side but
keep user on the same input screen with all
values he entered preserved. I know how it is done
using regular approach without Telerik controls. I can inject
javascript which will show DIV styled as a message box
with OK button and on top of other page layers. (kind of lightbox)

I just would like to know if Telerik has built in support for error message display
before I implement a custom error messaging like that.

Thank you.

Sebastian
Telerik team
 answered on 30 Aug 2011
1 answer
30 views
I have web application which perfectly works fine when i run through my local asp.net development server , but the problem is none of the radcontrols are responding when i run the same application through IIS7 , can i know what exactly the problem is?, should i make any explicit settings to make radcontrols works fine when run through the IIS7
Sebastian
Telerik team
 answered on 30 Aug 2011
1 answer
101 views
Hello,
How do I load the ListView in Insert Mode? The key is- I want only the InsertItemTemplate section to show. The itemTemplate and AlternatingItemtemplate should not be visible. Using RadListView1.ShowInsertItem()shows the rows that are returned along with the InsertItemTemplate.I do not want the rows to show.

Thanks.
Iana Tsolova
Telerik team
 answered on 30 Aug 2011
3 answers
99 views
Hi,

I am trying to persist a treeview's state purely using client side code
I am currently trying to use get_clientState & set_clientState and saveClientState & updateClientState, but with little success.

Currently all nodes are loaded via webservice (MVC) and use checkboxes

Do you have suggestions on the best way to accomplish this?

Thanks
Plamen
Telerik team
 answered on 30 Aug 2011
1 answer
120 views
Hi, 

I have searched for some posts regarding this same issue, but didn't find any solution.

How can I set a default value (for example, the first row) on a bound RadGrid?

Thanks, Rgds
Bruno
Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Aug 2011
1 answer
45 views
Ra
Hello!

I mistakenly put the wrong title: "RadGrid + AJAX Manager" is the right one so if the moderator could change that.

As no one replied me on the AJAX subforum I'm also posting it here...

I have two gridviews from which one generates the data source to another one. Both gridviews have ability to edit the item (row), but editing only works in first gridview (the one that generates data for the other one), when I click on edit in the second gridview nothing happens. I've been searching the web for a while and (I believe) found out that what I need is AJAX Manager.

I've checked couple of examples/Demos from Telerik's site, but I'm still not sure how to make editing in the second gridview work.

Both gridviews have edit forms inside and both gridview's edit form types are "WebUserControl".

Could someone help me out with some suggestions. Any help would be appreciated.
Iana Tsolova
Telerik team
 answered on 30 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?