Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
614 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
98 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
125 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
534 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
152 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
91 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
99 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
157 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
3 answers
146 views
Hi,

I am using RadUpload with ajax enabled. so in server side i am using the code RadUpload1.UploadedFiles.Count   so result always comes 0.

How to get file in server side with ajax enable.  please give me a tips for this one.


Thanks,
Dhamu.
Bozhidar
Telerik team
 answered on 15 Dec 2011
1 answer
93 views
Hello,
What we are doing i,s we have a set of different data extracts we want to do into excel.

We have a radcombobox that contains the list of these different data extracts.

We choose one from the list and click on Extract data button and we populate a hidden datagrid and then export to excel from there.
It prompts if we want to open the file or save.
We choose to open the file check the data and we close the excel file. Select another item from the combobox and repeat the steps.
It all works fine.

But when we do not close the open file and choose another item from the combobox and then export to excel, the whole thing freezes.

I guess because the excel is already open.

Is there any way out of this.
i.e. can we continue doing exctracts without having to close the previous excel?

Also, We want to be able to select multiple items from the combox and do the extract at the same click.
Is there any easier way to do it?

Thanks.
 

Andrey
Telerik team
 answered on 15 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?