dataitem

Kendo UI Delete a node attribute in Treeview

自闭症网瘾萝莉.ら 提交于 2019-12-13 05:39:24
问题 I have some nodes who contain the items value which seems to be initialized by default from Kendo with the value "[]" everytime! I want to completely delete the "items" field from the node but I can't seem to find any method for attribute deleting. I try to access the nodes through dataItem and I tried dataItem.set("items",undefined) but still I don't think it helped.I'm trying to delete the items field because there seems to be a problem with that initialization done by kendo and I can't

Accessing the data or dataItem used to bind a gridview

空扰寡人 提交于 2019-12-13 04:04:14
问题 I have a gridview for which I programmatically set the datasource and databind it to a collection of objects. For each row that is created I then use different methods in the fields to extract the relevant information from the object like this one: <asp:TemplateField HeaderText="Aliases"> <ItemTemplate> <%# ( (MyItem)Container.DataItem).Aliases.ToString() %> </ItemTemplate> </asp:TemplateField> My problem is that in the OnRowDeleting method I would preferably like to be able to access that

onDataChanged isn´t called on android wear

一曲冷凌霜 提交于 2019-12-12 06:01:45
问题 I want to send just simple Strings from Smartphone to android wear. I looked in this Question before: Unable to push data to android wear (Emulator) and tried to do the same way, but onDataChanged only when i delete the hole App on my Phone, but not when push StringstoWear is called. Hope for Help... Here is my Code on Phone: package de.gruppe8.culturehelper; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import

ASP.Net repeater item.DataItem is null

给你一囗甜甜゛ 提交于 2019-12-10 15:25:53
问题 Within a webpage, upon loading, I fill a dataset with two table with a relation between those tables and then load the data into a repeater with a nested repeater. This can also occur after the user clicks on a button. The data gets loaded from a SQL database and the repeater datasource is set to the dataset after a postback. However, when ItemDataBound occurs the Item.Dataitem is always null. Why would this occur? Here is the databind code: this.rptCustomSpaList.DataSource = ds; this

DataItem on Repeater.Items is always null

白昼怎懂夜的黑 提交于 2019-12-06 06:43:21
问题 I am setting the DataSource of my repeater to a List (MyProducts is a simple class, consisting of only get/setters). After this and DataBind(), I can see in debugging mode that DataItem of each Repeater.Items is null. When making a postback and trying to update MyProducts, the Repeater.Items[n].DataItem is still null and Im not able to cast it, to do my work. Why isn't DataItem set on each RepeaterItem, when I databind my repeater? I cant figure/Google it out. Every other aspect of my code

DataItem on Repeater.Items is always null

梦想的初衷 提交于 2019-12-04 10:39:30
I am setting the DataSource of my repeater to a List (MyProducts is a simple class, consisting of only get/setters). After this and DataBind(), I can see in debugging mode that DataItem of each Repeater.Items is null. When making a postback and trying to update MyProducts, the Repeater.Items[n].DataItem is still null and Im not able to cast it, to do my work. Why isn't DataItem set on each RepeaterItem, when I databind my repeater? I cant figure/Google it out. Every other aspect of my code works correctly (outputting data from MyProducts to aspx, using for instance: <asp:TextBox runat="server"

onDataChanged() not being called on android wear

社会主义新天地 提交于 2019-12-02 23:33:26
问题 I'm trying to use Data Items to send a few strings through to my wear, but my wear never seems to receive any signal, because onDataChanged() is never called. I even set a time stamp to ensure the data is always different whenever it is sent. Is there a specific way I have to install the app onto both devices to get it to work? I'm just clicking run and selecting my phone, then switching modules and doing the same for my wear device. Here is the code from my main activity on my phone: public

onDataChanged() not being called on android wear

痞子三分冷 提交于 2019-12-02 12:22:32
I'm trying to use Data Items to send a few strings through to my wear, but my wear never seems to receive any signal, because onDataChanged() is never called. I even set a time stamp to ensure the data is always different whenever it is sent. Is there a specific way I have to install the app onto both devices to get it to work? I'm just clicking run and selecting my phone, then switching modules and doing the same for my wear device. Here is the code from my main activity on my phone: public class HomeActivity extends Activity{ public static String TAG = "HomeActivity"; private GoogleApiClient

OnDataChanged is never called

天涯浪子 提交于 2019-12-02 04:32:15
问题 I am trying the dataitem APi and here is my code mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(new GoogleApiClient.ConnectionCallbacks() { @Override public void onConnected(Bundle connectionHint) { Log.d("Inside", "onConnected: " + connectionHint); Toast.makeText(getApplicationContext(),"Inside On connected",Toast.LENGTH_SHORT).show(); // Now you can use the Data Layer API //Creating Dataitem PutDataMapRequest dataMapRequest = PutDataMapRequest.create("/count");

OnDataChanged is never called

被刻印的时光 ゝ 提交于 2019-12-01 22:54:47
I am trying the dataitem APi and here is my code mGoogleApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(new GoogleApiClient.ConnectionCallbacks() { @Override public void onConnected(Bundle connectionHint) { Log.d("Inside", "onConnected: " + connectionHint); Toast.makeText(getApplicationContext(),"Inside On connected",Toast.LENGTH_SHORT).show(); // Now you can use the Data Layer API //Creating Dataitem PutDataMapRequest dataMapRequest = PutDataMapRequest.create("/count"); dataMapRequest.setUrgent(); DataMap datamap=dataMapRequest.getDataMap(); PutDataRequest putDataRequest