Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
131 views
Hello everyone,

I want to create a grid where the user will be able to edit all values (In place editing).
I tried to use the example for Excel-like grid but I cannot adjust it to my needs.

My main problems is that the "select" stored procedure takes about 5s to fetch all the results.
To avoid that I would like to aplly some filters, and custom paging to my grid.
Now I am trying to use the example for Batch Update(http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx) .

I am quite confused about which approach I should use.
I like the second one more, but I am not sure If it is the best solution.

Could you suggest me what whould be the better for 10000-20000 records with filters and paging?
I would also like to ask you about the dropdown lists in the grid for the Batch Update example.
Below is the code for my Dropdownlist where DOCUMENT_PERSONS_LEGAL_USER_REL_ID is the value that i get from my main query.
<telerik:GridTemplateColumn UniqueName="LEGAL_USER" HeaderText="LEGAL_USER" SortExpression="LEGAL_USER" headerStyle-Width="8%">
                    <ItemTemplate>
                        <asp:Label ID="lblLEGAL_USER" runat="server" Text='<%# Eval("LEGAL_USER") %>' />
                        <asp:DropDownList ID="ddlLEGAL_USER" runat="server" DataTextField="LEGAL_USER_LASTNAME"
                            DataValueField="LEGAL_USER_ID" DataSourceID="SqlDataSource2" SelectedValue='<%# Bind("DOCUMENT_PERSONS_LEGAL_USER_REL_ID") %>'
                            Style="display: none" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>


<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:CCSI %>"
        SelectCommand="SELECT DISTINCT [LEGAL_USER_ID]  , LEGAL_USER_LASTNAME FROM LEGAL_USERS" />

The problem is that when the grid loads, at the column LEGAL_USER I see the value of the dropdown list, but I want to see the Text for the selected value.
For example
LEGAL_USER = 1
LEGAL_USER_LASTNAME = Peny
DOCUMENT_PERSONS_LEGAL_USER_REL_ID = 1

Now I at the grid I see the value 1 but i want to see Peny.  How could I do that?

I would really appreciate your help.

Regards,
Peny



Princy
Top achievements
Rank 2
 answered on 30 Sep 2011
1 answer
356 views
Hi

I am working on an application who's main window brings up a RadWindow.

The user selects something in the grid presented in this first level RadWindow,
then clicks on a ToolBar Button.

Clicking on this button runs some client side code that triggers a .show() for a
 second RadWindow. This second RadWindow uses the NavigateURL mechanism for defining the
control layout.

I need to pass three pieces of information to this second RadWindow, then have the code behind
use this information to get some data from our database.

I have attempted to define the argument attribute of the first RadWindow and put my three
data items there, and this works, but how do I get access to these elements in my code behind for the 
second window?????

Any help greatly appreciated.

TIA 
Shinu
Top achievements
Rank 2
 answered on 30 Sep 2011
1 answer
200 views
hi everbody

I added checkboxes in radcombobox but checkboxes is visible in the items that has null or empty value. how do i hide the checkboxes when item has an empty value.

thank you...
Shinu
Top achievements
Rank 2
 answered on 30 Sep 2011
7 answers
544 views
I downloaded the trial version of telerik asp.net ajax controls 2008.2 826.  I see a couple references to Telerik.WebControls in the code examples, but there was not webcontrols dll in my download?  Where do I get the assembly from?  
Iana Tsolova
Telerik team
 answered on 30 Sep 2011
7 answers
166 views
Hi.
I'm basically following this demo (http://demos.telerik.com/aspnet-ajax/scheduler/examples/radtooltip/defaultcs.aspx).
I only have the monthly view active (and just readonly) where i'm binding my appointments which spans multiple months.
I am using radtooltipmanager for the tooltip the same way it is implemented in the demo.

Once my data is bounded to my scheduler, all tooltips work perfectly on the initial month view. However, once i switch to the following months (NavigationCommand), the tooltips no longer works.

Has anyone experienced this??


Randal
Top achievements
Rank 1
 answered on 30 Sep 2011
3 answers
638 views
I have a grid that uses a GridTemplateColumn.  In the ItemDataBoundEvent  I want to get access to the underlying column data, heres the markup

<telerik:GridTemplateColumn DataField="SportingEvent" UniqueName="IsSportingEvent" HeaderText="Sporting Event ?"> 
                                               <ItemTemplate> 
                                               <asp:Label ID="LabelSporting" runat="server" Text='<%#Eval("SportingEvent") %>'></asp:Label> 
                                            </ItemTemplate> 
                                        </telerik:GridTemplateColumn> 
  and the codebehind

protected void RadGridCategories_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
        { 
            if (e.Item is GridDataItem) 
            { 
                GridDataItem item = e.Item as GridDataItem; 
                 
                string se = item["IsSportingEvent"].Text; 
                               
                Label lbl = item["IsSportingEvent"].FindControl("LabelSporting") as Label; 
                if (lbl.Text == "False") 
                { 
                    lbl.Text = "No"; 
                } 
                if (lbl.Text == "True") 
                { 
                    lbl.Text = "Yes"; 
                } 
                 
                 
 
            } 
        } 
  Ive tried to use the item index method, but its always empty, in the end I had to resort to getting the value of the label.  How do I gain access to the underlying data from the columns ?

surely string se = item["IsSportingEvent"].Text;  should have worked
Princy
Top achievements
Rank 2
 answered on 30 Sep 2011
0 answers
177 views
We have an application which uses RadAsynUpload to upload files to a website.

The website resides on a server running IIS. Under the website, we have configured a virtual directory to point at a location on another server (SAN storage) which is where our uploaded media files will be placed.

When I run an upload, I see a temporary file appear in App_data so we know that part of the process is working, however, the temporary file never disappears because there is a failure to copy the file to the media virtual directory.

If I use a browser and enter the http address of a graphic on the media virtual directory, it appears correctly.

I believe that we have a problem with permissions. We have http working, but not the UNC which I believe that RadAsyncUpload requires.

Can you please tell me what permisisons we need to set to enable RadAsyncUpload to work ?
What account should the application pool use and what permissions should it have ?
What account should we give permisions to and what permissions should be given on the media server ?

The website is configured to use Windows authentication and no anonymous connections.

(please provide example account names to demonstrate your answer)

We are getting an error message: "The account used is a computer account. User your global user account or local user account to access this server" - what does this mean ?

Thankyou

Graham Plowman
Graham
Top achievements
Rank 1
 asked on 30 Sep 2011
3 answers
120 views
Trying to figure out how to use aggregate functions in the footer, but also at the same time having a text of my own choice as well, like "Total sum: XXXX". It seems like there is no way I can combine having a correct formating of XXXX, like {0:N} and having a FooterText, is this right? If I set the DataFormatString, anything in FooterText is ignored, if I clear it, FooterText is displayed but in default format (which seem to be no format). 

How should one do to have both FooterText and control over formating?
improwise
Top achievements
Rank 1
Iron
Iron
 answered on 29 Sep 2011
2 answers
164 views
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Cannot use multiple field editors with the same FieldName.

could any body explain me when this type error occurs.
michelle
Top achievements
Rank 1
 answered on 29 Sep 2011
3 answers
394 views
Hi

I am using a combo box where the user can enter custom text. I have set the auto postback property to true.

I would like the combo box to function such that it only posts back when the user changes the selection from the drop down list and not when they enter custom text.

Please can you tell me how to achieve this

Many thanks
TRACI
Top achievements
Rank 1
 answered on 29 Sep 2011
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?