Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views

 

Hi
I have a page with RadGrid on it and defined CommandItemTemplate with RadToolBar.
Toolbar has RadToolBarDropDown item. The problem is I need to add items to DropDownItem in code-behind.
Please advice how to do that.
Thanks
Vladimir
Shinu
Top achievements
Rank 2
 answered on 16 Dec 2011
1 answer
110 views
Is the hierarchical export of the RadGridView (Excel/CSV/PDF) available in Telerik ASP.NET Ajax?

Thanks,   
Princy
Top achievements
Rank 2
 answered on 16 Dec 2011
6 answers
665 views
Dear All,

i have a simple form which is used to login the user to the web application i develop,

i want to show messages to users in case their username and password are incorrect.

i want to use the radWindow control.

i put the following code on my login button click event
.....
......
after user name and paswword validating
if(false){

Telerik.Web.UI.

 

RadWindow newWindow = new Telerik.Web.UI.RadWindow

();

 

 

 

newWindow.NavigateUrl =

 

 

 

"My Message Form name"

;

 

 

 

newWindow.OpenerElementID = btnLogin.ClientID;

newWindow.VisibleOnPageLoad =

 

true

;

 

 

 

newWindow.DestroyOnClose =

 

 

 

true

;

 

 

 

RadWindowManager1.Windows.Add(newWindow);


}

this works fine when click the button by the user...
but if the page is reloaded/refreshed the window is opened again and again...
i don't wont this to happen..
how to prevent the rad window to show if the page is refreshed?


Hope you can help me....

Thanks

Best Regards
Kanna
Top achievements
Rank 2
 answered on 16 Dec 2011
1 answer
105 views
 Is there are a way to do custom validation on the client side for RadDateTimePicker (tie a custom validator). We want to prevent users from entering a date that is greater than the current date/time and want to do it on the clientside.
Princy
Top achievements
Rank 2
 answered on 16 Dec 2011
1 answer
138 views
I'm sure I'm missing something simple, but I've searched through the documentation, and I can't seem to find anyone else reporting this issue.  In short, I have a RadChart (bar).  I've implemented tooltips using the OnItemDataBound event and the RadToolTipManager.  The tooltips are showing up as I mouseover different items (bars) in the chart, but it is displaying at the top of the browser window rather than over the item that I have moused over.  

Here is the relevant aspx code:

<telerik:RadChart ID="RadChart1" runat="server" Width="950px" Height="400px"
    SeriesOrientation="Horizontal" OnClick="RadChart1_OnClick" BorderWidth="0"
        IntelligentLabelsEnabled="True" PlotArea-Appearance-Dimensions-Margins="15%,10%,30%,10%"
        SkinsOverrideStyles="false" Skin="Custom" OnItemDataBound="RadChart1_OnItemDataBound">
</telerik:RadChart>
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Animation="Slide"
    Position="TopCenter" EnableShadow="true" ToolTipZoneID="RadChart1"
        AutoTooltipify="true">
</telerik:RadToolTipManager>

Here is code behind:

protected void RadChart1_OnItemDataBound(object sender, ChartItemDataBoundEventArgs e)
        {
            e.SeriesItem.ActiveRegion.Tooltip = ((DataRowView)e.DataItem)["Answer"].ToString();
        }

any ideas?  Thanks!

Richard
Top achievements
Rank 1
 answered on 15 Dec 2011
15 answers
582 views
We are making use of jQuery in our solutions and currently load jQuery 1.6 in our solution. We also would like to define our own jQuery functions, but we've encountered the problem that the Telerik libraries load its own version of jQuery (with our current version jQuery 1.4.2 is loaded) which the version would not be a problem, but ALL of our custom jQuery functions get override after Telerik loads the library.

I've seen the "directive" to disable the loading of Telerik's built-in jQuery for MVC, but we are using the standard ASP.NET model and thus the Telerik AJAX controls.

How can we disable this Telerik built-in jQuery library????

Thanks
Simon
Telerik team
 answered on 15 Dec 2011
4 answers
173 views
I am using an external RadFilter which is not associated with any grid. I am just using the filter to get the filter expression on Apply button click. My issue is that I want to set the value in the textbox for the current expanded item to a specific text, on a button click.

I saw the following code from telerik website:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.FilterCommandName)
    {
        Pair filterPair = (Pair)e.CommandArgument;
        gridMessage1 = "Current Filter function: '" + filterPair.First + "' for column '" + filterPair.Second + "'";
        TextBox filterBox = (e.Item as GridFilteringItem)[filterPair.Second.ToString()].Controls[0] as TextBox;
        gridMessage2 = "<br> Entered pattern for search: " + filterBox.Text;
    }
}

I am looking for something similar where I can get the textbox for the current expanded item and then set its value. I cannot use the above code because my RADFilter is not attached to a grid.

Once again, my scenario is:
1) user chooses a field from the list of fields in the filter
2) user then clicks a button
3) the textbox for the current expanded item should be set to, say "ABC"

Thanks
Laura
Top achievements
Rank 1
 answered on 15 Dec 2011
1 answer
110 views
Hi guys,

I am stucked..I m looking for code which can Total a column on a event like "column  click" .. I was able to get footer total 
by PLACING IN ITEM DATABOUND

 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
             GridFooterItem footerItem = (GridFooterItem)e.Item;
     
            var total =Convert.ToInt64(objbal.ExecuteStringQuery( "select TTotal from  TAB1"));
           
           
            footerItem["Total  Capacity"].Text = "Total   Capacity: " + total.ToString() ;
}

i WANT TO DISPLAY COLUMN total on clicking header column  on grid.. Any sol..plzz..?
Casey
Top achievements
Rank 1
 answered on 15 Dec 2011
1 answer
118 views

RadImageEditor does not accept width in percentage.

In my project I am having a rad Panel within which I have a user control which contains a RadGrid. This rad grid has a NestedViewTemplate which contains <td> <tr> formation with a single row and two <td>’s I have given 50% width to each of these <td>’s and each of these <td>’s contain another user control which contains a RadImageEditor control with width as 100%. But when I run my code the Image control goes out of its parent element. Is there a way to fix this issue?

Dobromir
Telerik team
 answered on 15 Dec 2011
4 answers
179 views
Hi.
    I am using simple pager in RadGrid. But this pager is displaying in two rows instead of in one row
    I am using
                 <PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Right" Position="Top" AlwaysVisible="true" ></PagerStyle>

    Actually it should display like(Only in single row)
     " Change page:<1>                                        Display page 1 of 1, items 1 to 3 of 3  "
    
    But displaying like(two rows)                                          
       " Change page:<1>                                      
         Display page 1 of 1, items 1 to 3 of 3  "

    Please help me

    Thanks
    Srikanth Gunnala
Edmond
Top achievements
Rank 1
 answered on 15 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?