Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
170 views
Hi All,


I have a gird on web user control and bind this grid from clientside and serverside both.
i have created a public method on web user control and calling this method from aspx page and
passing datarow[] in this method to bind.

i am calling Client ItemDataBound event of grid. when i am binding this grid clientside then it is working fine but
when i am calling serverside binding method of web user control from aspx page then
items are not showing in the grid..

Why this type of problem is occuring, i am unable to understand.
Does any one knows please tell me ASAP...


Thanks & Regards
Brijendra Pandey
Tsvetoslav
Telerik team
 answered on 27 Aug 2009
4 answers
188 views
We would like to display some copy & paste tips on the editor.  Is there a way I can display comments on the editor? Thanks.
sean
Top achievements
Rank 1
 answered on 27 Aug 2009
2 answers
127 views
When there is an appointment present in a row, the height of that row increases. Is there a way to prevent this? My scheduler is read-only and I don't need to extra space in the row.

Thanks,
Ron
Ron Cirka
Top achievements
Rank 1
 answered on 27 Aug 2009
1 answer
110 views
I'm evaluating the schedule control to see if we can make it do what we need, and have hit a bit of a stumper.  I've just followed the instructions for replacing the edit form.  Everything works as expected, except that when my custom edit form is called, the AppointmentID querystring parameter is "undefined."  I need to be able to specify the AppointmentID for each appointment that is drawn on the calendar.

I've tried setting the scheduler's DataKeyField property, thinking that sounded like the most likely candidate, but that didn't work.  I also attempted to set the appointment's ID property in the AppointmentDataBound event, with no success.  I feel certain that there's a simple property I'm missing here...

My data source is a generic list of custom objects.  I want to be able to set each appointment's ID to the ID property of those objects.  Any ideas what I'm doing wrong here?

Here's the JavaScript that launches my edit window:

<script>
     <!--
        function AppointmentEditing(sender, eventArgs) {
            var apt = eventArgs.get_appointment();
            window.radopen("EditForm.aspx?Mode=Edit&AppointmentId=" + apt.ID, "AdvancedForm");
            eventArgs.set_cancel(true);
        }
</script>


Peter
Telerik team
 answered on 27 Aug 2009
5 answers
190 views
Hi,

I am applying customized style sheets using RAD StyleSheetManager. For that i've created a separate project with css and image files embed in that. Then the project reference is been added with the actual web application.

All the options are working good; except the context menu appear while clicking on the "Filter" icon of the grid. Can any one tell me what are the applicable style sheet classes for that filter context menu?

Thanks
Dimo
Telerik team
 answered on 27 Aug 2009
1 answer
104 views
Hello telerik team.

I am using  textbox with radinputmanager....what I like to do is to hide or disable the hover skin when the user hovers the textbox(the hover skin by default is black color border in the textbox). I mean that I want the textbox works as if it didn't have any radinputmanager. By default the radinputmanager skin is "Default"....how can i resolver mi issue?

Thanks a lot in advance

Ivan Aquino
Dimo
Telerik team
 answered on 27 Aug 2009
1 answer
113 views
Hi Experts,

We are using RAD Grid with doctype HTML 4.01 strict. When we remove the Doctype declaration, the resizing of column is working fine, but when we added doctype to page, the resizing of column is not working. Please let us know how can we implement the resizing functionality with doctype HTML 4.01 strict.

Please let us know if there are any issue in Telerik Grid using HTML 4.01 strict?
If yes,It will be great if we can have list of such issue and possible resolution if any.
Thank you for your help in advance

Shailesh
Dimo
Telerik team
 answered on 27 Aug 2009
2 answers
104 views
Hi,
I have a problem with my radgrid onrowselected function, when I'm trying to read row values... I have no problem for the key column value, but to all other columns always send me 'undefined' value...

Here's my code ...

 

<script type="text/javascript">

 

 

function RowSelected(sender, eventArgs)

 

{

 

var rownum = eventArgs.get_itemIndexHierarchical();

 

alert(

"Row: " + rownum + " selected.");

 

 

var selRow = eventArgs.getDataKeyValue("cliente_id");

 

alert(selRow);

 

 

var selRow = eventArgs.getDataKeyValue("nom");

 

alert(selRow); /* < Here I get 'undefined' value alert*/

 

}

 

</script>

 


 

<telerik:RadGrid ID="gridRefs" runat="server" AllowPaging="True" AllowSorting="True"

 

 

AutoGenerateColumns="False" CssClass="RadGrid" GridLines="None" GroupingEnabled="False"

 

 

PageSize="20" Skin="Office2007" Width="500px">

 

 

<MasterTableView ClientDataKeyNames="cliente_id">

 

 

<Columns>

 

 

<telerik:GridBoundColumn Visible="false" DataField="Cliente_id" UniqueName="Cliente_id" />

 

 

<telerik:GridBoundColumn Visible="false" DataField="SITCI" UniqueName="SITCI" />

 

 

<telerik:GridBoundColumn Visible="false" DataField="GSITCI" UniqueName="GSITCI" />

 

 

<telerik:GridBoundColumn Visible="false" DataField="NUMERO" UniqueName="GSITCI" />

 

 

<telerik:GridBoundColumn Visible="true" DataField="nom" HeaderText="Nombre" UniqueName="nom" />

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="True" />

 

 

<Scrolling AllowScroll="True" />

 

 

<ClientEvents OnRowSelected="RowSelected" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 



What I'm missing??

Thank you in advance.

Best Regards...
Leonel
Top achievements
Rank 1
 answered on 27 Aug 2009
1 answer
53 views
Hi,

I recently found that events that are created over a great many time slots will lose its background on the later time slots.
Investigating this I was able to reproduce the problem in one of the telerik examples. Instructions to reproduce follow.

http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultcs.aspx
Set "Minutes per row" to 10.
Set "Time label row span" to 1.
Click "Show 24 hours".
Create an event that starts at 12 am.
Drag this event at least past 8 am.
You should now find that the background disappears at the end of the last 7 am time slot.
The image at the bottom however, the one that contains the drag handle, is still visible.

Is there a way to resolve this?

Thank you
Johan
Peter
Telerik team
 answered on 27 Aug 2009
1 answer
153 views
I need some help getting the LinkText set;

I'm trying to create a product selector that returns a hyperlink. I've created my own content provider, based on the ProductBrowserContentProvider. It's shows a list of products whom I generate in the ResolveDirectroy function shown in the code below. This works quit nice.
What is returned is a link to my product. It shows the link in the HyperLink Manager window, in both the URL and the LinkText fields.
But I would like to show the productname in the Linktext. 

        public override DirectoryItem ResolveDirectory(string path) 
        { 
            // category 
            DirectoryItem[] directories = GetChildDirectories(path); 
            return new DirectoryItem(GetName(path), EndWithSlash(GetDirectoryPath(path)), path, "", _permissions, GetChildFiles(path), directories); 
        } 
 
        private FileItem[] GetChildFiles(string path) 
        { 
            List<FileItem> products = new List<FileItem>(); 
            long categoryid = GetLastIdFromPath(path); 
            if (categoryid > 0) 
            { 
                ProductFilter filter = new ProductFilter(0); 
                filter.Category = CategoryManager.FindCategory(categoryid); 
                 
                foreach (Product product in ProductManager.FindProducts(filter)) 
                { 
                    string url = "http://${baseurl}/productdetails.aspx?id="; 
                    url += product.ProductID.ToString(); 
                    url += "&username=${username}&password=${password}"; 
 
                    // the linktext should be product.TitleActiveLanguage 
                    FileItem product_item = new FileItem(product.GetTitle(Framework.ActiveLanguage, true, true, false, false),"", 0, "location", url, product.TitleActiveLanguage, _permissions); 
                    products.Add(product_item); 
                } 
            } 
            return products.ToArray(); 
        }


Is it at all possible to control the link text from something inside a FileItem object?
If not, what do I do to get the linktext to show what I want?

thanks


Lini
Telerik team
 answered on 27 Aug 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?