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

I would like to extend the timing for tool tip display .

Thanks.
Eva


Svetlina Anati
Telerik team
 answered on 10 May 2010
3 answers
155 views
Is the RadWindow suitable alternative for the AjaxToolbox Modal pop up?
I try and use it to create for example an Editor pop up for posts in a listview.
But then i need to send info between the page and the pop up, and not have the problem that the window closes down on callback. 
I dont need the pop up to be  a true modal in the sense that it blocks the rest of the page.
Would  the radWindow require extra javascript to these kind of operations?


Thanks for your time! 
Lautar.
Lautaro
Top achievements
Rank 1
 answered on 10 May 2010
1 answer
160 views
Hello Friends,

I have implemented custom pegging in my page.its working fine with dynamic column.
But in that grouping is not working.
I had done with below code.

.aspx page code

  <radG:RadGrid ID="dgResults" runat="server" AllowSorting="True" AllowPaging="true"
            AllowCustomPaging="true" PageSize="10" GroupPanel-Text="Drag and Drop Column Header To Regroup Column. "
            EnableAJAX="False" AllowFilteringByColumn="True" ShowGroupPanel="True" ExportSettings-ExportOnlyData="true"
            ExportSettings-IgnorePaging="true" ExportSettings-OpenInNewWindow="true" ShowFooter="false"
            Skin="Monochrome" BorderStyle="None" MasterTableView-CellPadding="0" MasterTableView-AutoGenerateColumns="false"
            CellPadding="0" EnableAJAXLoadingTemplate="False" GridLines="both" ClientSettings-ApplyStylesOnClient="true"
            Width="100%">
            <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="None" GroupLoadMode="Client"
                EnableColumnsViewState="true" TableLayout="Fixed">
                <ExpandCollapseColumn Visible="False">
                    <HeaderStyle Width="19px" />
                </ExpandCollapseColumn>
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
            </MasterTableView>
            <ClientSettings EnableClientKeyValues="True" ReorderColumnsOnClient="True" AllowColumnsReorder="True"
                AllowGroupExpandCollapse="True" AllowDragToGroup="True">
                <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="False" />
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" ScrollHeight="405px">
                </Scrolling>
            </ClientSettings>
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
        </radG:RadGrid>

.vb file code


Public Property pagenumber() As String
        Get
            Dim o As Object = ViewState("pagenumber")
            If o Is Nothing Then
                Return String.Empty
            End If
            Return CStr(o)
        End Get

        Set(ByVal Value As String)
            ViewState("pagenumber") = Value
        End Set
    End Property
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            CreateColumn()
        End If
    End Sub
    Private Sub CreateColumn()
        dgResults.Columns.Clear()
        If Not IsPostBack Then
            Dim boundName As New GridBoundColumn
            dgResults.MasterTableView.Columns.Add(boundName)
            boundName.DataField = "userid"
            boundName.HeaderText = "userid"
            boundName.UniqueName = "userid"
            boundName.SortExpression = "userid"

            Dim boundCompanyId As New GridBoundColumn
            dgResults.MasterTableView.Columns.Add(boundCompanyId)

            boundCompanyId.DataField = "username"
            boundCompanyId.HeaderText = "username"
            boundCompanyId.UniqueName = "username"
            boundCompanyId.SortExpression = "username"

            Dim boundroleid As New GridBoundColumn
            dgResults.MasterTableView.Columns.Add(boundroleid)

            boundroleid.DataField = "role_id"
            boundroleid.HeaderText = "role_id"
            boundroleid.UniqueName = "role_id"
            boundroleid.SortExpression = "role_id"
        End If
        If pagenumber = String.Empty Then
            pagenumber = 1
        End If
        Dim ds As DataSet = TT.test(pagenumber, 10) ' Get record
        dgResults.VirtualItemCount = ds.Tables(1).Rows.Count
        dgResults.DataSource = ds.Tables(0)
        dgResults.DataBind()
        ViewState("dttemp") = ds.Tables(0)
    End Sub
   Protected Sub dgResults_NeedDataSource(ByVal source As Object, ByVal e As Telerik.WebControls.GridNeedDataSourceEventArgs) Handles dgResults.NeedDataSource
        Dim ds As DataSet = TT.test(dgResults.CurrentPageIndex + 1, 10) ' Get record
        dgResults.VirtualItemCount = ds.Tables(1).Rows.Count
        Me.dgResults.DataSource = ds.Tables(0)
    End Sub


below Stored Procedure is used in my function

ALTER PROCEDURE testnew1
@iPageIndex INT,
@iMaxRows INT
AS
BEGIN
SET NOCOUNT ON;

DECLARE @iStart INT
SELECT @iStart = (@iPageIndex - 1) * @iMaxRows
DECLARE @iEnd INT
SELECT @iEnd = @iStart + @iMaxRows

IF OBJECT_ID (N'#TempNews',N'U') IS NOT NULL
DROP TABLE #TempNews

CREATE TABLE #Temp(
intUniqueID INT PRIMARY KEY IDENTITY(1, 1),
userid int,
username VARCHAR(500),
role_id  int
)

INSERT #Temp
SELECT userid,username,role_id from users
SELECT * FROM #Temp
WHERE intUniqueID > @iStart
AND intUniqueID <= @iEnd

DROP TABLE #Temp
select * from users
END


When i applied grouping on role_id column than i get the screen view as per attchment (Screen.jpg)

Please help me for grouping with custom pagging and dynamic column.

where is the problem in my code.

Thanks & Regards
Jignesh Patel

Pavlina
Telerik team
 answered on 10 May 2010
3 answers
67 views
Hi i have installed rad RadEditorMOSS_5_7_1 in wss 3.0 site .In the documentation It is saying that remove some moss tools in toolsfile.xml so that you can install rad editor in wss .May i know which tools i have to remove and which tools i have to add to work rad editor in wss 3.0 site.
Stanimir
Telerik team
 answered on 10 May 2010
3 answers
190 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
79 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
918 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
97 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
178 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
221 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?