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

I have a problem getting my sort operation to work properly. I have set up a grid with viewstate disabled.
The grid is used for viewing only and all row-actions are done clientside, so no need for the grid to remember its data

I use custom paging and sorting and in the NeedDataSource event I supply the grid with data.
The LINQ query in that event also applies sorting. When i have viewstate enabled the SortCommand event is fired before the needdatasource, so i can determine the desired sorting and fetch the data all at once in the NeedDataSource event.

But when i disable the viewstate, the SortCommand event is fired after the NeedDataSource event. So i need to execute the LINQ query twice.

So my question is this
Is there any way to determine on posback/callback if the grid is going to fire the SortCommand? and can i use that info to passthe sorting info to the query in the NeedDataSource event implementation?
Or is there a way to force the SortCommand to be fired before NeedDataSource at all times?
When i try to intercept the NeedDataSource event and execute it after the sortcommand, i get no data.

I use 2009 Q2 for Ajax

Thanks
Sebastian
Telerik team
 answered on 10 Nov 2009
4 answers
201 views
Hi

I have a combobox that uses LoadOnDemand

<

 

telerik:RadComboBox ID="rcCostLocation" AutoPostBack="true" CausesValidation="false" SkinId="RadCombo" Runat="server"

 

 

DropDownWidth="318px" Height="190px" Width="318px" EmptyMessage="Please select" EnableLoadOnDemand="True"

 

 

DataValueField="Id" ShowMoreResultsBox="true">

 

</

 

telerik:RadComboBox>

If I click on a item in the list, the SelectIndexChanged and TextChanged fires okey, but if I clear the text from the DropDownBox and then click anywhere on my page, the default text "Please select" is shown but the TextChange even never fires.

I need to check if the user has cleared the text in the combobox and then disable another control on the page.
Any suggestions on how I can accomplice this ?

Regards
Per

 

Yana
Telerik team
 answered on 10 Nov 2009
1 answer
117 views
I have tabs within a RadXmlHttpPanel and the tabs work fine, until I reload the panel with images based on an id passed, then you are no longer able to click the tabs,

Why is this?
Pero
Telerik team
 answered on 10 Nov 2009
5 answers
233 views
I want to know if there is away to do some validation before the user uploads the files, in an Editor. Reason is I want to limit the uploading to a particular IP.


                    <telerik:RadEditor ID="txtContent" runat="server" Width="100%">  
                        <ImageManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files"  /> 
                        <MediaManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                        <FlashManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                        <TemplateManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                        <DocumentManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                    </telerik:RadEditor> 
Fiko
Telerik team
 answered on 10 Nov 2009
1 answer
112 views
I'm using the "Paste from word" function and am running into a couple of issues. (see attached for screenshots)

1. sometimes the same line with a soft return in Word is generating an <p></p> in the editor HTML and sometimes it's a <br /><br />. I've copied and pasted from Word from the same clipboard instance, in the same editor within the same session and seen different results.

2. when I do get the <p></p> tags... sometimes that is rendered in the design view as no returns, one return, two returns or three returns. Togelling back and forth between design and HTML changes it until it settles at the one return and then it seems to hold consistently.
Rumen
Telerik team
 answered on 10 Nov 2009
1 answer
193 views
Hi,
   Iam new to Telerik grid.
   1. I have in rad grid in my page where i need to refresh the grid with search data as the paramete changes.
      The problem is iam able to bind the data for the first time only. From the second time onwards even a new datasource is providing the
       grid it is not refreshing.

2.   When iam changing the page index of grid on one result, and when a new datasource is binded to grid then how to rest the gird to the first page.

Thanks & Regards
Akber.
Martin
Telerik team
 answered on 10 Nov 2009
1 answer
115 views
hello,

i hope you can help me
i have a grid in a tab and a formview in another tab, i wish that when something happens on the FV, the grid updates. I make a databind, the update is ok, but the grid form isn't, this collapse and i just can see the headertext and the pagination but not the rows

in the ajaxmanager i have this

<telerik:AjaxSetting AjaxControlID="fmv_FormaDatosFCC_Funcion">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grd_Datos_Filtro"/>
                </UpdatedControls>
</telerik:AjaxSetting>

in the function this

protected void fmv_FormaDatosFCC_Funcion_OnItemInserted(object sender, EventArgs e)
{
        grd_Datos_Filtro.DataBind();
}
Dimo
Telerik team
 answered on 10 Nov 2009
2 answers
171 views
Hello,

I think that some functionality in RadListView is missing.

Regarding grouping. Where is that functionality ?

Why in the world I would like to group my products in pairs ? or by 3 - 4 items ?
I would expect to be able to set grouping expression here, then take advantage of group templates to create "report like" experience.

If would be really nice if we could achieve it.

Now, back to the Repeater :


Roland
Top achievements
Rank 1
 answered on 10 Nov 2009
1 answer
183 views
Hi,

 while exporting to pdf, column alignment  is not clear,  the alignment always defaults to left for items and centre for headers.

 GridItem[] dataItems = grid.MasterTableView.GetItems(GridItemType.Item);



                    // Apply some css style to the data items

                    foreach (GridItem item in dataItems)
                    {

                        foreach (TableCell cell in item.Cells)
                        {



                            cell.Style["text-align"] = "center";

                            cell.Style["vertical-align"] = "middle";

                         

                        }

                    }
 foreach (TableCell cell in headerItem.Cells)
                    {

                       

                        cell.Style["text-align"] = "center";

                        cell.Style["vertical-align"] = "middle";

                      

                    }

even i  put the coding as like above, it does not affected the document,
actually i set ignore paging =true.If i set it as false, it is reflected the changes in pdf

But i have to  set  ignorepaging = true

please help me how to align the columns while exporting to pdf with setting ignorepaging = true.


Thanks for any help

Pavlina
Telerik team
 answered on 10 Nov 2009
1 answer
85 views
Hi everyone,
Perhaps someone could help me to find out why a RadTextBox is impossible to display in a acsx form.
Here is the code :

<

 

td> style="height: 50px; width: 614px;">

 

 

<telerik:RadTextBox ID="Objet" runat="server" Width="640px" Skin="Office2007" EnableViewState="False" />

 


I tried to display a simple <Textbox or an <asp:TextBox but nothing is displayed.
Other control like label, combobox or Radedit are working but no Text.
Last precision, the problem began since i bought the Telerik components, before this worked with free Radcontrol.

Thank you for your help.
Phil
Dimo
Telerik team
 answered on 10 Nov 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?