Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
217 views
I am attempting to use a BindingList as my datasource as a temporary holding source until I put the data into my SQL database.  Displaying the data works just fine, the problem I am having is actually adding/inserting data.  Here is the flow:

1. I create 10 records on page load, they display fine, the DataSource is assigned in the NeedDataSource event.
2. Using an ASP.NET button, I invoke the RadGrid.MasterTableView.InsertItem() function which loads the default insert template.
3. After putting in the data and clicking the Insert link, the InsertCommand event is fired and I create a new record and add it to my BindingList and call RadGrid.Rebind().
4. The data gets added but the insert template does not go away and if I click on cancel to get it to go away, the data is no longer in the grid.

How can I get the Insert Template to close after I insert an item using the BindingList?

Seth
Seth
Top achievements
Rank 1
 answered on 19 Nov 2009
1 answer
102 views

Hi,

If you have a treeview like below:

+ Parent Node

   +child A

   +child B

   +childC
        - cc

 
when i checked (cc), the (childC) also checked ,  
how do you unchecked (childC)

Shinu
Top achievements
Rank 2
 answered on 19 Nov 2009
3 answers
251 views
During OnInit of my page I programmatically create a RadGrid and create the columns to be added to the grid.  Some of the columns being created are GridTemplateColumn's in which I have created my own ITemplate.  The column show up fine and all the GridBonudColumns appear to be sorting, grouping, and filtering fine, however my ITemplate column results in a javascript error: Sys.WebForms.PageRequestManagerServerErrorException; Expression cannot be null or empty.  I'm not sure what I need to do in order for this to work on my Template column.  I looked over the programmatic creation example in the help document but I didn't see anything that I am not doing already.

Right now I am evaluating the trial download and looking to purchase the asp.net controls however the sorting and grouping of template columns needs to be supported so any help would be appreciated.

Thanks,
Jason
Mira
Telerik team
 answered on 19 Nov 2009
1 answer
632 views
When I add it to DATABASE I do following

Dim

 

wwctetime1 As Date

wwctetime1=RadDateTimePicker1.Text

cmd.Parameters.Add(

"@wtime1", SqlDbType.Int).Value = Hour(wwctetime1)

Now I want to read from Database and Assigen value back to RadDateTimePicker1

So how I want to do is

 

 

RadDateTimePicker1.SelectedDate = dta.Rows(0)(

"wwctetime1")


In my data base I'm just saving time ex 2, 7, 23,22 etc

 I would really appreciate any help

 

 

 

 

 

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 19 Nov 2009
3 answers
206 views
function openRadWindow(wndTitle, sParentID)
{
var oWnd = parent.window.radopen('Default.aspx?ID=' + sParentID + '&Title=' + wndTitle, null);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Reload + Telerik.Web.UI.WindowBehaviors.Close);
oWnd.SetSize(360, 400);
oWnd.MoveTo(300, 90);
return false; 
}

I am using the above javascript code for opening and setting the behaviour of radwindow.
I am able to get the object of Telerik.Web.UI although Telerik.Web.UI.WindowBehaviors comes out to be undefined. I have registered the Teleric.Web.UI dll in my application and is able to use successfully the other radControls.


Georgi Tunev
Telerik team
 answered on 19 Nov 2009
5 answers
235 views
In my case, I will have two List Box ListBox1 and ListBox2. ListBox1 is loaded with 15000 items. When the user clicks a button, the selected item in ListBox1 is moved to ListBox2 and the selected item is removed from ListBox1.

Following are the problems that I face,

- Page load itself is slow. I am loading the items in ListBox1 in Page load(takes about 45 seconds)
- Selecting an item in ListBox1 is slow(takes about 1 minute)
- Moving the selected item from ListBox1 to ListBox2 is slow(3 minutes), sometimes the page goes not responding

Kindly help me to overcome these issues.
Paul
Telerik team
 answered on 19 Nov 2009
3 answers
208 views
Hi,

This is my datepicker. How can i highlight today date in my datepicker.

<telerik:RadDatePicker ID="dtpDocStart"   Culture="en-GB"    
                                                    SharedCalendarID="sharedCalendar"  Width="100px"    runat="server"
                                                    CssClass="RadInput_Default">

<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </telerik:RadDatePicker>
lakmal




Shinu
Top achievements
Rank 2
 answered on 19 Nov 2009
3 answers
291 views
Dear Telerik
                       My Requirement is to do filtering based on  date.I am using raddatepicker inside radgrid.Please find below the radgrid aspx code.Please let me know how to filter based on date or time in codebehind file using c#.I need it urgently.Appreciate your quick response.


 <telerik:RadGrid ID="gvEventHistory" skin ="Default" runat="server" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true"
     AllowFilteringByColumn="true" OnItemDataBound="gvEventHistory_ItemDataBound" OnItemCreated="gvEventHistory_ItemCreated" >
    <MasterTableView>
    <RowIndicatorColumn>
    <HeaderStyle Width="2px" />
    <ItemStyle Width ="10px" />
    </RowIndicatorColumn>
   <Columns>
          
    <telerik:GridBoundColumn DataField="START_TIME" HeaderText="Start date" AllowFiltering="true"
    CurrentFilterFunction="EqualTo" ShowFilterIcon="false" DataFormatString="{0:d}">
    <FilterTemplate>
    <telerik:RadDatePicker ID="rdStartDate" runat="server" ClientEvents-OnDateSelected="DateSelected">
    </telerik:RadDatePicker>
    </FilterTemplate>
    </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="END_TIME" AllowFiltering="true" HeaderText="Start time" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" DataFormatString="{0:T}">
    <FilterTemplate>
    <telerik:RadTimePicker ID="rdStartTime" runat="server"></telerik:RadTimePicker>
    </FilterTemplate>
    </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings Selecting-AllowRowSelect="true">
        <ClientEvents/>
        </ClientSettings>
    </telerik:RadGrid>
  

Thanks
Sri

Pavlina
Telerik team
 answered on 19 Nov 2009
1 answer
184 views

Hello,

 

Something strange happens with the padding of the radGrid.

 

When I'm working locally (localhost) the width of my columns are equal to the specified width. That's correct. But when my project is published on my production server the effective column width is the width specified + the cell padding (about 8px). On my production server, my grid is swollen…

 

<HeaderStyle Width="165px" />

 

Localhost : the effective column width will be: 165px

Production server: the effective column width will be: 181px (Width="165px" + padding-left:8px + padding-right:8px)

 

Why this behavior?
Which scenario is correct?

Thank you.

Dimo
Telerik team
 answered on 19 Nov 2009
1 answer
107 views
Hello Team,

I encountered the problem addressed in first sticky post (Possible breaking change in RadComboBox ...) with RTL mode, when upgraded to Q3. Since tech support reverted me to said post in the ticket I opened, I'll post my comments here...

1.  A brand new base stylesheet instead of skin file only:
Not sure I understand what is meant by that. Since Q1, I see a RadComboBox base stylesheet and multiple skins files, one per skin. Checking Q3, I can see the same. So, what has changed?

2. RTL fix:
For a few number of combos the fix might sound fine, but not for a true web application. I mean, implementing that (in addition to disabling base stylesheet) for every single combo in the application is far from being practical. Aren't you going to address that in a further build because until now, it hasn't been?! Or, perhaps come up with a more practical solution?

Thank you.

Regards,
Saed

Kamen Bundev
Telerik team
 answered on 19 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?