Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
135 views
We use RadGrid to show our data.

Some Columns should be sortable, here we have a problem:

- if we click the first time on the columnsheader
  the column will be sorted ascending and the arrow-up-symbol appears

- if we click the second time on the columnsheader
  the column will be sorted descending and the arrow-down-symbol appears

- if we click the third time on the columnsheader
  the column will be not sorted and the arrow-symbol DISappears

We only need the first to function so that we ca toogle between ascending and descending

What have I to do?

regards

Christian
Christian
Top achievements
Rank 1
 answered on 04 Mar 2009
2 answers
122 views
Does the telerik ajax grid support setting a column DataField to a C# extension?
Right now it doesnt error, but it is not returning the value in the grid.


        public static string CustomerNameWhole(this ResResidentSearchDataItem item)
        {
            return item.FirstName + " " + item.LastName;
        }
kyle
Top achievements
Rank 1
 answered on 04 Mar 2009
2 answers
137 views
I have a problem with upload in my grid using Automatic operations
In your example you have the following code
    Private Sub InitializeUpdateParameter(ByVal currentUpload As RadUpload)  
        If currentUpload.UploadedFiles.Count > 0 Then 
            Dim data As Byte() = New Byte(currentUpload.UploadedFiles(0).ContentLength) {}  
            currentUpload.UploadedFiles(0).InputStream.Read(data, 0, data.Length)  
             Session("DataVB") = data  
        End If 
    End Sub 

My problem is that you are sending the data to the Session("DataVB") and not to the grid.
How do i change that if i have automatic inserts with stored procedures like
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"   
                SelectCommandType="StoredProcedure" 
                SelectCommand="Selectimage" 
                DeleteCommandType="StoredProcedure" 
                DeleteCommand="Deleteimage" 
                UpdateCommandType="StoredProcedure" 
                UpdateCommand="Updateimage" 
                InsertCommandType="StoredProcedure" 
                InsertCommand="Insertimage">  
                <UpdateParameters> 
                    <asp:Parameter Name="FileName" Type="String" /> 
                    <asp:Parameter Name="imageID" Type="int32" /> 
                </UpdateParameters> 
                <InsertParameters> 
                    <asp:Parameter Name="FileName" Type="String" /> 
                </InsertParameters> 
            </asp:SqlDataSource> 

I need the uploaded filenmae to hook on the Filename parameter.
Any suggestions how to?


And to make it more compplex, I only want the upload on insert, not on upodate, there it should be a normal textbox.

is this possible at all?
Georgi Krustev
Telerik team
 answered on 04 Mar 2009
4 answers
478 views
Hello.  I am trying to build a custom grid (extended from the RadGrid) dynamically at run-time, and the grid makes use of some custom column types that i have defined in a class file.   As an added complication, the grid is housed in a user control.

I am having trouble getting the SortCommand to fire.  It is my understanding that for the SortCommand to fire, the structure of the grid (i.e. the columns) needs to be created in the Init event of the grid.  It is also my understanding, that because I am using custom column types, the MasterTableView's "EnableColumnViewState" property needs to be set to false.

The problem I'm having is that the structure of the grid changes depending on what the user chooses to do.  In my case, I have a TreeView control with nodes, and each node causes a different DataTable to be generated, and the columns change from one table to the next.

So... until the user actually clicks a node to tell the application what data they want to view, I can't figure out how to set up the grid in the Init event since the Click event won't fire until after the Init event.  So for now, I build the grid structure and bind in the click event, which works for displaying the data, but because it has happened too late in the event chain, ViewState isn't properly handled and the SortCommand event never fires when a user clicks on a column header.

I would appreciate any suggestions on how to set this up properly.  Thanks.

Sebastian
Telerik team
 answered on 04 Mar 2009
1 answer
132 views
I have tried to go to the http://www.telerik.com/skins web page to download skin files for the various controls.  I am getting an error that is not allowing me to see any skins.  I select the product and then version, but then I get a script error in IE 7.
Dimo
Telerik team
 answered on 04 Mar 2009
1 answer
84 views
Hi everyone,

I am using telerik rad window in my project. and my website header is in flash. when i popup telerik rad window then window title bar of telerik rad window shows behind the flash.

see attached image.




Can you help me how to solve this issue.....

Thanks in advance..
Mayur Panchal




Georgi Tunev
Telerik team
 answered on 04 Mar 2009
1 answer
55 views

it doesnt work tell me"cannot creat this type"

            Dim ModulesMain_TableName As New GridBoundColumn  
            .MasterTableView.Columns.Add(ModulesMain_TableName)  
            ModulesMain_TableName.DataField = "ModulesMain_TableName" 
            ModulesMain_TableName.UniqueName = "ModulesMain_TableName" 
            ModulesMain_TableName.HeaderText = "ModulesMain_TableName" 
Daniel
Telerik team
 answered on 04 Mar 2009
2 answers
109 views
Dear Sir/s,

I would like to ask a solution for data grid that

i need an output as


eg:
{database}
id        name         description
1         raj               xyz xyz abc
2         mohan        abc abc xyz


{query select * from database}


output
{RAD datagrid}
            <tr>
                <td>
                          <a href="~/profiles.aspx?id=ID{of database}"> NAME{of database}</a><br>
                </td>
            </tr>
            <tr>
                <td>
                          Description{of database}
                </td>
            </tr>

i hope i am able to make u understand.......
if not then please below is link to image

image


really very sorry for poor english
Princy
Top achievements
Rank 2
 answered on 04 Mar 2009
5 answers
351 views

I am able to dynamically load a user control per the information found in the following link...
http://www.telerik.com/help/aspnet-ajax/ajxloadusercontrols.html

The problem I am having with this is...
My User Control contains a Tab Strip and Multi-Page.
Each Page of the Multi-Page control contains a Rad Grid..
    The Rad Grids in each Page contains a Child Grid (or dataGrid)

This appears to create a problem.. as the instructions in the link above reload the user control.
When + sign is clicked to expand or contract the Child grid.. then the control re-loads...
This reverts the Page View back to the default page displaying the first grid that loads...

Any assistance with this would be great.
Thanks.
Sebastian
Telerik team
 answered on 04 Mar 2009
1 answer
143 views
Hi,

I added underline FontInfo on the server side by doing:

radTextBox.Font.Underline =

true;

I then would like to remove the underline text decoration in the client-side OnValueChanging handler:

 

 
 
function(sender, eventArgs)  
 
{  
 
if (eventArgs.get_newValue() == "")  
 
eventArgs.set_cancel(true);  
 
sender.get_styles().EnabledStyle[0] += "text-decoration: none;";  
 
sender.updateCssClass();  
 
}  
 
 
 

The above codes didn't remove the text decoration.  Please advise.  Thanks,

Peichung

Dimo
Telerik team
 answered on 04 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?