Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
198 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
134 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
139 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
207 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
187 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
130 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
3 answers
114 views
Hi,

When using the UseStaticHeaders property (set to true) the treelist can look really good however I have noticed that if the content of the tree list is less than the height of the available page then the last row does not ave a line on it.  See the attached image for an example.  

This doesn't matter if the number of items goes beyond the height of the page as there is never the white space to see the missing line.

Could this be added for a fix please.

Regards,

Jon
Pavlina
Telerik team
 answered on 15 Dec 2011
1 answer
146 views
Hi,

I need use upload file to another server with custom hander .

When I try to set property HttpHandlerUrl  to "http://10.10.10.10/uploadhandler.ashx".

It will throw an exception that System.ArgumentException: HttpHandlerUrl must be application-relative (i.e. it should start with "~/" .

Are there any solutions for me?

Thanks in advance.
Eric
Bozhidar
Telerik team
 answered on 15 Dec 2011
1 answer
146 views
I got this error message when I upgraded a project to 2011.3.1115, and later when I try to configure the project (under the Telerik menu):

Error executing custom action
Tlerik.Web.UI.VSX.Actions.SetProjectPropertiesAction: Cannot set the value in the Globals Object: the file to store the value in cannot be written to.

I am not told what the file that cannot be written to is. This is leaving my project with only Default as the skins selection.

Thanks, Steve 
Dobromir
Telerik team
 answered on 15 Dec 2011
2 answers
287 views
Hi Telerik,

Is there a way to enable(force) postback on ActiveRowChanged.

My scenario is:

I have a RadGrid with KeyboardNavigation allowed, RowSelection enabled.
<
ClientSettings EnablePostbackOnRowClick="true" AllowKeyboardNavigation="true" >

<Selecting AllowRowSelect="True" />

When i click on a row using the mouse, the post back happens and i perform the necessary operations that i wish to do.

Now, when i use the keyboard up/down keys to change the row selection, the grid does change the SelectedRow (the display shows the selection happening). But the control does not post back in this case.

My aim is to enable postback while navigation using arrow keys (so that i can perform the data binding and other logic from code-behind).

Also, if i write the java script for OnRowSelected client event (_doPostBack passing the gridId), the post back happens only once. I need to click a row with mouse again before i could navigate using the arrow keys.

Kindly suggest.

Thanks
Tarun Singla

Andrey
Telerik team
 answered on 15 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?