Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
I have an enquiry form that I want to place in a popup window accessed from a link on my main page.  If a user has popups disabled this should stop the window from opening.  How can I detect if the window cant be opened and divert the user to a different page ?
Marin Bratanov
Telerik team
 answered on 10 May 2013
1 answer
495 views
Dear All,

I have page1.aspx that has many IFrame and linked one aspx(page2.aspx, page3.aspx amd so on). Each fram has one rad grid in it with navigate URl. onclicking that url it should open modal popu(Rad windows) outside the iframe and on page1.aspx

I have added this in page1.aspx and access this in page2.aspx to open Modal Windows outside the IFrame. I saw example in internet that has nvigate URL in telerik:RadWindow  Tag in Design time. but for me I am passing Qurystring to the URL which is available at run time.
I can give URL with Query string during Run Time based on the row clicked in the grid.


<telerik:RadWindowManager ID="ParentRadWindowManager1" runat="server" EnableShadow="true"
                        Style="z-index: 7000">
                        <Windows>
                            <telerik:RadWindow ID="ParentUserListDialog" runat="server" Title="View record" ReloadOnShow="true"
                                ShowContentDuringLoad="false" Modal="true" BorderStyle="None" NavigateUrl="~/web/Transaction/OPMS_UI_Goals.aspx?KeyValue='2' &GoalId='201301002' &Source='DBrd'">
                            </telerik:RadWindow>
                        </Windows>
                    </telerik:RadWindowManager>

In each Iframe Page. This function is added as given below.
I want to give Navigate URL with Query string here. Kindly guide me on this.

<script type="text/javascript">
    function openWin() {
        var oManager = window.parent.GetRadWindowManager();
        //Show a particular existing window
        oManager.open(null, "ParentUserListDialog");
    }
</script>


Thanks and Regards
L.Palanivelrajan
Marin Bratanov
Telerik team
 answered on 10 May 2013
1 answer
72 views
Is there a way to start the editor in Html view and not Design view?
Rumen
Telerik team
 answered on 10 May 2013
3 answers
102 views
Hi,
We have a requirement to upload more than 50K images at once. The current functionality of RadAsyncUpload supports uploading around 3000 pictures at once. I tried to upload 8000 pictures in your online demo page, but the page got stuck for several minutes and after the page started responding, it didn't even start uploading. All the characters on the page were distorted as well. Do you suggest anything that can help us meet the requirement?

Thanks,
Sriram.
Ivan Zhekov
Telerik team
 answered on 10 May 2013
1 answer
128 views
I'm having a problem in radtreelist and it isn't loading on page load the radtreelist is inside a radmultipage the code is like this :
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
                        SelectedIndex="0" ReorderTabsOnSelect="true" Align="Justify" Width="220px"  >
                        <Tabs>
   <telerik:RadTab Text="<%$Resources:Strings,Stores %>" >
                            </telerik:RadTab>
   <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%">
   <telerik:RadPageView ID="StoresPageView" runat="server">
                        <telerik:RadAjaxPanel ID="Ajpanel" runat="server">
                           <telerik:RadTreeList ID="StoreTreeList" runat="server"   HideExpandCollapseButtonIfNoChildren="true"
                                ParentDataKeyNames="PARENT_STORE_ID" DataKeyNames="STORE_ID" AllowPaging="false" GridLines="Horizontal"
                                AutoGenerateColumns="false" AllowSorting="true" AllowMultiItemSelection="true" OnNeedDataSource="StoreTreeList_NeedDataSource">
                                <ItemStyle  HorizontalAlign="Left" />
                               <ClientSettings><Scrolling UseStaticHeaders="true"  AllowScroll="true"  /> </ClientSettings>
                                <Columns>
 
                                    <telerik:TreeListSelectColumn  ></telerik:TreeListSelectColumn>
                                    <telerik:TreeListTemplateColumn  Display="false" >
                                    <ItemTemplate>
                                    <asp:HiddenField ID="hf_StoreID" runat="server" Value='<%# Eval("STORE_ID") %>' />
                                    </ItemTemplate>
                                    </telerik:TreeListTemplateColumn>
                                    <telerik:TreeListBoundColumn DataField="STORE_NAME" HeaderText="Stores" >
                                    </telerik:TreeListBoundColumn>
 
                                </Columns>
                            </telerik:RadTreeList>
                         </telerik:RadAjaxPanel>
                        </telerik:RadPageView>
server side :
protected void StoreTreeList_NeedDataSource(object sender,TreeListNeedDataSourceEventArgs e)
{
    BindTreeList();
 
}
 
  private void BindTreeList()
 {
 
   StoresDT.Select("STORE_ID=" + new WebSiteDataHelper().SelectedStoreID.Value)[0]["PARENT_STORE_ID"] = 0;
   StoreTreeList.DataSource = StoresDT;
 }
  protected void Page_Load(object sender, EventArgs e)
  {
   if (!IsPostBack)
    {
          StoreTreeList.ExpandAllItems();
    }
  }
Kostadin
Telerik team
 answered on 10 May 2013
3 answers
121 views
When I am in the designer for the SPRadListView or SPRadGrid I can not get a listing of the SP Lists in my current site. The data binding to SQL works fine. When I try to expand the SP List display when in the Data Binding area I get an error 'There was an error processing the request'. I am on a Win7 PC using Foundation. My id is a local admin and I am the site owner and creator. Any ideas?
Tsvetoslav
Telerik team
 answered on 10 May 2013
1 answer
148 views
Hi

  I want to access commanditemtemplate in prerender event. How can I accomplish this.

thanx
Savyo
Princy
Top achievements
Rank 2
 answered on 10 May 2013
1 answer
98 views
HI
     How can I sort the data in gridtemplatecolumn. Please help me out. thanks in advance
Allen
Princy
Top achievements
Rank 2
 answered on 10 May 2013
1 answer
866 views
Hi all,
I'm looking into the Telerik toolset as part of an overall solution.

Is it possible to open a modal popup using JavaScript like in the example below?
I need an Image to be clickable and open a modal window which loads a specific URL.

<a href="JavaScript:var options=SP.UI.$create_DialogOptions();
options.url='http://webapp1/Pages/publishingPage.aspx?isdlg=1';
options.width = 800;
options.height = 600;
options.title = 'A working and simple popup';
void(SP.UI.ModalDialog.showModalDialog(options))">
<img src="http://webapp1/Style Library/Images/icon.png" border="0" alt="A working and simple popup" />
< /a>

I opened a MSDN thread here to explain what I am trying to do: http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopmentprevious/thread/3da44ee9-86c5-4757-8028-ffbbc1cf87cd/

Many thanks.
Keith.
Marin Bratanov
Telerik team
 answered on 10 May 2013
1 answer
117 views

  Below is the code snippet used in a radgrid usercontrol

Protected Sub FilterCombo_SelectedIndexChanged(ByVal o As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs)
                Dim filterItem As GridFilteringItem = CType(CType(o, RadComboBox).NamingContainer, GridFilteringItem)
                If e.Value = "NoFilter" Then
                    filterItem.FireCommandEvent("Filter", New Pair("NoFilter", Me.colname))
                Else
                    filterItem.FireCommandEvent("Filter", New Pair("EqualTo", Me.colname))
                End If

   End Sub


 

 

Protected Sub RadGridList_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridList.ItemCommand

 

If

 

 

(e.CommandName = RadGrid.FilterCommandName) Then

 

 

 

If (TypeOf e.CommandArgument Is Pair) Then

 

 

 

Dim objpair As Pair = DirectCast(e.CommandArgument, Pair)

 

RadGridList.MasterTableView.FilterExpression = "([" & objpair.First.ToString & "] = '" & objpair.Second.ToString & "') "
RadGridList.MasterTableView.Rebind()

 

 

 

End If

 

 

 

Private Sub RadGridList_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGridList.PreRender

 

 

 

Dim filterExpr As String

 

RadGridList.Skin = skinType

filterExpr =

 

"([" & FilterExpression.ToUpper & "] = '" & FilterValue.ToUpper & "') "

 

 

 

If (Not String.IsNullOrEmpty(filterVal) And (Not Page.IsPostBack)) Then

 

RadGridList.MasterTableView.FilterExpression = filterExpr

 

RadGridList.MasterTableView.Rebind()

filterExpr =

 

""

 

 

 

Else

 

 

 

If Not String.IsNullOrEmpty(RadGridList.MasterTableView.FilterExpression.ToString) Then

 

RadGridList.MasterTableView.FilterExpression = RadGridList.MasterTableView.FilterExpression

 

 

End If

 

RadGridList.MasterTableView.Rebind()

 

 

End If

 


We are dynamically creating all columns and filters in code behind in a common radgrid usercontrol. The RadComboBox is in a inner private Class implementing ITemplate for Filter Template. The columns and the filter applied are driven through configuration e.g. through configuration we can decide to use Combo Filter for Column X and not for Column Y but can change this in future.

We are firing event in  radcombox selectedindexchange which we able to capture in the itemCommand function in the user control but when rebind the grid with the filter expression the results are not filtered.

Additionally we would like to know,
a) if pair generated in the selectedindexchange method to fire command event should column name and column value  or Condition e.g. "EqualTo" and column name should be stored in the Pair object, because in debugging the typical filterexpression we saw was with  condition name and column name.

b) And how to ensure all other column filter are preserved in the filter expression in this scenario where we are seeing some Pair are with Filter Condition & Column Name and some are with Column Name & Column Value

c) multiple filter expresson is also not retaining the values and filter the results when we have multiple type of filters across the column e.g. one is based on date, one is based on radcombo, others are based text entered in textbox

Need your help to resolve this at the earliest
Angel Petrov
Telerik team
 answered on 10 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?