Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
107 views
Hi,

Is it possible to open the LightBox on page load by using a QueryString value - like the Deep linking function in PrettyPhoto for example?

Cheers,

Jack

Jon
Top achievements
Rank 1
 answered on 13 Mar 2014
5 answers
264 views
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow ID="modalPopup" runat="server" Width="360px" Height="360px" Modal="true" Behaviors="Close"   >
                    <ContentTemplate>
                        <div >
                            <table cellspacing="0" cellpadding="0" class="info" width="100%">
                                <tr>
                                    <td align="center" valign="middle" height="175">Pages are about to exit, do you want to save?
                                    </td>
                                </tr>
                            </table>
                            <div class="bottom-buttons cf">
                                <div class="fr">
                                    <a href="#" class="button cancel">Cancel</a>
                                    <a href="#" class="button button-pink">Save</a>
                                </div>
                            </div>
                        </div>
                        <asp:Button ID="Button2" runat="server" Text="Button" />
                    </ContentTemplate>
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>

But In this radwindow, I can be show it in page but I need when this pop is shown at sth in codebehind, code behind must be stop and must wait pop up result. In this radwindow message box shown but code is resuming. I need a message box like      asp messagebox.show("sth"); because I need to wait pop up result. Can you give me example like that ? Note: messagebox must inculde item template property.


Princy
Top achievements
Rank 2
 answered on 13 Mar 2014
0 answers
159 views
Hi Raman,

One suggestion is that you can use both server side and client side code to achieve your scenario. Please take a look into the following code snippet.

C#:
protected void RadButton1_Click(object sender, EventArgs e)
{
    RadWindowManager1.RadConfirm("Are you sure?", "CallBack", 500, 200, null, "Confirm");
}

JavaScript:
<script type="text/javascript">
    function CallBack(args) {
        if (args == true) {
            //write your code
        }
    }
</script>

Thanks,
Shinu.
Shinu
Top achievements
Rank 2
 asked on 13 Mar 2014
2 answers
500 views
Hello,

I am trying to add a RadPanelBar to my web project (ASP .NET AJAX).
I want to do this programmatically (VB or C#).
Inside each RadPanel item I want to place a RadGrid.

I have two problems:

1) I want to display three items of RadPanel items. I want the first item to show as expanded and the others as collapsed.

2) I have a problem handling the event of clicking on an item and then expanding or collapsing the appropriate item.

vb code:

dim x as integer = 0
 
 
 Private Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
    panel_SideMenu.ExpandMode = PanelBarExpandMode.SingleExpandedItem
End Sub
 
 
 Private Sub setPanel(Of T)(ByVal list As List(Of T), ByRef ArrayNameFilds As Array, nameTitle As String)
 
        If Not IsPostBack Then
 
            Dim radGridTmp As New RadGrid
            radGridTmp.DataSource = list
            setColumnsOnGrid(radGridTmp, ArrayNameFilds)
            radGridTmp.ClientSettings.Selecting.AllowRowSelect = True
            radGridTmp.ClientSettings.EnablePostBackOnRowClick = False
            radGridTmp.ClientSettings.Scrolling.AllowScroll = True
 
            Dim radItemTmp As New RadPanelItem()
            radItemTmp.Text = nameTitle
            radItemTmp.Controls.Add(radGridTmp)
 
            Dim radpanel As New RadPanelItem
            If x = 0 Then
                radpanel.Expanded = True
            End If
            radpanel.Items.Add(radItemTmp)
 
            panel_SideMenu.Items.Add(radpanel)
 
            x += 1
        End If
   End Sub 


aspx:

<telerik:RadPanelBar ID="panel_SideMenu" Runat="server">
        </telerik:RadPanelBar>






Nencho
Telerik team
 answered on 13 Mar 2014
3 answers
111 views
AHi there

We have encountered a massive problem with the ConvertCharactersToEntities ContentFilter.

After disabling the filter for a number of our Editors, we found that the issue went away but this now means that we have to apply the same code-behind concept for a large number of pages.

Is there a way to switch off this particular ContentFilter at the configuration level? I have checked the ToolsFile but no luck.

Regards

A.
Nikolay
Telerik team
 answered on 13 Mar 2014
1 answer
119 views
Hello guys,

i'm having problem with gridtempletecolumn, when i add boundcolums the data shown properly but when i use templetecolum it does not show the data, can any one solve my problem.
Shinu
Top achievements
Rank 2
 answered on 13 Mar 2014
1 answer
229 views
here is my listview

<telerik:RadListView runat="server" ID="lvAllUsers" Width="30px">
                                    <ItemTemplate>
                                        <table>
                                            <tr>
                                                <td >
                                                    <asp:CheckBoxList ID="cbID" runat="server" CssClass="item" Font-Size="15px" RepeatDirection="Horizontal">
                                                        <asp:ListItem Text="    "  > </asp:ListItem>
                                                    </asp:CheckBoxList></td>
                                                <td style="padding-bottom:10px"><%# Eval("FirstName") %></td>
                                                <td style="padding-bottom:10px"><%# Eval("FamilyName") %></td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
 </telerik:RadListView>

how can I get checkboxlists item text at code behind ? or how can I get FirstName and FamilyName and code behind after I binded my data at pageload? I can't use
     foreach (Telerik.Web.UI.RadListViewItem item in lvAllUsers.Items)
            {
                var cb = item.FindControl(index);
            }
 because index is equals an id normally. But in item template id is not always cbID. When item template iteratives id is changing. I need get FirstName and FamilyName or checkboxlists item at codebehind (c# only not js). How can I do that?





Eyup
Telerik team
 answered on 13 Mar 2014
3 answers
132 views
Hi, firstly great components. In the grid view component for SharePoint if you bind to a list and one of the columns allows multiple values then you get the following;

;#Test;#Demonstration;# 

Where as it should be Test, Demonstration

Can you advise how we can change this?

Thanks
P
Marin
Telerik team
 answered on 13 Mar 2014
5 answers
166 views
Hi,

I have radgrid & radtoolbar on my page & I am setting ajax setting through ajaxmanager.
In the toolbar, I have Export to Excel Icon & grid filter icon, on click of excel icon I am opening radwindow.
Radwindow has two buttons ok & cancel, on click of ok button I am setting ajax false & done server side code for exporting excel file.
When I clicked cancel button after exporting excel radwindow get closed.
After that on click of filter icon of radtoolbar, I am setting grid.AllowFilteringByColumn=true & rebinding grid.
But then small flick get displayed as it is performing normal postback.
When I comment grid.AllowFilteringByColumn=true line then it works fine.
This issue is generating in ie8 only.

Please Help




Eyup
Telerik team
 answered on 13 Mar 2014
6 answers
210 views
  I have a RadPivotGrid inside a popup RadWindow. The problem s the horizontal scroll doesn't show up in the grid. Here is my code :
 
<telerik:RadWindow ID="modalPopup"runat="server"Modal="true"VisibleOnPageLoad="false"EnableViewState="false"Width="1105px"Height="600px">
      <ContentTemplate>
          <div id="FullScreenGridLayer"style="float: none; clear: both;">
            
        <telerik:RadPivotGrid ID="RadPivotFullScreenGrid"
            runat="server"AllowPaging="true"Skin="Windows7"
            AggregatesPosition="Columns"  OnPreRender="PivotFullScreenGrid_PreRender>
            <PagerStyleChangePageSizeButtonToolTip="Change Page Size"  PageSizeControlType="RadComboBox">
            </PagerStyle>
            <Fields>
                <telerik:PivotGridColumnFieldDataField="SaleDate"GroupInterval="Year"IsHidden="false"
                    UniqueName="DateByYear"Caption="Year"ShowGroupsWhenNoData="true">
                </telerik:PivotGridColumnField>
                <telerik:PivotGridColumnFieldDataField="SaleDate"GroupInterval="Month"ShowGroupsWhenNoData="true"
                    UniqueName="DateByMonth"Caption="Month">
                </telerik:PivotGridColumnField>
                <telerik:PivotGridRowFieldDataField="PCName"Caption="PC Center"UniqueName="PCName">
                </telerik:PivotGridRowField>
                <telerik:PivotGridRowFieldDataField="ManagerName"Caption="A/C Manager"UniqueName="ManagerName">
                </telerik:PivotGridRowField>
                <telerik:PivotGridRowFieldDataField="RepName"Caption="Agent"UniqueName="RepName"CellStyle-BorderStyle="Dashed">
                </telerik:PivotGridRowField>
                <telerik:PivotGridAggregateFieldDataField="Units"GrandTotalAggregateFormatString=""
                    UniqueName="Units"CellStyle-BorderStyle="Dashed">
                </telerik:PivotGridAggregateField>
            </Fields>
        </telerik:RadPivotGrid>
 
            </div>
      </ContentTemplate>
</telerik:RadWindow>

Please let me know if sth is wrong here. 

Thanks
Pavlina
Telerik team
 answered on 12 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?