Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
hello,

how to customize appointment height using css?

thanks
benjamin
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2010
7 answers
516 views
Hi all,

I've been stuck with this for some time now and am at my wits end to be honest. I'll try as best to describe the situation clearly.

I have a radgrid that's populated via pagemethods and ajax and all seems to work fine most of the time. I also use a treeview so that users can select various folders and upon clicking a foldername in the treeview, that in change re-populates the radgrid with items from that folder. This all works fine except for that when the radgrid is repopulated, I call another pagemethod that returns the count of items within the current datasource and updates the virtualcount of the radgrid. This works sporadically. As an example, if there are 4 folders to click on in the treeview, it will work when clicking on folder 2, not work on folder 3, work on folder 4, not work on folder 2 but then work again on folder 3? It's really strange. I've debugged as much as possible and the correct values are always returned by the pagemethid and set using the 'tableView.set_virtualItemCount(result);' function.

This is the update function that's called after every databind,


        function updateVirtualItemCount(result) {

            var tableView = $find("<%= gvWebcasts.ClientID %>").get_masterTableView();
            tableView.set_virtualItemCount(result);
        }


Is there any way to force a refresh of the paging items section of the radgrid? Any help HUGELY appreciated.

Regards,
William
Tsvetoslav
Telerik team
 answered on 12 Mar 2010
2 answers
186 views
Hello,

I want to display nested grid. means on click of master grid row it will display another grid with related master grid.

i dont know where to bind another grid data n how??

i did somthing like tht

<

 

body class="BODY">

 

 

<form runat="server" id="mainForm" method="post">

 

 

<telerik:RadScriptManager runat="server" ID="ScriptManager1">

 

 

</telerik:RadScriptManager>

 

 

<!-- content start -->

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<ajaxsettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</ajaxsettings>

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

 

 

<telerik:RadGrid ID="RadGrid1" OnPreRender="RadGrid1_PreRender" runat="server" AutoGenerateColumns="False"

 

 

AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" PageSize="5"

 

 

GridLines="None" ShowGroupPanel="true" OnItemCreated="RadGrid1_ItemCreated" OnItemCommand="RadGrid1_ItemCommand">

 

 

<pagerstyle mode="NumericPages"></pagerstyle>

 

 

<mastertableview datakeynames="IssueID" allowmulticolumnsorting="True" grouploadmode="Server">

 

 

<NestedViewTemplate>

 

 

<asp:Panel runat="server" ID="InnerContainer" CssClass="viewWrap" Visible="false">

 

 

<telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1"

 

 

SelectedIndex="0">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Text="ViewIssue" PageViewID="PageView1">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

<telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">

 

 

<telerik:RadPageView runat="server" ID="PageView1">

 

 

<telerik:RadGrid runat="server" ID="OrdersGrid" AutoGenerateColumns="False" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" PageSize="5">

 

 

<MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true"

 

 

DataKeyNames="OrderID" PageSize="7" HierarchyLoadMode="ServerOnDemand">

 

 

<Columns>

 

 

<telerik:GridNumericColumn SortExpression="Description" HeaderText="Description" HeaderButtonType="TextButton"

 

 

DataField="Description" UniqueName="Description">

 

 

</telerik:GridNumericColumn>

 

 

<telerik:GridBoundColumn SortExpression="CSTComments" HeaderText="CSTComments" HeaderButtonType="TextButton"

 

 

DataField="CSTComments" UniqueName="CSTComments" Aggregate="Count">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridDateTimeColumn SortExpression="AnalystComments" HeaderText="AnalystComments" HeaderButtonType="TextButton"

 

 

DataField="AnalystComments" UniqueName="AnalystComments" >

 

 

</telerik:GridDateTimeColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</telerik:RadPageView>

 

 

</telerik:RadMultiPage>

 

 

</asp:Panel>

 

 

</NestedViewTemplate>

 

 

<Columns>

 

 

<telerik:GridBoundColumn SortExpression="CoName" HeaderText="CoName" HeaderButtonType="TextButton"

 

 

DataField="CoName" UniqueName="CoName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="ScenarioName" HeaderText="ScenarioName" HeaderButtonType="TextButton"

 

 

DataField="ScenarioName" UniqueName="ScenarioName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="Subject" HeaderText="Subject" HeaderButtonType="TextButton"

 

 

DataField="Subject" UniqueName="Subject">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="IssueDate"

 

 

HeaderText="IssueDate" HeaderButtonType="TextButton" DataField="IssueDate" UniqueName="IssueDate">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</mastertableview>

 

 

<clientsettings allowdragtogroup="true" />

 

 

</telerik:RadGrid>

 

 

</form>

 

</

 

body>

--------------------------------------------code behind ---------------------------------------------------------------------------

 

 

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

//dsViewIssueData = moIssueTrackBL.GetViewIssueDetails(iIssueID);

 

 

if (e.CommandName == RadGrid.ExpandCollapseCommandName)

 

{

((

GridDataItem)e.Item).ChildItem.FindControl("InnerContainer").Visible =

 

!e.Item.Expanded;

 

GridDataItem item=(GridDataItem)e.Item;

 

iIssueID =

Convert.ToInt32(item.OwnerTableView.DataKeyValues[item.ItemIndex]["IssueID"].ToString());

 

dsViewIssueData = moIssueTrackBL.GetViewIssueDetails(iIssueID);

 

GridDataItem editedItem = (GridDataItem)e.Item.OwnerTableView.Items[e.Item.ItemIndex];

 

 

RadGrid grid2 = (RadGrid)editedItem.EditFormItem.FindControl("OrdersGrid");

 

grid2.DataSource = dsViewIssueData.Tables[0];

grid2.DataBind();
}
}

but its not working :(

can any one help me please

Mugdha Aditya
Top achievements
Rank 1
 answered on 12 Mar 2010
4 answers
342 views
We currently using the numeric textbox to allow users to enter some values.  The problem we are experiencing is when they decide that they no longer need to enter a value in the field and when they delete it and then the information is posted back the previous value is still in the field.

Is there any way to set the value to empty on the numeric textbox?  I have tried doing it on an onblur method and using both the element.set_value("") and element._textBoxElement.value = "" but this does not seem to work?

Thanks in advance for any help
c0x3y
Top achievements
Rank 1
 answered on 12 Mar 2010
1 answer
224 views
We are trying to figure out a way to implement the RadEditor so that the CSS classes defined in the html content of the editor render correctly when in the Design View.

For example, we create our RadEditor as follows

 
        <div class="content"> 
            <telerik:RadEditor ID="RadEditor1" ToolsFile="~/RadControlsXML/Editor/ToolsFile.xml" runat="server" Width="665px" AllowScripts="true"> 
              <DocumentManager DeletePaths="/AssetsClient/Documents/" UploadPaths="/AssetsClient/Documents/" ViewPaths="/AssetsClient/Documents/" SearchPatterns="*.doc, *.txt, *.docx, *.xls, *.xlsx, *.pdf, *.ppt" MaxUploadFileSize="2147483647" /> 
              <ImageManager DeletePaths="/AssetsClient/Images/" UploadPaths="/AssetsClient/Images/" ViewPaths="/AssetsClient/Images/" /> 
            </telerik:RadEditor> 
        </div> 

In the CSS file that defines the site's layout, here are some samples of styles we have defined:

div#content h1            { font-weight:lighter;text-transform:uppercase;font-weight:bold;clear:both;color:#fff;font-size:2.3em;letter-spacing:-1px;} 
div#content h1.OneInTitle { background:url(/Assets/Img/BG/OneInTitle.gif) 0 0 no-repeat;float:left;height:69px;line-height:64px;padding-left:1.6em;margin:0 0 1em -20px;width:709px;} 
div#content h2            { color:#000;font-weight:lighter;font-size:22px;clear:both;letter-spacing:-2px;line-height:1.8em;margin:1em 0;text-transform:uppercase;border-bottom:1px solid #cb0406;}

Finally, here is is a sample of the content HTML within the editor:

<h1 class="OneInTitle">Meet Our Team</h1> 
<h2>Welcome to Our Site!</h2> 

While in design mode, we are expecting these styles to be applied, but they are not.  If we place the HTML content in a label wrapped by a <div id="content"></div> on the exact same page, the styles are applied correctly, so we know its not an issue with our stylesheets or links.  How can we get the design view to render the styles as expected?  Is there another method we have to take to get this to work?


Rumen
Telerik team
 answered on 12 Mar 2010
6 answers
204 views
If I only use the DateView to selected a date (eg. 19 Nov 2008), the textbox will display 19/11/2008 00:00 in which the time will be default 00:00 if I haven't specific it, how can I set this default value to a specific time.(eg. 23:59)
Sebastian
Telerik team
 answered on 12 Mar 2010
1 answer
43 views
I used the upgrade wizard to go to Q1 2010, but it didn't change the files for RadEditor in the App_GlobalResources directory.  Is it supposed to?
Andrey
Telerik team
 answered on 12 Mar 2010
1 answer
224 views
Hi,

I have 2 RadDatePicker controls in Sharepoint application Page within a RadTab, what happens is that when i set the DatePopupButton visible=false the alignment of one of the RadDatePicker changes while the other RadDatePicker is fine. Ideally i dont want to show the DatePopupButton for both and use the onclick client event to show the calendar in IE.

This behaviour is only in IE, in firefox its fine.

I am using Telerik.Web.UI (2009.3.1314.35)

Please do check out the attachments for a clearer view of the problem.

Please advice how to resolve.

Thanks
Dimo
Telerik team
 answered on 12 Mar 2010
1 answer
87 views
I have a quick question. I have a column whose text is coming from my objects Item property like:  myObject.Item("corn_acres")

Is there a way to use that for the sort expression of my column, something like Item("corn_acres"). Is there any way to have the grid sort that column so i do not have to sort the collection myself?

thanks!
Veli
Telerik team
 answered on 12 Mar 2010
4 answers
401 views
I have a radCombobox inside the itemTemplate of RadGrid. I want to bind the radcombobox in the CodeBehind . so I tried using the following Code

Protected

 

Sub RadGrid1_EditCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.EditCommand

 

If e.Item.ItemType = GridItemType.AlternatingItem Or e.Item.ItemType = GridItemType.Item Then  

 

Dim item As Telerik.Web.UI.GridDataItem

item = e.Item

 

Dim radCombo As RadComboBox

radCombo = item(

"DropdownColumn").FindControl("radCombo")

 

 

 

radCombo.DataSource = objDetailDal.GetAccSAPDetails(objDetailInfo).Tables(0)

radCombo.DataBind()

End If  

 

End Sub 

 

< 

telerik:GridTemplateColumn HeaderText="Sap material Item " UniqueName="DropdownColumn" >

 

<ItemTemplate>

 

<asp:Label ID="lblItemNo" Width="150px" runat="server" CssClass="label" Text='<%# DataBinder.Eval (Container.DataItem, "ITEM") %>'></asp:Label>   

 

 

</ItemTemplate>

 

<EditItemTemplate>

 

 

<telerik:RadComboBox ID="radCombo" runat ="server" />
</EditItemTemplate>

 

 

 

 

 

 

</telerik:GridTemplateColumn>
But the Find Control method returns null values.

Kindly help me

 

 

 

 

 

 

Saravanan
Top achievements
Rank 1
 answered on 12 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?