Chinese President Xi Jinping and U.S. President Donald Trump chat at a G-20 event a day before their highly anticipated bilateral meeting.

The U.S. and China will resume trade negotiations in Washington in early September after the two countries discussed increasing Chinese purchases of U.S. agricultural products in the latest talks in Shanghai.

The two sides conducted "frank, efficient and constructive in-depth exchanges" on major economic and trade issues, and they discussed China increasing its purchase of American farm goods and the U.S. creating "favorable conditions" for it, Chinese state-run media Xinhua said Wednesday, adding that the next round of "high-level" talks will convene in the U.S. in September.

The White House said Wednesday that the two sides discussed topics such as forced technology transfer, intellectual property rights, services, nontariff barriers and agriculture.

"The Chinese side confirmed their commitment to increase purchases of United States agricultural exports. The meetings were constructive, and we expect negotiations on an enforceable trade deal to continue in Washington, D.C., in early September," the statement from the press secretary said.