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

On a webpage I am adding RadpanelItems with user controls dynamically. One user control is added multiple times. On a user control there is a hyperlink which opens a radpop up window to select a financial institution user selects a financial institution. After clicking submit button on this pop up should set text boxes and labels on a user control. I know how to do this and I implemented according to example.

I have radAjaxproxymanager on a user control. The problem is since I have multiple user controls on a page inside panel bar and one of them is going start ajax request. But submit button click on pop up window by default sending postback to the parent page ( on which user controls reside) I am getting confused How to update the only one user control on which hyper link was clicked. Following is my code.

This is the code on user control ascx page.

  <telerik:RadAjaxManagerProxy runat="server" ID="RadAjaxManagerProxy1">

      <AjaxSettings>

            <telerik:AjaxSetting AjaxControlID="hyperlinkChangeFI">

                   <UpdatedControls>

                        <telerik:AjaxUpdatedControl ControlID="lblFINameText" /> 

                        <telerik:AjaxUpdatedControl ControlID="txtWebsite" />                    

                  <telerik:AjaxUpdatedControl ControlID="txtPhoneNumber" />

                         <telerik:AjaxUpdatedControl ControlID="hdnFIId" />

             </UpdatedControls>  

            </telerik:AjaxSetting>

      </AjaxSettings>

</telerik:RadAjaxManagerProxy>

 

  <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  

    <script type="text/javascript">

 

      function refreshPage(arg) {

            var Ajax = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>")

            if (Ajax) {

                  Ajax.ajaxRequest("Rebind"); // Invoking ajaxRequest

            }

      }

            

  </script>

</telerik:RadCodeBlock>

This is the event on the usercontrol ( for each user control this event is fired after clicking submit button on a pop up how to get handle of the usercontrol on which hyperlink was clicked?)

 

Private Sub Manager_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)

 

            If e.Argument = "Rebind" Then

 

                  If Session("SelectedInstitution") IsNot Nothing Then

                        Dim SelectedInstitution As Institution = DirectCast(Session("SelectedInstitution"), Institution)

 

                        With SelectedInstitution

                              lblFINameText.Text = .Name

                              txtWebsite.Text = .WebsiteUrl

                              txtPhoneNumber.Text = .CustomerServicePhone

                              hdnFIId.Value = .Id.ToString

                              Session("SelectedInstitution") = Nothing

                        End With

 

                  End If

            End If

 

      End Sub

 

Maria Ilieva
Telerik team
 answered on 10 May 2010
3 answers
72 views
Hi,

I am binding some data to Radgrid and in one column of Radgrid i have image icon
on click of image icon Radtooltip will opened.

In Radtooltip 1 combobox and 1 textbox are there
my issue is that "SelectedIndexChanged event for  combobox fires for some request and not fired for some request of same type".


Any help on this will be grateful.
Kalina
Telerik team
 answered on 10 May 2010
3 answers
905 views
Hi,
i've searching a while in the Forum but i couldn't find how to use Eval within a ItemTemplate.

Whats working:
<telerik:GridTemplateColumn UniqueName="infos" DataField="id" HeaderText="Infos"
<ItemTemplate> 
Brand: <%#Eval("brandId")%> 
<%=BrandDDL.Items[0].Text%> 
</ItemTemplate> 
</telerik:GridTemplateColumn> 

But when I try to use the ID from Eval to get the corresponding Text like this

<telerik:GridTemplateColumn UniqueName="infos" DataField="id" HeaderText="Infos"
<ItemTemplate> 
Brand: <%#Eval("brandId")%>       
<%=BrandDDL.Items[(int)Eval("brandId")].Text%> 
</ItemTemplate> 
</telerik:GridTemplateColumn> 

I get a InvalidOperationException Context Runtime Error Eval(), XPath() and Bind().
Is there any way to get the ID from the DataField of the current Row within ItemTemplate to work
with it in <% %> and also make some if(!string.IsNullOrEmpty(id)){}...

Thanks.






Tsvetoslav
Telerik team
 answered on 10 May 2010
1 answer
96 views
Hi.

     I am looking to customize the edit functionality. Below is my code for grid.

<

 

telerik:RadGrid ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource" DataSourceID="SqlDataSource1" OnItemDataBound="RadGrid1_OnItemDataBound" runat="server"

 

 

Width="70%" >

 

 

<MasterTableView AutoGenerateColumns="False" DataKeyNames="BusinessEntityId" DataSourceID="SqlDataSource1" >

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn" meta:resourcekey="EditColumn">

 

 

<HeaderStyle Width="20px" />

 

 

</telerik:GridEditCommandColumn>

 

 

<telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="DeleteColumn" CommandName="Delete"

 

 

ConfirmText="Are you sure you want delete the selected Officer?" ConfirmDialogType="Classic" ConfirmTitle="Delete Officer?"

 

 

meta:resourcekey="DeleteColumn">

 

 

<HeaderStyle Width="20px" />

 

 

</telerik:GridButtonColumn>

 

 

<telerik:GridBoundColumn DataField="BusinessEntityID"

 

 

DefaultInsertValue="" HeaderText="BusinessEntityID"

 

 

SortExpression="BusinessEntityID" UniqueName="BusinessEntityID">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="FirstName"

 

 

DefaultInsertValue="" HeaderText="FirstName"

 

 

SortExpression="FirstName" UniqueName="FirstName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="QueueItemNumber" DefaultInsertValue=""

 

 

HeaderText="QueueItemNumber" SortExpression="QueueItemNumber"

 

 

UniqueName="QueueItemNumber">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="MadePreviousQINumber" DefaultInsertValue=""

 

 

HeaderText="MadePreviousQINumber" SortExpression="MadePreviousQINumber"

 

 

UniqueName="MadePreviousQINumber"></telerik:GridBoundColumn>

 

 

<telerik:GridCheckBoxColumn UniqueName="IsPrevious"

 

 

HeaderText="Previous" DataField="IsPrevious" HeaderStyle-Width="40px" SortExpression="IsPrevious"

 

 

DataType="System.Boolean" AllowFiltering="true" />

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 


I am getting the attached screen shot as a result. In the resukt i have 3 types of operation to do based on some criteria. So I am using 3 different images.

If I click on Image 1, need to open a form highlighted in black where i can do update and cancel

If i click on the image 2 i dont want to open the form (highlighted in black) instead i have a raise a even/method to do some operations (Updating some data with out opening form).

Image 3 also works same as image 2.

So Now how to add custom menthod to the click with out opening the form highlighed in red in the attachemnt.

Thanks for you help

Raji

Tsvetoslav
Telerik team
 answered on 10 May 2010
3 answers
172 views
Hi Everyone!

I just completed my first install of the Free Lite MOSS Edition 4_5_3 for my WSS v3 site.  Everything seems Ok but when I click on MOSS Link manager is appeared error.

Line: 105
Char: 2
Error: 'AssetPickerConfig' is undefined

Please let me know If you can.

Thanks,
Chau
Stanimir
Telerik team
 answered on 10 May 2010
1 answer
214 views
Is there a way to change the image buttons to Text links for next, previous, first and last?



<telerik:RadDataPager Skin="Default" AllowSEOPaging="true" SEOPagingQueryPageKey="page" Font-Bold="false" 
                            BackColor="#FFFFFF" BorderColor="#FFFFFF" ID="RadDataPager1" runat="server" PagedControlID="RadListView1" 
                            PageSize="12"
                            <Fields> 
                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> 
                                <telerik:RadDataPagerButtonField FieldType="Numeric" /> 
                                <telerik:RadDataPagerButtonField FieldType="NextLast" /> 
                                <telerik:RadDataPagerTemplatePageField> 
                                    <PagerTemplate> 
                                        <div style="float: right; text-align: right; font-family: Arial;"
                                            <b>Products 
                                                <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" /> 
                                                to 
                                                <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.StartRowIndex+Container.Owner.PageSize %>" /> 
                                                of 
                                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" /> 
                                                <br /> 
                                            </b> 
                                        </div> 
                                    </PagerTemplate> 
                                </telerik:RadDataPagerTemplatePageField> 
                            </Fields> 
                        </telerik:RadDataPager> 

Rosen
Telerik team
 answered on 10 May 2010
1 answer
74 views
Hi ,

We are using radcombobox.
inspite of setting the width and even changing the width to different values in terms of pixels and percentage , the width remains
unchanged .
This problem occurs only in IE8 browser , where as in all other browser(FF,ie7 etc)  it works fine .

<

 

telerik:RadComboBox ID="ddlEmpType" runat="server" Skin="Vista" EmptyMessage="Select Employment Type"

 

 

DataTextField="EmpTypeName" DataValueField="EmpTypeCode" Width="125px">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</telerik:RadComboBox>

Could we know a solution to this problem.

cheers,

Thanks and Regards,
Sriharsha.

 

Yana
Telerik team
 answered on 10 May 2010
3 answers
121 views
Hi,

I have WCF based web-service and Silverlight 3 client that uses it. RadComression docs says that
it has support only for the following content types: application/x-www-form-urlencoded, application/json, application/xml,
application/atom+xml but my web-service produces "text/xml" content type by default. Is there any chance to
configure RadCompression for text/xml content type support or maybe any other solution to solve this problem?

Thanks.
Rosen
Telerik team
 answered on 10 May 2010
6 answers
99 views
Maybe I"m just doing it wrong...but here's my definition
<telerik:RadWindow ID="popupWindow" runat="server" Width="500px" Height="400px" VisibleStatusbar="false" Modal="false" Animation="Fade" Behaviors="Close, Move, Resize" Skin="Sitefinity" Autosize="true"

(populated with lipsum in a content template)

So what happens is the window fades in to the 500x400...then autosizes all gimpy because there's no div size in the content area...

Could it perhaps ASSUME that if I set a size of 500x400 in the markup, and autosize is on...insert a div or inline style or something to get some dimensions set for me?  Is there any way around this?  I can't imagine it's desired functionality for anyone...




Georgi Tunev
Telerik team
 answered on 10 May 2010
2 answers
132 views
Hi.

firstly excuse me for my english. 
i want to use a big size combobox. 50px height 300px width. 
when i se4t height :50 nothing do  :(
how can i set a big size combobox?
Shinu
Top achievements
Rank 2
 answered on 10 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?