Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 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
116 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
139 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
91 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
836 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
104 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
4 answers
610 views
I've just read a thread on how to change the back color of a menu item in a Windows app but how do you do it in a Web application?

If I select the control in the designer I just get Edit Templates or Edit Items and the Skin is set to default.

I can alter the items okay I just can't alter the background color of the actual bar itself.  It always ends up being the dark silvery color!
Missing User
 answered on 10 May 2013
3 answers
56 views
I've set up a grid with vertical headers (see attached screenshot) but I can't resize the column width.
Should I be changing it in code or in the style sheet?

Eyup
Telerik team
 answered on 10 May 2013
2 answers
361 views
Hi.

I have one issue and no idea how to aproach it.

On development server, IIS7, I have RadComboBox with AutoPostBack under UpdatePanel and it works fine.
Ajax partial refresh works as it's supposed to do.

But, when I publish project and upload it to production server (IIS7), on RadComboBox change whole page is reloaded, not only UpdatePanel content. No any javascript errors.
Please notice that Asp:Button, which is also AutoPostBack and under same UpdatePanel, reloads just UpdatePanel content on development and production server, as it's supposed to do.

This was tested with Telerik versions 2010 and 2012.

Any ideas what is wrong?

Thanks in advance
Kresimir
Top achievements
Rank 1
 answered on 10 May 2013
3 answers
86 views
Hello,

I have the following scenario:
1. in the editor css file:
a.lightBox-link {
color:Red;
}
2. in the toolsfile.xml:
<classes>
<class name="Lightbox Link" value="a.lightBox-link" />
</classes>
3. Now open the editor in chrome (v. 26.0.1410.64) and check the ApplyCssClass drop down - it does not contain Lightbox Link. But it works fine in IE9
If I change the toolsfile.xml content to value="a.lightbox-link" (lowercase b) then it works in chrome but not in IE.

Does the editor treats css class names as case sensitive?
Can this be fixed?
Dobromir
Telerik team
 answered on 10 May 2013
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?