Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
115 views
Hi,

I was checking the RibbonBar control. To my understanding, we can hide / unhide ribbongroup within a bar using client side script (Java script). Is there a way to change the tab dynamically using client side script?



Regards,
Kajal
Helen
Telerik team
 answered on 27 Dec 2012
3 answers
174 views
Hi, Ive noticed that my RadImageEditor stopped working when saving images. It was the first time I tried it after upgrading to Q3 2012 and im almost sure it was working as expected before. I use a custom button on the toolbar in order to save the images on client side. When I click the button, the query strings that were passed from the calling page seem to be overwritten by the control. In fact, when page first loads (Page_Load), my strings are this:

Request.QueryString["myFileLocation"] = "http://www.rbc.com/community-sustainability/_assets-custom/images/RBC_BWP_Wallpaper_1600X1200_EN.jpg"

Request.QueryString["myFileName"] = ""

When I click the save button, I get this (still in Page_Load):
Request.QueryString["myFileLocation"] = "http://www.rbc.com/community-sustainability/_assets-custom/images/Telerik.Web.UI.WebResource.axd?type=iec"

Request.QueryString["myFileName"] = null

Here is the code to reproduce it. You need to call the page using query strings like this:

http://localhost:PORT/Test3.aspx?myFileLocation=http://www.rbc.com/community-sustainability/_assets-custom/images/RBC_BWP_Wallpaper_1600X1200_EN.jpg&myFileName=

Test3.aspx
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                        <telerik:RadImageEditor ID="RadImageEditor1" runat="server" StatusBarMode="Top" ToolsLoadPanelType="AjaxPanel">
                            <Tools>
                                <telerik:ImageEditorToolGroup>
                                    <telerik:ImageEditorTool CommandName="Print" />
                                    <telerik:ImageEditorTool ImageUrl="~/Images/Icons/Floppy.png" Text="Download" meta:resourcekey="ImageEditorDownload" CommandName="CustomDownload" />
                                </telerik:ImageEditorToolGroup>
                                <telerik:ImageEditorToolGroup>
                                    <telerik:ImageEditorToolStrip CommandName="Undo" />
                                    <telerik:ImageEditorToolStrip CommandName="Redo" />
                                    <telerik:ImageEditorTool CommandName="Reset" />
                                </telerik:ImageEditorToolGroup>
                                <telerik:ImageEditorToolGroup>
                                    <telerik:ImageEditorTool CommandName="Crop" IsToggleButton="true" />
                                    <telerik:ImageEditorTool CommandName="Resize" IsToggleButton="true" />
                                    <telerik:ImageEditorTool CommandName="Zoom" />
                                    <telerik:ImageEditorTool CommandName="ZoomIn" />
                                    <telerik:ImageEditorTool CommandName="ZoomOut" />
                                    <telerik:ImageEditorTool CommandName="Opacity" IsToggleButton="true" />
                                    <telerik:ImageEditorTool CommandName="Rotate" IsToggleButton="true" />
                                    <telerik:ImageEditorTool CommandName="RotateRight" />
                                    <telerik:ImageEditorTool CommandName="RotateLeft" />
                                    <telerik:ImageEditorTool CommandName="Flip" IsToggleButton="true" />
                                    <telerik:ImageEditorTool CommandName="FlipVertical" />
                                    <telerik:ImageEditorTool CommandName="FlipHorizontal" />
                                    <telerik:ImageEditorTool CommandName="AddText" IsToggleButton="true" />
                                    <telerik:ImageEditorTool CommandName="InsertImage" IsToggleButton="true" />
                                </telerik:ImageEditorToolGroup>
                            </Tools>
                        </telerik:RadImageEditor>
                     
                        <script type="text/javascript">
                            Telerik.Web.UI.ImageEditor.CommandList["CustomDownload"] = function (imageEditor, commandName, args) {
                                imageEditor.saveImageOnClient("Image");
                            }
                         </script>
 
 
                    </telerik:RadAjaxPanel>

Test3.aspx.cs
protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //check Request.QueryString["myFileLocation"] and Request.QueryString["FileName"] here after save click
            }
        }

Also, is it normal that the save is creating a page reload (IsPostBack="false")? Im not sure if the real problem here is this query string "contamination" or if before Q3 2012, the save click was creating a postback instead (IsPostBack=true) ...which is surely changing my logic.

TIA

Martin
Vessy
Telerik team
 answered on 27 Dec 2012
8 answers
220 views
In Bound Column is Zero how i show it's empty


<telerik:TreeListBoundColumn DataField="Quantity" HeaderText="Quantity" UniqueName="Quantity"
                                    HeaderStyle-Width="50px" DataFormatString="{0:0}" />

Thanks Advance,
Mohamed.
Vasil
Telerik team
 answered on 27 Dec 2012
1 answer
100 views
Increase Handler mouse outside radslider  does not fire radslider  value changed event in server side same like with first example custom panging in List view.Press mouse while moving outside increase or decrease Handler
Angel Petrov
Telerik team
 answered on 27 Dec 2012
1 answer
116 views
while exporting the radgrid to excel in html format, Group by buttons appear in XLS. I tried the  grdReport.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None, that helped to hide the header buttons. But the group by header buttons still appearing. Please help.
Daniel
Telerik team
 answered on 27 Dec 2012
0 answers
93 views
Hi all,

I have telerik controls and i have created the telerik application in my development server which have installed telerik control.
it's working fine in localhost.
But when i deploy this application into other server which have sharepoint 2010, it's not working there.
Problem come due to version problem.

 How can i Deploy the telerik solution on that sharepoint 2010 server  ?

error come as - 

Server Error in '/' Application.   
Could not load file or assembly 'Telerik.Web.Design' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.


Please help us at the earliest.
Thanks.
Sushobhit
Top achievements
Rank 2
 asked on 27 Dec 2012
2 answers
81 views
I have a RadImageEditor and a RadDockLayout populated with RadDockZone and RadDocks on the same page. RadImageEditor and RadDockLayout reside in two different update panels. RadDocks are used to display a list of draggable images, and the RadImageEditor is used to edit a selected image.

My problem is while editing an image, if I open an image editor dialog (ex. Image Crop dialog) and drag it around, the dialog snaps into RadDock positions on the image list. I noticed that internal RadImageEditor dialogs are also RadDocks, but shouldn't they be independent from other RadDock controls that exist on the page? How can I make it so that RadImageEditor dialogs won't interfere with other RadDocks on the page?
Ravin
Top achievements
Rank 1
 answered on 27 Dec 2012
1 answer
172 views
Hi,

im using a columngroup as described here.
It does work fine except that in one case i want to hide the header of the sub-columns so that i have one header for two columns only.

e.g.:
| my column group header|
|  col1 -data1| col 2- data1|
|  col1 -data2| col 2- data2|
|  col1 -data3| col 2- data3|

and so on. Is there some kind of a "hidechildheader" option available on a GridColumnGroup? or something like "hideheader" on the column itself?

regards!
Princy
Top achievements
Rank 2
 answered on 27 Dec 2012
3 answers
124 views
I am using 3 tier programming
So in my Data Access Layer I have the following code
public List<AdvertisementDAL> displayChart()
{
    List<AdvertisementDAL> dal = new List<AdvertisementDAL>();
    string sql = "Select * From AdvertisementRecord";
    SqlConnection conn = new SqlConnection(_connStr);
    SqlCommand cmd = new SqlCommand(sql, conn);
    conn.Open();
    SqlDataReader dr = cmd.ExecuteReader();
    while (dr.Read())
    {
        _recordID = int.Parse(dr["RecordID"].ToString());
        _recordDate = dr["RecordDate"].ToString();
        _noOfClick = int.Parse(dr["NoOfClick"].ToString());
        _noOfView = int.Parse(dr["NoOfView"].ToString());
        _advertisementID = int.Parse(dr["FK_AdvertisementID"].ToString());
        dal.Add(new AdvertisementDAL(_recordID, _recordDate, _noOfClick, _noOfView, _advertisementID));
    }
    conn.Close();
    dr.Close();
    dr.Dispose();
    return dal;
}

In my business Logic Code I have this:
public List<AdvertisementDAL> pieChart()
{
    AdvertisementDAL dal = new AdvertisementDAL();
    List<AdvertisementDAL> dll = new List<AdvertisementDAL>();
    dll = dal.displayChart();
    return dll;
}

In my Presentation Layer I have the following code:
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
 
        AdvertisementBLL bll = new AdvertisementBLL();
        RadChart1.DataSource = bll.pieChart();
        RadChart1.DataBind();
         
 
    }
}

So here is the real problem start:
I want to display in this way
On my Y Axis Label( look at the attachment)
It will be the record date( 12/21/2012, 12/22/2012, 12/23/2012)
On my X Axis Label(look at the attachment)
It will be 1 to 100 
My series 1 will be NoOfClick
My series 2 will be NoOfView

I tried the following but it said
The type of column with name Record Date is not numeric

 
Evgenia
Telerik team
 answered on 27 Dec 2012
1 answer
64 views
hi,
i'm using fileexplorer and i want to add more columns inside the grid area of the file explorer and fill it with the data i have from database i'm allready using dbcontentprovider class
Thank you,
Vessy
Telerik team
 answered on 27 Dec 2012
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?