Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views
I have a control (A) which has ModalPopUpExtender which again opens a new control (B). The AsyncUpload control is hosted on control B. When i select the file, the file never gets uploaded.

Can any one help.

Regards
Nitesh Gaba
Top achievements
Rank 1
 answered on 28 Apr 2010
1 answer
102 views
Hi,

I am using the TreeView control with checkboxes, with 2 levels of nodes. I like the tri-state for the checkboxes. The list I have is short and I'd like the treeview to always be expanded - I want to hide the plus image to the left of the top node to prevent the user from collapsing any of the top level nodes. How can I do this? Seems like it should be easy to do, but I can't find the property to set.

Thanks,

Jason
Shinu
Top achievements
Rank 2
 answered on 28 Apr 2010
0 answers
170 views
Hi,

I am using a RadEditor with an ImageManager.  In the ImageManager I want users to be able to upload images, but not delete, rename or create new folders.

I have managed to disable deleting and creating new folders, but I can't work out how to disable renaming.  Can anyone suggest how this can be done?

Thanks
Andrew

Edit:  I worked it out.  See this thread for those who are interested http://www.telerik.com/community/forums/aspnet-ajax/editor/prevent-users-from-deleting-folders.aspx

Andrew Dixon
Top achievements
Rank 1
 asked on 28 Apr 2010
3 answers
124 views
Hi,

we are using Telerik product and Assembly  version
Product - 2009.02.0616.35
Assembly  2009.2.616.35

we use the below piece of code for exporting to excel from grid.But in the output, we face a empty row between the header and data rows in excel sheet.we don't want that empty row.

In one of the forums post they said to add this code RadGrid1.MasterTableView.AllowFilteringByColumn = false;
but still we dont have luck on that

 

void btnExcel_Click(object sender, ImageClickEventArgs e)

 

{

 

 

LRG RadGridToExport = this.Page.FindControl(RadGridIDToExport) as LRG;

 

 

if (RadGridToExport == null) return;

 

 

if (RadGridToExport.Items.Count > 0)

 {

RadGridToExport.ExportSettings.ExportOnlyData = 

true;

 

 

RadGridToExport.ExportSettings.IgnorePaging = chkAll.Checked;

RadGridToExport.ExportSettings.OpenInNewWindow = 

true;

 

RadGridToExport.MasterTableView.ExportToExcel();

}

}

Daniel
Telerik team
 answered on 27 Apr 2010
1 answer
199 views
Hi,
I am have a column that is bound to a string in the form comma separated list.

I want to display the list items on separate lines in the cell so I use the following

    protected void grvReport_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem item = ((GridDataItem)e.Item); 
            item["coltrainerList"].Text = item["coltrainerList"].Text.Replace(",", "<br/>"); 
        } 
 
        // More unrelated stuff 
    } 

This works as expected. But I also want to use the ExportToCSV() feature using a linkbutton to trigger the export. I don't want <br/>s OR commas to appear in my exported CSV file so I attempt to change the data again prior to calling export as follows...
foreach (GridDataItem item in grvReport.MasterTableView.Items) 
{ 
   item["coltrainerList"]. Text = item["coltrainerList"].Text.Replace("<br/>", " - "); 
} 
 
grvReport.MasterTableView.ExportToCSV(); 
 

This does the expected change, but unfortunately the data gets bound again before it is actually exported so I get the initial comma separated data which in turn gets changed to include the <br/>s. Therefore I still get the <br/>s in my CSV file.

Is there any way to stop the grid from rebinding when the export function is called? Or can you suggest some other way of achieving the desired effect?

Cheers


Daniel
Telerik team
 answered on 27 Apr 2010
2 answers
172 views
Does anyone know if it is possible to build a combobox by using LoadOnDemand where I use a HeaderTemplate and ItemTemplate similar to this example? 

My goal is  to allow the user autocomplete the text for the current combobox value but have it display choices that are a combination of multiple combobox combinations.

Richard
Top achievements
Rank 2
 answered on 27 Apr 2010
2 answers
128 views
I'm investigating using your Sliding Pane feature to allow the user to hide a navigation tree that's only periodically used.  From your examples, the closest to my application would be this: http://demos.telerik.com/aspnet-ajax/splitter/examples/sp_tabview/defaultcs.aspx   Just imagine it with only "Pane 1".

My question has to do with how to change the grey background of the top header.  I've looked at the examples on the website.  It appears they have something to do with registering tags and ascx files.  Huh?  Whatever happened to either setting properties or at least referring to a CSS element?

I would appreciate learning of an industry standard way to change such style info.

Sincerely,

Robert W.

Robert
Top achievements
Rank 1
 answered on 27 Apr 2010
1 answer
226 views

I have a User Control with a ListView that is using the RadDataPager. I wanted to do something fairly simple and that was to have a PageSize property on my user control that could be used to set the RadDataPager.PageSize property.

Now, I did get this to working using the following code:

<telerik:RadDataPager ID="DataPager" runat="server" PagedControlID="myListView" 
                       PageSize="<%#this.PageSize%>"> 

The only issue I have with this is this that if the page size is different from whatever the default value is, the parent listview DataBound event is fired two times, once for the original page size, and a second time if a new value is specified.

Although this is not a big issue, it would be cool if there were a way to set the RadDataPager.PageSize property before its gets databaound; however, I was not able to find the "DataPager" using the listviews.FindControl method any earlier in the page life cycle.
I did try Page_Load, ListView.NeedDataSouce, ListView.DataBinding, ListView.Init.



BaiH
Top achievements
Rank 1
 answered on 27 Apr 2010
0 answers
89 views
please delete me.. 
Brian Garson
Top achievements
Rank 2
 asked on 27 Apr 2010
1 answer
178 views
Hi,
I m using radchart in my application and I m having the following code in user control

Userconttrol

<telerik:RadSplitter id="RadSplitter4" runat="server" Orientation="Horizontal">
    <telerik:RadPane id="LeftPane1" runat="server" Scrolling="None">       
       <telerik:RadAjaxPanel ID="fsdg" runat="server">
        <telerik:RadChart ID="RadChart1" runat="server" DefaultType="Bar" OnClick="DetailedGraph_Click">
                <ClientSettings ScrollMode="None" />
        </telerik:RadChart>
       </telerik:RadAjaxPanel>
    </telerik:RadPane>
        <telerik:RadPane id="RadPane1" runat="server" Scrolling="None" Height="8%">
        <telerik:RadComboBox ID="ChartType1" runat="server" Visible="true" AutoPostBack="true" OnSelectedIndexChanged="ChartType1_SelectedIndexChanged">
              <Items>
              <telerik:RadComboBoxItem  Text="Bar" Value="2"/>
              <telerik:RadComboBoxItem  Text="Area" Value="3"/>
              </Items>
        </telerik:RadComboBox>
    </telerik:RadPane>
</telerik:RadSplitter>

and i m trying to resize the chart by using the following code in a webpage,

but it doesn't work at first time when button click.

Code in .aspx page

function reload()
    {
    alert("Resizing");
 
        var manager = $find("RadAjaxManager1");
        manager.ajaxRequest();
    }

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest" >
           <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="Cha1" LoadingPanelID="LoadingPanel1"/>                    
                    </UpdatedControls>
            </telerik:AjaxSetting>
              
            <telerik:AjaxSetting AjaxControlID="BindChart">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="Cha1" LoadingPanelID="LoadingPanel1"/>                    
                     </UpdatedControls>
            </telerik:AjaxSetting>
          </AjaxSettings>
</telerik:RadAjaxManager>
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <ucl:ChartCtrl ID="Cha1" runat="server" />
        <asp:Button ID="BindChart" runat="server" Text="BindChart" OnClick="BindChart_Click" />
        <asp:Button ID="ResizeChart" runat="server" Text="ResizeChart" OnClientClick="reload(); return false;" />       
    </div>

Codebehind

Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs)
        radchart1 = DirectCast(Cha1.FindControl("RadChart1"), RadChart)
        radchart1.Height = System.Web.UI.WebControls.Unit.Pixel(Integer.Parse(radchart1.Height.Value.ToString()) + 80)
        radchart1.Width = System.Web.UI.WebControls.Unit.Pixel(Integer.Parse(radchart1.Width.Value.ToString()) + 100)
End Sub

 
Chart not change it size i m clicking the button first time. I think the problem might be in usercontrol.

Please give any suggestions to solve it.

Regards,
Maha

Ves
Telerik team
 answered on 27 Apr 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?